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

AnyMsg equivalent in C++

asked 2015-12-02 03:49:27 -0600

Hi,

Is there any C++ alternative to rospy.AnyMsg? I need to forward a message in binary format so that I would like my node to subscribe to an unserialized version of the message, or something similar. The only solution I found so far is to create a custom adaptation as explained here in point 3.3, but this requires to customize the traits for every message type.

Thanks!

edit retag flag offensive close merge delete

Comments

search the wiki for something called shapeshifter

ahendrix gravatar image ahendrix  ( 2015-12-02 11:25:22 -0600 )edit

I saw it but for any reason I do not remember I thought it was not what I wanted.

Javier V. Gómez gravatar image Javier V. Gómez  ( 2015-12-02 13:07:49 -0600 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2015-12-02 13:43:45 -0600

ahendrix gravatar image

The relay node in the topic_tools package uses ShapeShifter to forward messages without knowing their type: https://github.com/ros/ros_comm/blob/...

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2015-12-02 03:49:27 -0600

Seen: 673 times

Last updated: Dec 02 '15