Skip to content

Commit 3234c33

Browse files
forrest-rmsjahr
authored andcommitted
Don't assume gripper controller for single joint control in MoveIt Setup Assistant (#2555)
* For single joint controllers which are not gripper controllers, still output joints list * Use OR * Only check for GripperActionController Co-authored-by: Sebastian Jahr <[email protected]> --------- Co-authored-by: Sebastian Jahr <[email protected]> (cherry picked from commit 81094a6)
1 parent 2ee72ae commit 3234c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moveit_setup_assistant/moveit_setup_controllers/src/ros2_controllers_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool ROS2ControllersConfig::GeneratedControllersConfig::writeYaml(YAML::Emitter&
192192
emitter << YAML::Value;
193193
emitter << YAML::BeginMap;
194194
{
195-
if (ci.joints_.size() != 1)
195+
if (ci.type_ != "position_controllers/GripperActionController")
196196
{
197197
emitter << YAML::Key << "joints" << YAML::Value << ci.joints_;
198198
}

0 commit comments

Comments
 (0)