Skip to content

Commit

Permalink
Support loading default XML profile file
Browse files Browse the repository at this point in the history
  • Loading branch information
richiware committed Sep 25, 2017
1 parent a9ffcc5 commit 25839e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rmw_fastrtps_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ rmw_create_node(
}

ParticipantAttributes participantAttrs;

// Load default XML profile.
Domain::getDefaultParticipantAttributes(participantAttrs);

participantAttrs.rtps.builtin.domainId = static_cast<uint32_t>(domain_id);
participantAttrs.rtps.setName(name);

Expand Down
3 changes: 3 additions & 0 deletions rmw_fastrtps_cpp/src/rmw_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ rmw_create_publisher(const rmw_node_t * node,
PublisherAttributes publisherParam;
const GUID_t * guid = nullptr;

// Load default XML profile.
Domain::getDefaultPublisherAttributes(publisherParam);

// TODO(karsten1987) Verify consequences for std::unique_ptr?
info = new CustomPublisherInfo();
info->typesupport_identifier_ = type_support->typesupport_identifier;
Expand Down
3 changes: 3 additions & 0 deletions rmw_fastrtps_cpp/src/rmw_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ rmw_create_subscription(const rmw_node_t * node,
rmw_subscription_t * rmw_subscription = nullptr;
SubscriberAttributes subscriberParam;

// Load default XML profile.
Domain::getDefaultSubscriberAttributes(subscriberParam);

info = new CustomSubscriberInfo();
info->typesupport_identifier_ = type_support->typesupport_identifier;

Expand Down

0 comments on commit 25839e6

Please sign in to comment.