Skip to content

Latest commit

 

History

History
 
 

run_moveit_cpp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MoveIt 2 Logo

MoveIt 2 Beta - Demo Setup

The run_moveit_cpp package provides a simulated robot setup that shows how to get started with MoveIt 2. The demo includes examples for:

  • Configuring and loading MoveIt using MoveItCpp
  • Running a simulated robot
  • Visualizing robot and planning scene in RViz
  • Planning and execution of robot trajectories

The MoveIt 2 Demo provides all necessary features in order to get a simple robot setup running with ROS 2. There are two options and launch files for simulating the robot controllers (the demo is the same):

  1. ros2_control using a fake_joint driver: run_moveit_cpp.launch.py
  2. MoveIt's fake controller: run_moveit_cpp_fake_controller.launch.py

Prerequisites

Before running the demo, there are additional dependencies that need to be installed:

For that, simply import run_moveit_cpp.repos into your workspace and recompile with colcon (assuming the workspace has been compiled and sourced following the installation instructions):

cd $COLCON_WS/src
vcs import < moveit2/moveit_demo_nodes/run_moveit_cpp/run_moveit_cpp.repos
rosdep install --from-paths . --ignore-src --rosdistro foxy
cd ..
colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
source install/setup.bash

Running the Demo

The demo can be run using the launch files run_moveit_cpp.launch.py or run_moveit_cpp_fake_controller.launch.py:

 ros2 launch run_moveit_cpp run_moveit_cpp.launch.py

The demo launches the RViz GUI and demonstrates planning and execution of a simple collision-free motion plan with the panda robot. This involves a big range of functioning components: IK solver and collision checking plugins, PlanningScene, RobotModel, PlanningPipeline including adapters, OMPL planner and RViz visualization (Trajectory and PlanningScene displays).