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

How to print all Info in InteractiveMarkerFeedback

asked 2016-07-23 08:42:42 -0500

user23fj239 gravatar image

updated 2016-07-23 10:41:06 -0500

I am following the Simple Interactive Marker tutorial and I try to visualize all the information I can get from the pointer. But catkin_make complains the function is not existent, but the class template says otherwise. Headers and package.xml and cmakelist should be ok.
How to go from here:

 void processMarkerFeedback(const
                           & feedbackPtr)
  unsigned char buff[1000];
  feedbackPtr->serialize(buff);// fail
  printf("%s\n", buff);

catkin_make says

error: ‘const struct visualization_msgs::InteractiveMarkerFeedback_<std::allocator<void> >’ has no member named ‘serialize’

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-07-25 07:12:30 -0500

user23fj239 gravatar image

updated 2016-07-25 07:12:56 -0500

I use kinetic, and it looks like they dissolved the header file InteractiveMarkerFeedback.
Cannot locate it anymore. Basically it was only about (de-) serialization.

Probably to reduce src files, the new interactive marker definition is here.

edit flag offensive delete link more

answered 2016-07-23 12:36:03 -0500

kramer gravatar image

I don't know if this is the issue, but the class template that you link to is from hydro. What version of ROS are you using?

I'm using indigo, which apparently also has serialize and deserialize methods (which I didn't know, so thanks!). I don't know if jade or later retain that API for messages, so that's something to check.

edit flag offensive delete link more


mmh, I will check

user23fj239 gravatar image user23fj239  ( 2016-07-25 07:13:16 -0500 )edit

Question Tools

1 follower


Asked: 2016-07-23 08:42:42 -0500

Seen: 461 times

Last updated: Jul 25 '16