@[Gazebo仿真](Realsense 编译问题解决)
参考 这篇文章配置
首先git clone代码到你的工作空间
git clone https://github.com/nilseuropa/realsense_ros_gazebo.git
然后catkin build
报错如下,
error: ‘class gazebo::physics::World’ has no member named ‘Name’
this->transportNode->Init(this->world->Name());
error: ‘class gazebo::physics::World’ has no member named ‘SimTime’
common::Time current_time = this->world->SimTime();
实际上这个是gazebo版本问题,查看gazebo版本
dpkg -l | grep gazebo
发现用的gazebo7
再一查发现gazebo-realsense 对API进行了改动
把Name()改回GetName(),SimTime()改为GetSimTime(),再次编译。
通过了。