gazeboをlaunchした時に<legacyModeNS>がないとエラーが出る


GazeboRosControlPlugin missing <legacyModeNS> while using DefaultRobotHWSim, defaults to true.
This setting assumes you have an old package with an old implementation of DefaultRobotHWSim, where the robotNamespace is disregarded and absolute paths are used instead.
If you do not want to fix this issue in an old package just set <legacyModeNS> to true.

解決法

hoge.xacro
<gazebo>
  <plugin name="control" filename="libgazebo_ros_control.so">
    <legacyModeNS>true</legacyModeNS>
  </plugin>
</gazebo>

このようにurdfファイルかxacroファイルの中にあるgazeboのタグの中でtrueタグをtrueにすることで解決ができる。

参考