1. 程式人生 > >rotors-simulator編譯時遇到問題彙總

rotors-simulator編譯時遇到問題彙總

平臺:ubuntu16.04+ROS Kkinetic+Gazebo8.0

(1)rotors_hil_interface問題

或直接

#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

(4)Could NOT find GeographicLib(這個不是很確定了)

sudo apt-get install libgeographic-dev