uuv_simulator icon indicating copy to clipboard operation
uuv_simulator copied to clipboard

Sensor Plugin build and run errors

Open smartslab opened this issue 1 year ago • 0 comments

Hello!

I have been using the simulator for a while, and have recently run into some new errors after rebuilding the simulator that prevent me from being able to load the rexrov robot. During my catkin_make, it does finish without reading an error, but this warning is printed in the middle:

/home/my_comp/sim_ws/src/uuv_simulator/uuv_sensor_plugins/uuv_sensor_ros_plugins/src/RPTROSPlugin.cc: In member function ‘virtual bool gazebo::RPTROSPlugin::OnUpdate(const gazebo::common::UpdateInfo&)’:
/home/my_comp/sim_ws/src/uuv_simulator/uuv_sensor_plugins/uuv_sensor_ros_plugins/src/RPTROSPlugin.cc:119:1: warning: control reaches end of non-void function [-Wreturn-type]
  119 | }
      | ^

Then when I try to load the rexrov into my simulation, I get the following error:

gzserver: /home/my_comp/sim_ws/src/uuv_simulator/uuv_sensor_plugins/uuv_sensor_ros_plugins/src/ROSBaseModelPlugin.cc:75: virtual void gazebo::ROSBaseModelPlugin::Load(gazebo::physics::ModelPtr, sdf::v9::ElementPtr): Assertion `(this->link != __null)&&("Invalid link pointer")' failed.
Service call failed: transport error completing service call: unable to receive data from sender, check sender's logs for details
[ERROR] [1660669500.827557, 0.000000]: Spawn service failed. Exiting.
Aborted (core dumped)

I have no idea how to fix this, and I don't know when these files changed, it has been a while since I tried to load the rexrov, but I would really like to be able to get this to work quickly since I would like to use them in my research.

smartslab avatar Aug 16 '22 17:08 smartslab