error during building velodyne plugin [closed]

asked 2016-08-31 08:18:22 -0600

dinesh gravatar image

I was following this tutorial, but as i try to build the plugin file velodyne_plugin.cc i get this error:

/home/rob/velodyne_plugin/velodyne_plugin.cc: In member function ‘virtual void 
gazebo::VelodynePlugin::Load(gazebo::physics::ModelPtr, sdf::ElementPtr)’:
/home/rob/velodyne_plugin/velodyne_plugin.cc:23:15: error: invalid use of incomplete type ‘class gazebo::physics::Model’
         _model->GetName() << "]\n";
               ^
In file included from /usr/include/gazebo-2.2/gazebo/common/Plugin.hh:41:0,
                 from /usr/include/gazebo-2.2/gazebo/common/common.hh:28,
                 from /usr/include/gazebo-2.2/gazebo/gazebo_core.hh:19,
                 from /usr/include/gazebo-2.2/gazebo/gazebo.hh:20,
                 from /home/rob/velodyne_plugin/velodyne_plugin.cc:4:
/usr/include/gazebo-2.2/gazebo/physics/PhysicsTypes.hh:36:11: error: forward declaration of ‘class gazebo::physics::Model’
     class Model;

How can i remove this?

edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: http://answers.gazebosim.org by gvdhoorn
close date 2016-08-31 08:54:11.323977

Comments

Seems to me this is a Gazebo specific question. I suggest you report the issue to the Gazebo support site.

gvdhoorn gravatar image gvdhoorn  ( 2016-08-31 08:54:02 -0600 )edit