ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Got it working. It's really just as simple as
typedef struct {
char a;
float b;
char c;
} stc;
And later...
stc* d = (stc*)&msg.data;
Since the other side of the line does packing and converting endianness I had to take care of having all the uint8 in the right place before doing this.
It's working. Thanks anyway!