ROS msg format specification
Hi All,
I have created a custom CAN bus message but I would like to change the way that the information is printed out.
My .msg file is:
# Custom message for sending the IMU data to the hydraulic test system
# BJEM 19th May 2014.
Header header
uint32 time_ms
uint16 time_us
uint32 id # 11/29 bit code
uint8 msgtype # bits of MSGTYPE_*
uint8 len # count of data bytes (0..8)
uint8[] data # data bytes, up to 8
##### END OF FILE #####
I would like the fields id, and data to be printed out as hexadecimal numbers. There doesn't seem to be an obvious way to do that. Here's an example header sequence obtained using rostopic echo:
header:
seq: 48533
stamp:
secs: 1402018614
nsecs: 775459838
frame_id: ''
time_ms: 132547
time_us: 476
id: 2565877120
msgtype: 0
len: 7
data: [237, 124, 82, 122, 107, 122, 0]
---
Hexadecimal for the id and data makes it much easier to comprehend.
Thanks in Advance