Ask Your Question
1

AnyMsg equivalent in C++

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

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 -0500 )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 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

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

Seen: 422 times

Last updated: Dec 02 '15