ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

From your link:

lwheel (std_msgs/Int16)

rwheel (std_msgs/Int16)

Output from the left and right wheel encoders. The hardware is expected to count pulses from the wheel encoders, and provide the total number of pulses since the start of tracking.

You don't send ticks, The hardware in the robot is responsible for counting the encoder lines and providing that number to ROS. You will send the count periodically, but you decide how often to send the numbers.

You ask a very good question about the values being limited to Int16. It's possible the code has a way to detect rollover. You can check the source code and see if there is handling for that.