0
$\begingroup$

Rosanswers logo

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?


Originally posted by ChengXiang on ROS Answers with karma: 201 on 2012-09-07

Post score: 0


Original comments

Comment by ChengXiang on 2012-09-07:
Thanks Lorenz.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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


Originally posted by hsu with karma: 5780 on 2012-09-07

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by ChengXiang on 2012-09-07:
Thanks hsu! I will try it out.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.