Fixed problems in encoder_odom node

This pull request has been ignored in favour of another one.