Skip to content

Commit

Permalink
[dashing] Support for API break on Fast DDS 2.0 (#411)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <miguelcompany@eProsima.com>
  • Loading branch information
MiguelCompany authored Nov 13, 2020
1 parent b9c7bc7 commit b6333c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,12 @@ __rmw_create_node(
// Load default XML profile.
Domain::getDefaultParticipantAttributes(participantAttrs);

#if FASTRTPS_VERSION_MAJOR < 2
participantAttrs.rtps.builtin.domainId = static_cast<uint32_t>(domain_id);
#else
participantAttrs.domainId = static_cast<uint32_t>(domain_id);
#endif

// since the participant name is not part of the DDS spec
participantAttrs.rtps.setName(name);

Expand Down

0 comments on commit b6333c2

Please sign in to comment.