ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Crash after Gazebo update!

asked 2019-01-10 09:10:25 -0500

schizzz8 gravatar image

updated 2019-01-10 09:37:00 -0500

Hi all,

I was running the default versions of ROS kinetic and Gazebo 7 that can be installed on Ubuntu 16.04, but I was experiencing an annoying problem: I could not run together gazebo and RViz, because as soon as I was launching RViz, gazebo crashed.

A friend of mine told me that uploading to gazebo 7.14.0 solved the problem.

So I run these commands:

sudo apt remove gazebo7*
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt update 
sudo apt install gazebo7*
sudo apt install ros-kinetic-gazebo-*
sudo apt install libgazebo7-dev

the gazebo package is now at version 7.14.0, but if I try to launch this file:

https://github.com/schizzz8/lucrezio_...

It segfaults:

dede@dede-P35V2:~$ roslaunch lucrezio_simulation_environments empty_world_with_apartment_and_robot.launch 
... logging to /home/dede/.ros/log/edc35106-14e8-11e9-85ef-f816547d9e84/roslaunch-dede-P35V2-24677.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
xacro.py is deprecated; please use xacro instead
started roslaunch server http://dede-P35V2:43529/

SUMMARY
========

PARAMETERS
 * /lucrezio/angular/z/has_acceleration_limits: True
 * /lucrezio/angular/z/has_velocity_limits: True
 * /lucrezio/angular/z/max_acceleration: 6.0
 * /lucrezio/angular/z/max_velocity: 2.0
 * /lucrezio/base_frame_id: base_footprint
 * /lucrezio/left_wheel: left_wheel_joint
 * /lucrezio/linear/x/has_acceleration_limits: True
 * /lucrezio/linear/x/has_velocity_limits: True
 * /lucrezio/linear/x/max_acceleration: 1.0
 * /lucrezio/linear/x/max_velocity: 0.7
 * /lucrezio/pose_covariance_diagonal: [0.001, 0.001, 0....
 * /lucrezio/publish_rate: 50
 * /lucrezio/right_wheel: right_wheel_joint
 * /lucrezio/twist_covariance_diagonal: [0.001, 0.001, 0....
 * /lucrezio/type: diff_drive_contro...
 * /lucrezio/wheel_separation: 0.2
 * /object_groups/livingroom: ['sink', 'burner_...
 * /objects/burner_stove/model: burner_stove
 * /objects/burner_stove/model_type: sdf
 * /objects/burner_stove/orientation: [0.0, 0.0, 0]
 * /objects/burner_stove/position: [2.868422, 2.2050...
 * /objects/cabinet_ikea_malm_big/model: cabinet_ikea_malm...
 * /objects/cabinet_ikea_malm_big/model_type: sdf
 * /objects/cabinet_ikea_malm_big/orientation: [0.0, 0.0, -3.14]
 * /objects/cabinet_ikea_malm_big/position: [-2.338829, 2.341...
 * /objects/chair_ikea_borje/model: chair_ikea_borje
 * /objects/chair_ikea_borje/model_type: sdf
 * /objects/chair_ikea_borje/orientation: [0.0, 0.0, 0.0]
 * /objects/chair_ikea_borje/position: [1.96993, 0.0, 0.0]
 * /objects/couch/model: couch
 * /objects/couch/model_type: sdf
 * /objects/couch/orientation: [0.0, 0.0, -1.57]
 * /objects/couch/position: [-1.171137, -0.05...
 * /objects/milk/model: milk
 * /objects/milk/model_type: sdf
 * /objects/milk/orientation: [0.0, 0.0, 0.0]
 * /objects/milk/position: [1.970516, -1.276...
 * /objects/salt/model: salt
 * /objects/salt/model_type: sdf
 * /objects/salt/orientation: [0.0, 0.0, 0.0]
 * /objects/salt/position: [-2.48682, 2.2044...
 * /objects/sink/model: sink
 * /objects/sink/model_type: sdf
 * /objects/sink/orientation: [0.0, 0.0, 0]
 * /objects/sink/position: [1.5323, 2.204468...
 * /objects/table_ikea_bjursta/model: table_ikea_bjursta
 * /objects/table_ikea_bjursta/model_type: sdf
 * /objects/table_ikea_bjursta/orientation: [0.0, 0.0, 0.0]
 * /objects/table_ikea_bjursta/position: [1.77236080355, -...
 * /objects/table_tv ...
(more)
edit retag flag offensive close merge delete

Comments

do you have any idea of what is causing this behavior?

you most likely need to install all available updates to all ROS pkgs. The new Gazebo pkgs are not necessarily ABI compatible with the ones already on your system. Typical symptoms are "weird" SEGFAULTs and other crashes.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-10 09:32:01 -0500 )edit

I run "sudo apt install ros-kinetic-desktop-full" but the problem is not gone...

schizzz8 gravatar image schizzz8  ( 2019-01-10 09:34:07 -0500 )edit

That will most likely not install upgrades.

Try and see what the output of sudo apt update && sudo apt upgrade is.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-10 09:36:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-01-10 09:46:05 -0500

gvdhoorn gravatar image

0 upgraded, 0 newly installed, 0 to remove and 501 not upgraded.

you have 500+ outstanding updates to your packages. You might want to fix that before trying to diagnose the SEGFAULT.

edit flag offensive delete link more

Comments

Thanks for your patience. Upgrading the packages solved the problem!!!

schizzz8 gravatar image schizzz8  ( 2019-01-10 10:59:42 -0500 )edit

Question Tools

Stats

Asked: 2019-01-10 09:10:25 -0500

Seen: 330 times

Last updated: Jan 10 '19