Skip to content

Commit

Permalink
Add controller name parameter (backport #212) (#215)
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 Hernández Cordero <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2024
1 parent 0d72969 commit 36c42b3
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 = "/";

if (sdfPtr->HasElement("ros")) {
Expand Down

0 comments on commit 36c42b3

Please sign in to comment.