From 0317159473544b706662af303b1ec193833f3afc Mon Sep 17 00:00:00 2001 From: RLi43 <33189200+RLi43@users.noreply.github.com> Date: Fri, 24 Jan 2025 18:14:51 +0100 Subject: [PATCH] load robot_description from other namespace --- .../planning/rdf_loader/src/synchronized_string_parameter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moveit_ros/planning/rdf_loader/src/synchronized_string_parameter.cpp b/moveit_ros/planning/rdf_loader/src/synchronized_string_parameter.cpp index ac87024b98..acbd22427e 100644 --- a/moveit_ros/planning/rdf_loader/src/synchronized_string_parameter.cpp +++ b/moveit_ros/planning/rdf_loader/src/synchronized_string_parameter.cpp @@ -123,7 +123,7 @@ 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(nd_name); string_subscriber_ = temp_node->create_subscription( - name_, + std::string(node_->get_namespace()) + "/" + name_, rclcpp::QoS(1).transient_local().reliable(), // "transient_local()" is required for supporting late subscriptions [this](const std_msgs::msg::String::ConstSharedPtr& msg) { return stringCallback(msg); });