Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Handle RMW_DEFAULT_DOMAIN_ID. (#427)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic authored Jun 22, 2020
1 parent 0f3e4b7 commit 802c7d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rmw_connext_shared_cpp/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,12 @@ create_node(
}
}

// No custom handling of RMW_DEFAULT_DOMAIN_ID. Simply use a reasonable domain id.
participant = dpf_->create_participant(
static_cast<DDS::DomainId_t>(domain_id), participant_qos, NULL,
static_cast<DDS::DomainId_t>(
domain_id != RMW_DEFAULT_DOMAIN_ID ? domain_id : 0u),
participant_qos,
NULL,
DDS::STATUS_MASK_NONE);
if (!participant) {
RMW_SET_ERROR_MSG("failed to create participant");
Expand Down

0 comments on commit 802c7d2

Please sign in to comment.