Ask Your Question
0

Crash after Gazebo update!

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

schizzz8 gravatar image

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

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 imagegvdhoorn ( 2019-01-10 09:32:01 -0600 )edit

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

schizzz8 gravatar imageschizzz8 ( 2019-01-10 09:34:07 -0600 )edit

That will most likely not install upgrades.

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

gvdhoorn gravatar imagegvdhoorn ( 2019-01-10 09:36:12 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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 imageschizzz8 ( 2019-01-10 10:59:42 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 89 times

Last updated: Jan 10