Changed odometry calculation to happen each time it is published, rather than each time the wheel callback function is called.
Several global variables were moved to be local to the new function setValues, such as dx, last_time_encoder, current_time_encoder, dth, etc
Odometry publish rate is most accurate at 10Hz.