ROBOTIS-GIT / turtlebot3_simulations

Simulations for TurtleBot3
http://turtlebot3.robotis.com/
Apache License 2.0
309 stars 428 forks source link

gz-client crashes on ROS2 Rolling due to assertion fail #205

Closed ywiyogo closed 8 months ago

ywiyogo commented 8 months ago

I installed ROS2 Rolling on my PC. Then, I build and install the turtlebot3 simulation source from

git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git -b ros2

After the installation, I ran either ros2 launch turtlebot3_gazebo empty_world.launch.py or ros2 launch turtlebot3_gazebo empty_world.launch.py with environment variable TURTLEBOT3_MODEL=waffle, and the Gazebo client always crashes with this assertion error:

[INFO] [spawn_entity.py-4]: process has finished cleanly [pid 483]
[gzclient-2] gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:728: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = gazebo::rendering::Camera; typename boost::detail::sp_member_access<T>::type = gazebo::rendering::Camera*]: Assertion `px != 0' failed.
[ERROR] [gzclient-2]: process has died [pid 479, exit code -6, cmd 'gzclient'].
ywiyogo commented 8 months ago

Sourcing the Gazebo's setup source /usr/share/gazebo/setup.bash solve the issue.