-
Notifications
You must be signed in to change notification settings - Fork 6
MoveIt Tutorial
Please visit the MoveIt! homepage for more information
This tutorial describes how to use the Baxter Research Robot with MoveIt! the standard ROS motion planning framework.
Check out the Baxter MoveIt configuration package
$ git clone https://github.com/ros-planning/moveit_robots.git
# Either Add moveit_robots to your ROS_PACKAGE_PATH or place is below your sdk-example directory
The follow debian packages are required for using MoveIt! with Baxter
$ sudo apt-get install ros-groovy-moveit-full
$ sudo apt-get install ros-groovy-pr2-moveit-plugins
MoveIt! motion planning framework provides capabilities including Kinematics (IK, FK, Jacobian), Motion Planning (OMPL, SBPL, CHOMP) integrated at MoveIt! plugins, Environment Representation (robot representation, environment representation, collision checking, contraint evaluation), execution using move_groups, benchmarking, warehouse database for storage (scenes, robot states, motion plans), a C++/Python API and more!
Baxter now supports using MoveIt! through the addition of the configurable joint trajectory action server, and hosting of the necessary MoveIt! configuration files on ros_planning/moveit_robots.
This tutorial will focus on the MoveIt! Rviz plugin as an introduction to some of the capabilities of MoveIt!
Verify that the robot is enabled from an RSDK terminal session, ex:
$ rosrun tools enable_robot.py -e
Start the joint trajectory controller, ex:
$ rosrun baxter_interface trajectory_controller.py
In another RSDK terminal session, Launch the rviz MoveIt! plugin, ex:
$ roslaunch baxter_moveit_config demo_baxter.launch
Note: Launching baxter_moveit_config demo_baxter.launch
with the ROS_MASTER_URI set to the robot (ie. using the robot's ros master) starts a new joint_state/robot_state publisher causing the robot's internal joint_state/robot_state publisher
The rviz gui will then open showing Baxter with interactive markers:
See the API Reference page for details.
- Joint Trajectory Action Server - /sdk/robot/limb/right/follow_joint_trajectory [control_msgs/FollowJointTrajectoryAction]
- Joint Trajectory Action Server - /sdk/robot/limb/left/follow_joint_trajectory [control_msgs/FollowJointTrajectoryAction]
- JointTrajectoryActionServer class:
joint_trajectory_action_server.py
###The arm is not executing the trajectory Verify that the robot is enabled:
rosrun tools enable_robot.py -e
Verify that the trajectory controller has been started:
rosrun baxter_interface trajectory_controller.py