启动gazebo11遇到一个很奇怪的问题。昨天关机还能运行,今天就不行了,一起动就卡死。记录以下解决过程。
起因
启动gazebo
gazebo
报错
gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:734:
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.
解决:
不知道为为啥,没有source
source一下就好了。
source /usr/share/gazebo/setup.sh
或者
source /usr/share/gazebo-11/setup.sh
为了永久解决问题,可以加入bashrc中。