os: 20.04
ros2: foxy
gazebo 启动失败,gzclient 错误
···
gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:734
[gzclient -2] gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access::type boost::shared_ptr::operator->() const [with T = gazebo::rendering::Camera; typename boost::detail::sp_member_access::type = gazebo::rendering::Camera*]: Assertion `px != 0’ failed.
[gzclient -2] Aborted (core dumped)
[ERROR] [gzclient -2]: process has died [pid 50089, exit code 134, cmd 'gzclient '].
^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
[robot_state_publisher-3] [INFO] [1622541486.023965088] [rclcpp]: signal_handler(signal_value=2)
^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT) again, ignoring…
[robot_state_publisher-3] [INFO] [1622541486.223112934] [rclcpp]: signal_handler(signal_value=2)
[INFO] [robot_state_publisher-3]: process has finished cleanly [pid 50091]
[ERROR] [gzserver-1]: process has died [pid 50087, exit code -2, cmd 'gzserver /home/mi/dd_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/worlds/turtlebot3_worlds/waffle.model -s libgazebo_ros_init.so -s libgazebo_ros_factory.so -s libgazebo_ros_force_system.so '].
···
解决办法
···
source /usr/share/gazebo/setup.sh
···