uuvsimulator / uuv_simulator

Gazebo/ROS packages for underwater robotics simulation
https://uuvsimulator.github.io/
Other
717 stars 362 forks source link

Can't launch custom actuated thruster actuated vehicle model #199

Open AditAg opened 6 years ago

AditAg commented 6 years ago

Hello,

I have been trying to launch my own bot and use it with the UUV_Simulator packages as specified in the Wiki. https://uuvsimulator.github.io/tutorials/config_thruster_manager.html. However when I launch the start_thruster_manager.launch file, I get the following errors:

gzserver: /home/adit/catkin_ws/src/uuv_simulator/uuv_gazebo_plugins/uuv_gazebo_plugins/src/UnderwaterObjectPlugin.cc:193: virtual void gazebo::UnderwaterObjectPlugin::Update(const gazebo::common::UpdateInfo&): Assertion `(!std::isnan(linearAccel) && !std::isnan(angularAccel))&&("Linear or angular accelerations are invalid.")' failed. Aborted (core dumped) [gazebo-2] process has died [pid 16890, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver --verbose -e ode worlds/empty_underwater.world name:=gazebo log:=/home/adit/.ros/log/f421e8be-0ea4-11e8-9a5c-ac2b6e309edb/gazebo-2.log]. log file: /home/adit/.ros/log/f421e8be-0ea4-11e8-9a5c-ac2b6e309edb/gazebo-2*.log

phamhoanganhbk commented 6 years ago

Hi, Coud you copy a step by step what you did?

noahl1 commented 5 years ago

Had a similar problem. Did you find a solution?

JustBenj commented 5 years ago

I just resolved this issue for myself. The problem was the propeller collision mesh intersecting with the base_link collision mesh. Make sure the position of your thruster is correct and that the scaling of your collision meshes are appropriate and you should have no issue. Hope this helps!