Gazebo | Ignition | Community
Ask Your Question
0

<gazebo_ros> tag in ROS plugin un-supported

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

winston gravatar image

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

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"?>
<package>
  <name>gazebo_ros_plugin</name>
  <version>0.0.0</version>
  <description>The gazebo_ros_plugin package</description>
  <maintainer email="winston@todo.todo">winston</maintainer>
  <license>TODO</license>

  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>gazebo_ros</build_depend>
  <build_depend>roscpp</build_depend>
  <run_depend>gazebo_ros</run_depend>
  <run_depend>roscpp</run_depend>

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

  <export>
   </export>
</package>

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

Comments

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 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

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

winston gravatar image

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

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 :

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

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

Question Tools

Stats

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

Seen: 2,285 times

Last updated: Mar 14 '15