How to include motor wheel encoder ticks to ros_control hardware interface
Hi,
I have an FC-03 motor wheel encoder (infrared speed sensor module with the LM393 comparator) which I would like to use with my differential drive robot.
I can get the ticks from the sensor, the encoder disc has 20 ticks / rotation, which seems to work fine.
Questions:
1) How to include this into the hardware interface for the ros_control? The encoder don't know the direction of the movement, it can only provide the pulses / ticks, so basically it will be an incremental number.
2) Do I need to calculate the odom, or it will be done automatically by ros_control?
3) Is there any example?
Any help would be greatly appreciated!
Thanks!