Tutorial for cuMotion MoveIt Plugin with Isaac Sim#

https://media.githubusercontent.com/media/NVIDIA-ISAAC-ROS/.github/release-4.1/resources/isaac_ros_docs/concepts/manipulation/cumotion_moveit/isaac_sim.jpg/

Overview#

This tutorial walks through the process of planning trajectories for a simulated Franka or UR robot in Isaac Sim, leveraging the cuMotion plugin for MoveIt 2 provided by Isaac ROS cuMotion. It is based on an example developed by PickNik Robotics, which in turn was based on a MoveIt example, with fewer features, provided with Isaac Sim.

Tutorial Walkthrough#

Set Up Development Environment#

  1. Set up your development environment by following the instructions in Getting Started.

Install isaac_ros_cumotion_moveit and Examples#

  1. Install the isaac_ros_cumotion_examples package and its dependencies (including isaac_ros_cumotion and isaac_ros_cumotion_moveit):

    1. Activate the Isaac ROS environment:

      isaac-ros activate
      
    2. Install the prebuilt Debian package:

      sudo apt-get update
      
      sudo apt-get install -y ros-jazzy-isaac-ros-cumotion-examples
      
  2. Install and configure Isaac Sim following the steps in the Isaac ROS Isaac Sim Setup Guide, stopping after step 4.

  3. This tutorial uses the Isaac Sim standalone workflow, in which Isaac Sim is launched using a Python script. In the terminal opened using the Open in Terminal button in the Isaac Sim App Selector (and notably not in a shell within the Isaac ROS environment), source your ROS 2 workspace. For example:

    source /opt/ros/jazzy/setup.bash
    
  4. Set up your robot using the instructions below:

  1. Start Isaac Sim and open the following scene:

    https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/5.1/Isaac/Samples/ROS2/Scenario/isaac_manipulator_scene.usd
    
  2. Optional: The above scene contains a UR10e robot. If you would like to experiment with a different UR robot:

    1. Delete the UR10e from the scene.

    2. Find the alternative robot in Isaac Sim’s robot assets folder and drag it onto the table in the scene.

    3. Edit the Action Graph so that the ROS2 Publish Joint State and Articulation Controller nodes refer to the new robot, and save the USD file.

  3. After the scene is fully loaded, click Play.

    Note

    Before launching MoveIt, ensure that the scene is loaded in Isaac Sim and that the timeline is playing.

    Running ros2 topic list in your ROS workspace should show a number of topics streaming data from Isaac Sim.

Set Up MoveIt 2 with cuMotion#

Note

If you are using a UR robot other than UR5e or UR10e, follow the Creating an XRDF file for a Custom Manipulator section of the Custom Manipulator tutorial before proceeding to the instructions below.

The Isaac Sim scene contains a UR10e by default and will have to be modified for other robots. Refer to section above.

  1. Open a new terminal inside the Isaac ROS environment.

    isaac-ros activate
    
  2. Launch MoveIt (including RViz) using the provided launch file. Remember to first run source install/setup.bash if package was built from source.

    ros2 launch isaac_ros_cumotion_examples ur_isaac_sim.launch.py ur_type:=<UR_TYPE>
    

    Note

    Replace <UR_TYPE> with the type of your UR robot (for example, ur10e).

    The visualization of the robot in RViz should reflect the current joint state of the simulated robot in Isaac Sim.

Using the cuMotion Planner in MoveIt#

  1. In RViz, enable cuMotion by ensuring that isaac_ros_cumotion and cuMotion are selected within the Planning Library pane within the Context tab in the bottom left corner of the RViz window.

    https://media.githubusercontent.com/media/NVIDIA-ISAAC-ROS/.github/release-4.1/resources/isaac_ros_docs/repositories_and_packages/isaac_ros_cumotion/isaac_ros_cumotion_moveit/moveit_context.png/
  2. Select a target pose for the robot end effector and click the Plan button in the Planning tab. If planning is successful, an animation of the trajectory will be visualized in RViz.

  3. Click the Execute button in RViz. The simulated robot in Isaac Sim will follow the motion of the robot in RViz.