Added a param to publish or not to publish the odometry transform for the pose update