error during building velodyne plugin [closed]
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?
Seems to me this is a Gazebo specific question. I suggest you report the issue to the Gazebo support site.