Skip to content

Commit

Permalink
load robot_description from other namespace (#3269)
Browse files Browse the repository at this point in the history
* load robot_description from other namespace

* change temp_node's namespace

---------

Co-authored-by: Sebastian Jahr <[email protected]>
  • Loading branch information
RLi43 and sjahr authored Feb 6, 2025
1 parent 1794b8e commit af6d762
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool SynchronizedStringParameter::shouldPublish()
bool SynchronizedStringParameter::waitForMessage(const rclcpp::Duration& timeout)
{
const auto nd_name = std::string(node_->get_name()).append("_ssp_").append(name_);
const auto temp_node = std::make_shared<rclcpp::Node>(nd_name);
const auto temp_node = std::make_shared<rclcpp::Node>(nd_name, node_->get_namespace());
string_subscriber_ = temp_node->create_subscription<std_msgs::msg::String>(
name_,
rclcpp::QoS(1).transient_local().reliable(), // "transient_local()" is required for supporting late subscriptions
Expand Down

0 comments on commit af6d762

Please sign in to comment.