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]

博客记录了在OS 20.04、ROS2 Foxy环境下,Gazebo启动失败,gzclient报错的情况,给出了具体的错误信息,如断言 `px!= 0’ 失败等,还记录了相关进程死亡的信息,最后提供了解决办法,即执行 `source /usr/share/gazebo/setup.sh`。
最低0.47元/天 解锁文章
1170

被折叠的 条评论
为什么被折叠?



