Robotics StackExchange | Archived questions

Problems with moveit_msgs

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?

Asked by Fredylucas on 2015-11-27 12:01:51 UTC

Comments

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

Asked by 130s on 2015-11-27 13:43:47 UTC

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>

Asked by Fredylucas on 2015-11-27 14:10:06 UTC

Answers

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

Asked by Fredylucas on 2015-12-17 00:27:04 UTC

Comments