Gazebo | Ignition | Community
Ask Your Question

<gazebo_ros> tag in ROS plugin un-supported

asked 2015-03-11 07:27:26 -0600

winston gravatar image

updated 2015-03-11 07:35:08 -0600

I follow the ROS plugin here. And when I catkin_make, the error outputs is:

Invalid package manifest "/home/winston/catkinws/src/gazeborosplugin/package.xml": Error(s) in /home/winston/catkinws/src/gazeborosplugin/package.xml: - The manifest (with format version 1) must not contain the following tags: gazebo_ros

So the problem is the <gazebo_ros> tag in the package.xml file. This is my package.xml file:

<?xml version="1.0"?>
  <description>The gazebo_ros_plugin package</description>
  <maintainer email="winston@todo.todo">winston</maintainer>


  <gazebo_ros plugin_path="${prefix}/lib" gazebo_media_path="${prefix}" />


However, if I put the <gazebo_ros> tag inside <export> tag, this error disappears but new errors occur:

In file included from /home/winston/catkinws/src/gazeborosplugin/src/simpleworldplugin.cpp:1:0: /usr/include/gazebo-5.0/gazebo/common/Plugin.hh:367:3: error: expected ‘}’ at end of input } ^ /home/winston/catkinws/src/gazeborosplugin/src/simpleworldplugin.cpp:26:1: note: in expansion of macro ‘GZREGISTERWORLDPLUGIN’ GZREGISTERWORLDPLUGIN(WorldPluginTutorial) ^

Any suggestions?

edit retag flag offensive close merge delete


class VisualPlugin : public PluginT<visualplugin> { public: VisualPlugin() {this->type = VISUAL_PLUGIN;} (This is lined 367 in Plugin.hh)

Ratnesh Madaan gravatar imageRatnesh Madaan ( 2015-03-12 11:31:48 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-03-14 09:51:21 -0600

winston gravatar image

updated 2015-03-14 09:54:54 -0600

I have found out the answer to my question. Hope it is useful to anyone else.

1) It is correct to put <gazebo_ros> inside <export> tag. That is :

      <gazebo_ros plugin_path="${prefix}/lib" gazebo_media_path="${prefix}" />

FYI, there is another relevant answer.

2) The build error occurs because I have left out a bracket "}" at the end of my source file.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-03-11 07:27:26 -0600

Seen: 2,235 times

Last updated: Mar 14 '15