Skip to content

Commit

Permalink
Add remap option to controller manager (#442)
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Fröhlich <[email protected]>
  • Loading branch information
Tacha-S and christophfroehlich authored Jan 21, 2025
1 parent 6241d66 commit 0a44a08
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 0a44a08

Please sign in to comment.