Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TurtleBot3] Simulations may be missing configuration of GAZEBO_PLUGIN_PATH #1451

Open
goekce opened this issue Jan 22, 2022 · 0 comments
Open

Comments

@goekce
Copy link

goekce commented Jan 22, 2022

I use Galactic and compiled from source on Archlinux.

I wanted to start the following simulation according to Gazebo-simulation:

$ export TURTLEBOT3_MODEL=waffle_pi
$ ros2 launch turtlebot3_gazebo empty_world.launch.py

I got the following error:

...
[gzserver-1] malloc(): corrupted top size
[ERROR] [gzserver-1]: process has died [pid 4177, exit code -6, cmd 'gzserver /opt/ros/galactic-turtlebot3-quickstart/share/turtlebot3_gazebo/worlds/empty_world.world                                                                      -s libgazebo_ros_init.so   -s libgazebo_ros_factory.so   -s libgazebo_ros_force_system.so       '].
[ERROR] [gzclient   -2]: process has died [pid 4179, exit code 255, cmd 'gzclient   '].
...

The solution was to append the path where libgazebo_ros_init.so can be found to GAZEBO_PLUGIN_PATH. For example:

$ find /opt/ros -iname libgazebo_ros_init.so
/opt/ros/galactic-turtlebot3-quickstart/lib/libgazebo_ros_init.so
$ GAZEBO_PLUGIN_PATH+=/opt/ros/galactic-turtlebot3-quickstart/lib:
$ ros2 launch turtlebot3_gazebo empty_world.launch.py

I am not on a supported platform and I do not know if this problem also occurs in Ubuntu. I could only find an older issue: ROBOTIS-GIT/turtlebot3_simulations#43

This problem does not happen if I start another simulations like:

gazebo --verbose <gazebo-ros-pkgs-path>/share/gazebo_plugins/worlds/gazebo_ros_diff_drive_demo.world

I would be glad if someone could verify this. If verified, then we could include this notice in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant