============== |package_name| ============== :ir_github:` ` Quickstart ---------- Set Up Development Environment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #. Set up your development environment by following the instructions in :doc:`Getting Started `. #. Clone ``isaac_ros_common`` under ``${ISAAC_ROS_WS}/src``. .. code:: bash cd ${ISAAC_ROS_WS}/src && \ git clone :ir_clone:`` Install |package_name| and Examples ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. include:: _snippets/install.rst Set Up MoveIt 2 with cuMotion ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Complete the following steps for your selected robot. .. tabs:: .. tab:: Universal Robot (UR) #. **Optional:** If running on a physical UR robot, launch the robot driver in a separate terminal. Substitute the robot's IP address for ````, and replace ``ur10e`` with the correct robot model (both here and in the steps below) if using a UR robot other than UR10e. .. code:: bash ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur10e robot_ip:= launch_rviz:=false #. Generate a URDF for the UR10e from the corresponding xacro: .. code:: bash mkdir -p ${ISAAC_ROS_WS}/isaac_ros_assets/urdf && \ xacro -o ${ISAAC_ROS_WS}/isaac_ros_assets/urdf/ur10e.urdf /opt/ros/humble/share/ur_description/urdf/ur.urdf.xacro ur_type:=ur10e name:=ur10e #. Launch MoveIt (including RViz). .. code:: bash ros2 launch isaac_ros_cumotion_examples ur.launch.py ur_type:=ur10e #. In a separate terminal, run the cuMotion planner node. Remember to first ``source install/setup.bash`` if package was built from source. .. code:: bash ros2 run isaac_ros_cumotion cumotion_planner_node --ros-args \ -p robot:=$(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/ur10e.xrdf \ -p urdf_path:=${ISAAC_ROS_WS}/isaac_ros_assets/urdf/ur10e.urdf .. tab:: Franka #. Launch MoveIt (including RViz). .. code:: bash ros2 launch isaac_ros_cumotion_examples franka.launch.py #. In a separate terminal, run the cuMotion planner node. Remember to first ``source install/setup.bash`` if package was built from source. .. code:: bash ros2 run isaac_ros_cumotion cumotion_planner_node --ros-args \ -p robot:=$(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf \ -p urdf_path:=/opt/ros/humble/share/moveit_resources_panda_description/urdf/panda.urdf .. tab:: Another Robot #. Create a MoveIt configuration for your robot using the MoveIt setup assistant. #. cuMotion requires a URDF as well as an :ref:`XRDF ` file for the robot. URDFs are available for most common robot arms, but it may be necessary to create an XRDF file. Follow the :ref:`Creating an XRDF file for a Custom Manipulator ` section of the :doc:`Custom Manipulator tutorial `. #. Copy cuMotion's planning configuration file to the MoveIt ``config`` directory for your robot: .. code:: bash cp ${ISAAC_ROS_WS}/src/isaac_ros_cumotion/isaac_ros_cumotion_moveit/config/isaac_ros_cumotion_planning.yaml \ PATH/TO/ROBOT_moveit_config/config/ #. In the MoveIt launch file for your robot (e.g., ``_moveit_config/launch/_moveit.launch.py``), add the following entry to the ``parameters`` list of the ``Node()`` constructor for ``move_group_node``: .. code:: python { "planning_pipelines": ["ompl", "isaac_ros_cumotion"] } #. Install any additional required packages for your robot, and run ``source install/setup.bash`` if building from source. #. Launch MoveIt (including RViz) using a suitable launch file for your robot, e.g.: .. code:: bash ros2 launch ROBOT_moveit_config ROBOT_moveit.launch.py #. In a separate terminal, run the cuMotion planner node. Remember to first run ``source install/setup.bash`` if package was built from source. .. code:: bash ros2 run isaac_ros_cumotion cumotion_planner_node --ros-args -p robot:=/path/to/ROBOT.xrdf -p urdf_path:=/path/to/ROBOT.urdf Using the cuMotion Planner in MoveIt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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. .. figure:: :ir_lfs:`` :align: center Then select a target pose for the robot end effector, and click the **"Plan"** button in the **"Planning"** tab. For a demonstration of collision-aware planning, first add one or more obstacles in the **"Scene Objects"** tab. .. note:: The **"Execute"** and **"Plan & Execute"** buttons in RViz will only work if a physical robot is connected or if the robot is emulated in the corresponding robot driver or via an external simulator. The MoveIt configuration for Franka includes such emulation via a "fake hardware" interface, but the same is not true for UR, which would require an external simulator such as URSim. .. figure:: :ir_lfs:`` :align: center .. warning:: In normal operation, only a single MoveIt ``move_group`` node should be running at a time. If the node fails to exit cleanly, however, it may result in two nodes running when the graph is next launched. RViz then connects to both instances, which results in both requesting a plan from the cuMotion planner node via a ``MoveGroup`` action at nearly the same time. The second to arrive preempts the first without waiting for in-flight CUDA operations to complete, possibly resulting in "CUDA invalid" errors. If such errors are observed, please ensure that only a single ``move_group`` node is running. The cuMotion planner node will be made more robust in a future release. Try More Examples ----------------- To continue your exploration, check out the following suggested examples: * :doc:`Tutorial for integrating custom manipulators with cuMotion ` * :doc:`Tutorial for cuMotion MoveIt plugin with Isaac Sim ` * :doc:`Tutorial for obstacle avoidance and object following using cuMotion with perception ` * :doc:`Tutorial for pick and place using cuMotion with perception ` Troubleshooting --------------- Isaac ROS Troubleshooting ~~~~~~~~~~~~~~~~~~~~~~~~~ For solutions to problems with Isaac ROS, see :doc:`troubleshooting `. .. |package_name| replace:: ``isaac_ros_cumotion_moveit``