Open smaria opened 5 years ago
Relevant notes from the ros workshop session on standard msgs:
Additionally:
Header
field to each message.value
or measure
field unless it is defined by some other filed. I wonder if the 'sensor timestamp' may sometimes be something distinct from the typical procedure of adding a HEADER timestamp to a message. E.g. sonar multibeam mapping may be sensitive to small time offsets, where it may be better to use the device internal timestamp as opposed to the ROS time when the message is generated. This way the device internal time may have a constant offset, but no variation due to reading and processing the data is added.
Further sources that might help improve the quality of the marine msgs:
I think the radar msgs may also be useful, e.g. for processed multibeam data.
A few more notes on defining new message types vs. using existing types:
If you have another ranging device with different behavior (e.g. a sonar array), please find or create a different message, since applications will make fairly laser-specific assumptions about this data http://docs.ros.org/api/sensor_msgs/html/msg/LaserScan.html
it's usually "better" (in the sense of making the code easier to understand, etc.) when developers use or create non-generic message types http://wiki.ros.org/std_msgs
These super generic datatypes also lost their semantic meaning because they are so generic making introspection and debugging much harder. (If you recieve a Int8MultiArray on the wire do you pass it to an image viewer or a point cloud viewer?) As such they've basically been unused, but left for quick prototyping so as not to break anyone already using them. https://github.com/ros/std_msgs/issues/8
Currently, over 60 message ideas are waiting to become ROS messages. Before we start 60 separate discussions, maybe some ground rules should be defined. What do we aim for with the messages? What are general rules for ROS messages we should comply with?