How to correctly create an odometry message
Hi everyone.
I creating a driver for my motors and I'm wondering how to create a "good" odometry data to send on the /odom topic. For instance, I know that documentation but I'm wondering if I should initialize all the parameters, especially the header part.
This is the header :
uint32 seq
time stamp
string frame_id
Should I declare stuff like header.frame_id="base_link"
or is it automatically done in some way ?
For now my Odometry data is an attribute of my class robot, should I redeclare a new nav_msgs::Odometry each time I'm sending an information on the /odom topic for the header information to be updated ? Especially I didn't find constructor declaration as well.
I didn't find any clear explanation on that on the wiki. I plan on using robot_base_efk afterward.
Thanks a lot.