Skip to content

Commit

Permalink
Add controller name parameter (backport #212) (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Jakub Delicat <[email protected]>
Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2024
1 parent 7e388fa commit 790d105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ void GazeboSimROS2ControlPlugin::Configure(

// Get controller manager node name
std::string controllerManagerNodeName{"controller_manager"};

if (sdfPtr->HasElement("controller_manager_name")) {
controllerManagerNodeName = sdfPtr->GetElement("controller_manager_name")->Get<std::string>();
}

std::string ns = "/";

// Hold joints if no control mode is active?
Expand Down

0 comments on commit 790d105

Please sign in to comment.