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

where is the document for namespace of move_group_interface

asked 2017-01-17 02:19:29 -0500

shawnysh gravatar image

updated 2017-01-17 02:50:17 -0500

In book, Master ROS for Robotics Programming. I notice this header file below

//MoveIt! header file
#include <moveit/move_group_interface/move_group.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "test_random_node",
ros::init_options::AnonymousName);
// start a ROS spinning thread
ros::AsyncSpinner spinner(1);
spinner.start();
// this connects to a running instance of the move_group node
// Here the Planning group is "arm"
move_group_interface::MoveGroup group("arm");
// specify that our target will be a random one
group.setRandomTarget();
// plan the motion and then move the group to the sampled target
    group.move();
    ros::waitForShutdown();
}

I tried to find the document for this header, but just found planning_interface namespace for move_group.h file , instead of move_group_interface namespace.

QUESTION1:

Why?

QUESTION2:

Or, maybe actually, it is not a question for ROS but for C++ instead?

EDIT1

Document of MoveGroupInterface, where it shows the header:

#include <move_group_interface.h>

QUESTION3:

If I want to use MoveGroupInterface class, how should I write the header correctly in my own code?

edit retag flag offensive close merge delete

Comments

@shawnysh: this is more of a comment and not an answer to this / these question(s), but: could you please not ask multiple questions in a single post? ROS Answers is a Q&A site, not a regular forum. Q&A sites work, because they link question and answer together. If you ask multiple questions in ..

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 03:12:03 -0500 )edit

.. a single post, this system breaks down.

Your previous questions (#q252075) was titled "which node is motion planner in moveit?", but also included questions on moveit action topics and motion planning requests. As the title is what future users see (first), and the title doesn't cover (all) ..

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 03:14:55 -0500 )edit

.. the questions, visibility and searchability suffers.

Please keep this in mind when posting in the future.

Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 03:16:00 -0500 )edit

I do like your enthousiasm and inquisitive nature, so keep that up!

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 03:16:54 -0500 )edit

Thanks for your reminder. I just want to demonstrate my questions clearly, cause sometimes several questions pop up together and link to each other, and it seems hard for me to separate them into different posts. I will try hard to take care of it. Thanks for your encouragement.

shawnysh gravatar image shawnysh  ( 2017-01-17 10:06:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-01-17 07:00:42 -0500

v4hn gravatar image

updated 2017-01-17 08:49:10 -0500

First let's talk about C++ namespaces:

We recently renamed moveit::planning_interface::MoveGroup to moveit::planning_interface::MoveGroupInterface in kinetic, so that's one source of confusion.

And secondly, the move_group_interface namespace is obsolete since hydro, but we only removed it in kinetic. So the correct way to refer to the class in kinetic is moveit::planning_interface::MoveGroupInterface.

The include question is a good one indeed. The path on the doxygen page is plain wrong. This is doxygen's default behavior if no explicit include header is specified...

The correct include path can (basically) be seen in the include folder of each package. In this case it is #include <moveit/move_group_interface/move_group_interface.h>

-- Edit --

I added a pull-request to change the documentation to the correct include path here.

edit flag offensive delete link more

Comments

Thanks for your reply. It is pleasure to see that my questions can help contribute to the community!

shawnysh gravatar image shawnysh  ( 2017-01-17 10:01:27 -0500 )edit

It would be even better if you could provide patches yourself. ;) I know this is hard when you first start with a project, but please consider contributing yourself at some point. The maintainers (me included) have not that much time to implement such changes... :-)

v4hn gravatar image v4hn  ( 2017-01-17 10:31:17 -0500 )edit

I will try it out in the future, now I want to spare more time on the project

shawnysh gravatar image shawnysh  ( 2017-01-18 00:29:29 -0500 )edit

Question Tools

4 followers

Stats

Asked: 2017-01-17 02:19:29 -0500

Seen: 1,043 times

Last updated: Jan 17 '17