ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When I define two planning groups, one for the bottom arm and one for the upper arm, in the Rviz I have to move those groups separately. [..] Now that doesn't look like something you want to do. Ideally you want to move the whole robot at once, right?

yes, exactly. If you have a single robot you'd typically define a single planning group for the entire robot.

But if I define the whole robot as one planning group, what is the purpose of the planning groups in the first place?

Well, you only have a single robot. And if it's a relatively simple robot (which yours is), then it makes sense to define a planning group that contains all joints, as it makes it easy to plan for your single robot.

Planning groups start to make sense when:

  • you have multiple robots in a single scene
  • you have only one robot, but it's a composite robot (ie: actually consists of multiple robots that are considered to be one robot; a dual-arm setup would be one example)
  • you have a single robot, but it has multiple end-effectors (in some cases you would configure N groups for N EEFs)
  • your robot is complex (or large) enough to make it convenient to plan for subsets of joints (a humanoid with 32 dof would be an example, where you'd like to plan for each arm and each leg separately)

In each of these cases having multiple planning groups makes it easier to set goals for individual groups, so you don't have to deal with any of the other parts of the robot.

For simple setups like yours this may not be immediately applicable, but it can be very convenient.