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 7e388fa commit 28a9098
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 = "/";

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

0 comments on commit 28a9098

Please sign in to comment.