Skip to content

Commit e3b91cd

Browse files
Don't assume gripper controller for single joint control in MoveIt Setup Assistant (backport #2555) (#2560)
* 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) Co-authored-by: Forrest Rogers-Marcovitz <[email protected]>
1 parent f64b202 commit e3b91cd

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)