rosbag2 icon indicating copy to clipboard operation
rosbag2 copied to clipboard

Generic debug topic / message

Open rshanor opened this issue 2 years ago • 0 comments

Description

Please let me know if a similar feature already exists. I am imagining some generic message type.

# Generic message definition
string topic
string type
string serialized_message

The recorder could subscribe to a topic like /rosbag2_recorder/generic_message_topic

Then I could write code like.

generic_publisher.publish(Foo(), "/myFooTopic", "std_msgs/Foo")
generic_publisher.publish(Bar(), "/myBarTopic", "std_msgs/Bar")

In the log, this would look like normal messages.

Topic information: Topic: /myFooTopic | Type: std_msgs/Foo | Count: 1
                             Topic: /myBarTopic | Type: std_msgs/Bar | Count: 1

It would make it super easy for me to populate my log with a bunch of debug data without having to pass around a bunch of publishers. Thoughts?

rshanor avatar Nov 08 '22 19:11 rshanor