moveit2_tutorials icon indicating copy to clipboard operation
moveit2_tutorials copied to clipboard

Sequence Tutorial for Pilz Industrial Motion Planner

Open ravijo opened this issue 2 years ago • 2 comments

Description

I am looking for Sequence Tutorial for Pilz Industrial Motion Planner in MoveIt 2.

Your environment

  • ROS Distro: Humble
  • OS Version: Ubuntu 22.04
  • Source or Binary build: Source

Additional Info

Below is the code snippet showing sequence tutorial in Python for ROS Melodic:

    # Repeat the previous steps with a sequence command
    sequence = Sequence()
    sequence.append(Lin(goal=Pose(position=Point(0.2, 0, 0.8)), vel_scale=0.1, acc_scale=0.1))
    sequence.append(Circ(goal=Pose(position=Point(0.2, -0.2, 0.8)), center=Point(0.1, -0.1, 0.8), acc_scale=0.1))
    sequence.append(Ptp(goal=pose_after_relative, vel_scale=0.2))

    r.move(sequence)

    # Move to start goal for sequence demonstration
    r.move(Ptp(goal=start_joint_values))

    # Blend sequence
    blend_sequence = Sequence()
    blend_sequence.append(Lin(goal=Pose(position=Point(0.2, 0, 0.7)), acc_scale=0.05), blend_radius=0.01)
    blend_sequence.append(Lin(goal=Pose(position=Point(0.2, 0.1, 0.7)), acc_scale=0.05))

    r.move(blend_sequence)

Source: https://docs.ros.org/en/melodic/api/pilz_robot_programming/html/

ravijo avatar Oct 27 '23 13:10 ravijo

I don't think this part of the tutorial has been ported over, so you're welcome to give it a shot! I'd suggest looking at the integration test in the moveit2 repo that does a sequence with Pilz:

https://github.com/ros-planning/moveit2/blob/main/moveit_planners/pilz_industrial_motion_planner/test/integration_tests/src/integrationtest_sequence_action.cpp

sea-bass avatar Oct 27 '23 14:10 sea-bass

@ravijo Did you able to implement it?. Can you give me a hint?

thanh7040 avatar Jan 19 '24 04:01 thanh7040

We had someone recently contribute this tutorial, and the PR is a few small comments away from being merged! https://github.com/moveit/moveit2_tutorials/pull/917

sea-bass avatar Aug 01 '24 04:08 sea-bass

Thanks for the update @sea-bass

ravijo avatar Aug 01 '24 05:08 ravijo