Skip to content

Commit

Permalink
load robot_description from other namespace (#3269) (#3325)
Browse files Browse the repository at this point in the history
(cherry picked from commit af6d762)

Co-authored-by: RLi43 <[email protected]>
  • Loading branch information
mergify[bot] and RLi43 authored Feb 6, 2025
1 parent 4a4d1c1 commit ddfab7d
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 ddfab7d

Please sign in to comment.