Ask Your Question

Problems with moveit_msgs [closed]

asked 2015-11-27 11:01:51 -0500

Fredylucas gravatar image

updated 2015-11-27 11:04:29 -0500

Hi everybody, I have moved my robot using moveit package, however, now I'm trying to display the path using these lines:

ros::Publisher display_publisher = node_handle.advertise<moveit_msgs::DisplayTrajectory>("/move_group/display_planned_path", 1, true);
moveit_msgs::DisplayTrajectory display_trajectory;

and I get this error while compiling

error: ‘DisplayTrajectory’ is not a member of ‘moveit_msgs’

do you know what is going on?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Fredylucas
close date 2015-12-16 23:27:38.471608


Do you include moveit_msgs? Maybe you want to share the entire code.

130s gravatar image 130s  ( 2015-11-27 12:43:47 -0500 )edit

I have this:

#include <ros/ros.h>
#include "std_msgs/String.h"
#include <moveit_msgs/DisplayTrajectory.h>
#include <moveit/move_group_interface/move_group.h>
#include <skeleton_tracker/are_there_users.h>
Fredylucas gravatar image Fredylucas  ( 2015-11-27 13:10:06 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-12-16 23:27:04 -0500

Fredylucas gravatar image

At the end it works, I don't know yet why it was displaying the error.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-11-27 11:01:51 -0500

Seen: 186 times

Last updated: Dec 16 '15