修改gazebo 发布的odom 话题名

当你想自己发布odom话题控制rviz里的机器人运动时,发现gazebo也发布了odom话题,此时的一种方法就是把gazebo中的odom话题改名

  <gazebo>
    <plugin name="turtlebot3_burger_controller" filename="libgazebo_ros_diff_drive.so">
      <commandTopic>cmd_velcommandTopic>
      <odometryTopic>odom2odometryTopic>
      <odometryFrame>odomodometryFrame>
      <odometrySource>worldodometrySource>
      <publishOdomTF>truepublishOdomTF>
      <robotBaseFrame>base_footprintrobotBaseFrame>
      <publishWheelTF>falsepublishWheelTF>
      <publishTf>truepublishTf>
      <publishWheelJointState>truepublishWheelJointState>
      <legacyMode>falselegacyMode>
      <updateRate>30updateRate>
      <leftJoint>wheel_left_jointleftJoint>
      <rightJoint>wheel_right_jointrightJoint>
      <wheelSeparation>0.160wheelSeparation>
      <wheelDiameter>0.066wheelDiameter>
      <wheelAcceleration>1wheelAcceleration>
      <wheelTorque>10wheelTorque>
      <rosDebugLevel>narosDebugLevel>
    plugin>
  gazebo>

odom2
这样就 成了odom2了

你可能感兴趣的:(ROS)