0

I'm using rospy and roscpp to connect each other. One of the roscpp node published a cereal binary archive topic and is subscribed by rospy node. How can I read the cereal binary archive using python?

CHOcho
  • 1

1 Answers1

0

If I'm understanding you correctly, you're trying to send a message between ros nodes, that happen to be implemented in different languages. But the language of implementation doesn't matter, because ros automatically serializes the messages. Fundamentally, all it is is a language-agnostic messaging system. If you want to pass data between nodes, choose a message type, publish that message to a topic in one node, and subscribe to it with a callback in another node.

If you want to use a custom serialization over data, and the ros messages seem insufficient, then you probably want to use a std_msgs:: String!, ByteMultiArray, or UInt8MultiArray. But cereal doesn't quite do automatic serialization for you, as you still have to declare the functions. Overall, if you're using ros, it seems redundant; unless you're using it, perhaps, to log or store data?

JWCS
  • 1,120
  • 1
  • 7
  • 17