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

When to use the move_groupinterface and GetMotionPlan service

asked 2017-03-17 09:29:56 -0500

R.Mehra gravatar image

I am aware of the implementation of motion planning in moveit using the move_group_interface

If I have a simple pose goal, I can use the moveit_ros/planning_interface/move_group_interface to do the planning.

However, I can do the same using the GetMotionPlan service from moveit_msgs.

My question is, when should I use what? What could be the advantages and disadvantages of each method?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-18 10:58:39 -0500

v4hn gravatar image

The MoveGroupInterface class is a convenience wrapper for a lot of the ROS interfaces exposed by the move_group node, including GetMotionPlan. It builds and calls these services for you, so that you don't have to fill in all the parameters yourself. If you feel more comfortable using the bare service, you can use them too. Considering readability of the resulting source code MoveGroupInterface is usually better in my experience.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-03-17 09:29:56 -0500

Seen: 234 times

Last updated: Mar 18 '17