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]>
  • Loading branch information
delihus authored Jan 3, 2024
1 parent e20382a commit b77f972
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ign_ros2_control/src/ign_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ void IgnitionROS2ControlPlugin::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")) {
sdf::ElementPtr sdfRos = sdfPtr->GetElement("ros");
Expand Down

0 comments on commit b77f972

Please sign in to comment.