Skip to content

Commit

Permalink
Added ROS2 name mangling to ROS2 KeylessType (#64)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Santiago <[email protected]>

Signed-off-by: Javier Santiago <[email protected]>
  • Loading branch information
jsan-rt authored Dec 19, 2022
1 parent 01404a0 commit afa436f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion types/KeylessShapeTypePubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace shapes_demo_typesupport {
namespace idl {
KeylessShapeTypePubSubType::KeylessShapeTypePubSubType()
{
setName("shapes_demo_typesupport::idl::KeylessShapeType");
setName("shapes_demo_typesupport::idl::dds_::KeylessShapeType_");
auto type_size = KeylessShapeType::getMaxCdrSerializedSize();
type_size += eprosima::fastcdr::Cdr::alignment(type_size, 4); /* possible submessage alignment */
m_typeSize = static_cast<uint32_t>(type_size) + 4; /*encapsulation*/
Expand Down
4 changes: 2 additions & 2 deletions types/KeylessShapeTypeTypeObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ using namespace eprosima::fastrtps::rtps;
void registerKeylessShapeTypeTypes()
{
TypeObjectFactory *factory = TypeObjectFactory::get_instance();
factory->add_type_object("shapes_demo_typesupport::idl::KeylessShapeType", shapes_demo_typesupport::idl::GetKeylessShapeTypeIdentifier(true),
factory->add_type_object("shapes_demo_typesupport::idl::dds_::KeylessShapeType_", shapes_demo_typesupport::idl::GetKeylessShapeTypeIdentifier(true),
shapes_demo_typesupport::idl::GetKeylessShapeTypeObject(true));
factory->add_type_object("shapes_demo_typesupport::idl::KeylessShapeType", shapes_demo_typesupport::idl::GetKeylessShapeTypeIdentifier(false),
factory->add_type_object("shapes_demo_typesupport::idl::dds_::KeylessShapeType_", shapes_demo_typesupport::idl::GetKeylessShapeTypeIdentifier(false),
shapes_demo_typesupport::idl::GetKeylessShapeTypeObject(false));


Expand Down

0 comments on commit afa436f

Please sign in to comment.