What is the endianness of ROS message fields?

asked 2015-08-03 19:00:54 -0500

Arto Bendiken gravatar image

The documentation on ROS messages omits an essential detail for anyone implementing a new client library: what is the endianness of multi-byte fields such as uint32 and float64?

Are these fields to be interpreted as little-endian (some of the bag serialization code would seem to imply that) or big-endian (which is generally the standard network byte order)?

edit retag flag offensive close merge delete

Comments

2

Not an answer, but I just noticed Guillaume Autran (Clearpath) has written / is in the process of writing a Wireshark dissector for TCPROS (see TCPROS - Initial implementation for the Robot Operating System TCP protocol). Might be interesting.

gvdhoorn gravatar image gvdhoorn  ( 2015-08-04 01:49:48 -0500 )edit
1

All references to Endianness I can find in that dissector point to little-endian being used.

gvdhoorn gravatar image gvdhoorn  ( 2015-08-04 01:52:13 -0500 )edit

Thanks, @gvdhoorn. I also posed the question on IRC but didn't receive a response.

Arto Bendiken gravatar image Arto Bendiken  ( 2015-08-08 17:47:35 -0500 )edit