Skip to content

Commit

Permalink
Add controller name parameter (#212)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Delicat <[email protected]>
(cherry picked from commit b77f972)

# Conflicts:
#	gz_ros2_control/src/gz_ros2_control_plugin.cpp
  • Loading branch information
delihus authored and mergify[bot] committed Jan 3, 2024
1 parent 0d72969 commit bfa0305
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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,14 @@ void GazeboSimROS2ControlPlugin::Configure(

// Get controller manager node name
std::string controllerManagerNodeName{"controller_manager"};
<<<<<<< HEAD:gz_ros2_control/src/gz_ros2_control_plugin.cpp
=======

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

>>>>>>> b77f972 (Add controller name parameter (#212)):ign_ros2_control/src/ign_ros2_control_plugin.cpp
std::string ns = "/";

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

0 comments on commit bfa0305

Please sign in to comment.