Skip to content

Commit

Permalink
Add remap option to controller manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Tacha-S committed Nov 29, 2024
1 parent c781b7b commit 4a3c7a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ void GazeboSimROS2ControlPlugin::Configure(
// Create the controller manager
RCLCPP_INFO(this->dataPtr->node_->get_logger(), "Loading controller_manager");
rclcpp::NodeOptions options = controller_manager::get_cm_node_options();
arguments.push_back("-r");
arguments.push_back("__node:=" + controllerManagerNodeName);
arguments.push_back("-r");
arguments.push_back("__ns:=" + ns);
options.arguments(arguments);
this->dataPtr->controller_manager_.reset(
new controller_manager::ControllerManager(
Expand Down

0 comments on commit 4a3c7a5

Please sign in to comment.