gazebo_ros_control plugin: GazeboRosControlPlugin missing <legacyModeNS> DefaultRobotHWSim
I upgraded my Linux box from Ubuntu 17.04 to 18.04 (x64) and upgraded ROS lunar to melodic. Now, when I run my launch file I get the following error:
[ERROR] [1527494740.144219702, 307.635000000]: 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.
I am not sure what this error message is telling me. Let me sum what I think I know:
- The
gazebo_ros_control
plugin is a gazebo plugin providing an interface to control a robot in gazebo from ros. (so maybe this is not the right place to ask this question) - I am not sure which setting assumes that I am using an old implementation of
DefaultRobotHWSim
, butDefaultRobotHWSim
is part of the ubuntu packageros-melodic-gazebo-ros-control
. The following package is currently installed on my system:ros-melodic-gazebo-ros-control/bionic,now 2.8.2-0bionic.20180522.164152 amd64 [installed,automatic]
So according to the error message I have two options here:
- Fix this issue in an old package or
- set
<legacyModeNS>
totrue
For 1. I am not sure what AN OLD PACKAGE refers to, one of my packages or the gazebo_ros_control
plugin package and for 2. I am not sure where to set <legacyModeNS>
to true
.
I have another error where my publisher is stopping to publish control messages once I set a new set point, but I thought I fix the most obvious error first.
Hi, have you fixed this issue? I met the same issue today. Thanks a lot.