Skip to content

Commit

Permalink
Cleanup moveit_config (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <yadunund@openrobotics.org>
  • Loading branch information
Yadunund authored Jan 18, 2024
1 parent fd9a44c commit 6935658
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions abb_bringup/launch/abb_moveit.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ def launch_setup(context, *args, **kwargs):
"kinematics.yaml",
)
)
# MoveIt does not handle controller switching automatically
.trajectory_execution(
file_path=os.path.join(
get_package_share_directory(
f"{moveit_config_package.perform(context)}"
),
"config",
"moveit_controllers.yaml",
)
),
moveit_manage_controllers=False,
)
.planning_scene_monitor(
publish_planning_scene=True,
Expand All @@ -90,23 +92,12 @@ def launch_setup(context, *args, **kwargs):
.to_moveit_configs()
)

# MoveIt controllers
moveit_controllers = {
"moveit_simple_controller_manager": load_yaml(
f"{moveit_config_package.perform(context)}",
"config/moveit_controllers.yaml",
),
"moveit_controller_manager": "moveit_simple_controller_manager/MoveItSimpleControllerManager",
}

# Start the actual move_group node/action server
move_group_node = Node(
package="moveit_ros_move_group",
executable="move_group",
output="screen",
parameters=[
moveit_config.trajectory_execution,
moveit_controllers,
moveit_config.to_dict(),
],
)
Expand Down

0 comments on commit 6935658

Please sign in to comment.