报错现象
gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreNode.cpp:630:virtual void Ogre::Node::setScale(const Ogre::Vector3&): 假设 ‘!inScale.isNaN() && “Invalid vector supplied as parameter”’ 失败。
报错原因:
gazebo是7.0.0版本。
查看gazebo版本: gazebo –-version
解决办法:更新gazebo:
- 添加源
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
已经有的就打上勾。
sudo apt-get update
- 删除gazebo7.0.0:
sudo apt-get remove gazebo7 gazebo7-common libgazebo7 ros-kinetic-gazebo-ros-control ros-kinetic-gazebo-plugins
- 安装gazebo7最新版本
sudo apt-get install gazebo7 gazebo7-common libgazebo7 ros-kinetic-gazebo-ros-control ros-kinetic-gazebo-plugins
查看gazebo版本: gazebo –-version