rotors simulator 错误解决方法

本文详细介绍了在Ubuntu16.04+ROSKinetic+Gazebo7.14环境下安装Rotorssimulator的过程及常见错误解决方案,包括解决rotors_hil_interface问题、安装geographic_msgs、导入future模块、解决GeographicLib缺失问题以及处理gazebo相关错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

rotors simulator 安装方法与错误解决方案

平台:ubuntu16.04+ROS Kinetic+Gazebo7.14

ROS 安装

参考官网http://wiki.ros.org/cn在ubuntu16.04上安装ROS Kinetic,这里不再介绍

Rotors simulator安装

参考官网https://github.com/ethz-asl/rotors_simulator

错误解决方案

(1)rotors_hil_interface问题
在这里插入图片描述
参考https://github.com/ethz-asl/rotors_simulator/issues/523

或直接

https://github.com/ethz-asl/rotors_simulator/pull/522/files?fbclid=IwAR2SxViGule-u8S4A1kE0L6HCwW3cixtO7IgMBNTp9TILT62TGdXPlsxApw

在rotors_hil_interface/include/rotors_hil_interface/hil_interface.h中添加如下代码:

#include <mavros_msgs/HilControls.h>
#include <mavros_msgs/mavlink_convert.h>
#ifndef MAVLINK_H
  typedef mavlink::mavlink_message_t mavlink_message_t;
  #include <mavlink/v2.0/common/mavlink.h>
#endif 
#include <rotors_hil_interface/hil_listeners.h>
namespace rotors_hil {

(2)Could not find a package configuration file provided by “geographic_msgs”

sudo apt-get install ros-kinetic-geographic-msgs

(3)缺少furture:ImportError: No module named ‘future’

sudo apt-get install python-pip 
pip install --upgrade pip 
pip install future

如果还是出现错误 ,可尝试

 python2 -m pip install future

(4)Could NOT find GeographicLib

sudo apt-get install libgeographic-dev- 

(5) gazebo
fatal error: ignition/math/Inertial.hh: No such file or directory

sudo apt-get install libignition-math2-dev

参考自:[1]https://blog.youkuaiyun.com/qq_38019633/article/details/84074442
[2]https://blog.youkuaiyun.com/xihuanzhi1854/article/details/82154502

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- mav_state_machine_msgs: 1 messages, 1 services -- +++ processing catkin package: 'mav_system_msgs' -- ==> add_subdirectory(mav_comm/mav_system_msgs) CMake Deprecation Warning at mav_comm/mav_system_msgs/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- mav_system_msgs: 2 messages, 0 services -- +++ processing catkin package: 'rotors_comm' -- ==> add_subdirectory(rotors_simulator/rotors_comm) CMake Deprecation Warning at rotors_simulator/rotors_comm/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Could NOT find octomap_msgs (missing: octomap_msgs_DIR) -- Could not find the required component 'octomap_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /home/zk/ros_catkin_ws/install_isolated/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "octomap_msgs" with any of the following names: octomap_msgsConfig.cmake octomap_msgs-config.cmake Add the installation prefix of "octomap_msgs" to CMAKE_PREFIX_PATH or set "octomap_msgs_DIR" to a directory containing one of the above files. If "octomap_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): rotors_simulator/rotors_comm/CMakeLists.txt:3 (find_package) -- Configuring incomplete, errors occurred! See also "/home/zk/catkin_ws/build/CMakeFiles/CMakeOutput.log". make: *** [Makefile:282:cmake_check_build_system] 错误 1 Invoking "make cmake_check_build_system" failed
最新发布
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值