Skip to content

Commit

Permalink
propagate gazebo remapping and other arguments to the controller node (
Browse files Browse the repository at this point in the history
…#396) (#397)

(cherry picked from commit cbdd3a3)

Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
mergify[bot] and saikishor authored Aug 23, 2024
1 parent 4bcaebb commit a9bcaa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,14 @@ 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();
options.arguments(arguments);
this->dataPtr->controller_manager_.reset(
new controller_manager::ControllerManager(
std::move(resource_manager_),
this->dataPtr->executor_,
controllerManagerNodeName,
this->dataPtr->node_->get_namespace()));
this->dataPtr->node_->get_namespace(), options));
this->dataPtr->executor_->add_node(this->dataPtr->controller_manager_);

this->dataPtr->update_rate = this->dataPtr->controller_manager_->get_update_rate();
Expand Down

0 comments on commit a9bcaa2

Please sign in to comment.