ros2 / rosidl_typesupport

Packages which provide the typesupport for ROS messages and services
Apache License 2.0
13 stars 34 forks source link

Ros 2 typesupport for rosbag:: MessageInstance class #18

Closed sagniknitr closed 6 years ago

sagniknitr commented 6 years ago

Hi,

The current implementation of ros 2 messages use the typesupport generation to generate C++ structures which are used to publish/subscribe to layers.I want to create a message strucutre like the MessageInstance class of ROS 1 rosbag, so that I can send the messages stored in bag files to ROS 2 nodes. I will be happy to receive any comment on this idea and discuss if it is feasible or not in the current version of ros 2.

Thank You.

dirk-thomas commented 6 years ago

The currently available API in ROS 2 doesn't allow you to publish / subscribe to an unknown type (not available on your system). In the context of implementing rosbag in ROS 2 @Karsten1987 is working on an API to allow raw binary subscriptions / publications (see ros2/demos#185). That would be necessary for the goal you have in mind.

dirk-thomas commented 6 years ago

I will close this question for now since the referenced ticket covers the capability to allow publishing / subscribing to arbitrary types.