Ask Your Question
0

Problems with gazebo plugin tutorials

asked 2012-09-07 01:33:03 -0500

ChengXiang gravatar image

updated 2012-09-07 01:39:12 -0500

Lorenz gravatar image

Hi, I am now doing the gazebo plugin tutorial and came across some difficulties doing rosmake. My cpp file is

#include "gazebo.hh"
#include "physics/physics.h" 
#include "common/Events.hh" 
#include "common/Plugin.hh" 
#include "common/Time.hh" 
#include "common/common.h"


namespace gazebo
{
  class PluginTemplate : public Plugin
  {
    public: PluginTemplate() : Plugin() 
            {
            }

    public: void Load( sdf::ElementPtr &_sdf )
            {
            };


  };

  GZ_REGISTER_PLUGIN(PluginTemplate)

}

However, I got the following error while running rosmake

"home/chengxiang/gazebo_tutorials/src/simple_world_plugin.cpp:26:1: error: expected constructor, destructor, or type conversion before ‘}’ token"

the "}" in question here is the last "}"

Could any kind soul please enlighten me on how to solve this issue?

edit retag flag offensive close merge delete

Comments

Thanks Lorenz.

ChengXiang gravatar image ChengXiang  ( 2012-09-07 01:46:29 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2012-09-07 05:17:03 -0500

hsu gravatar image

sorry, the tutorial was broken, I have just corrected the error.

edit flag offensive delete link more

Comments

Thanks hsu! I will try it out.

ChengXiang gravatar image ChengXiang  ( 2012-09-07 06:16:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-07 01:33:03 -0500

Seen: 216 times

Last updated: Sep 07 '12