XTDorne平台搭建无人机仿真环境时遇到的问题及解决

人工智能123
  • 执行make px4_sitl_default gazebo遇到的问题
    问题1:No package 'gstreamer-base-1.0' found解决如下:
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

问题2:No module named 'jinja2'解决如下:

pip3 install jinja2 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
  • 执行 roslaunch px4 mavros_posix_sitl.launch遇到的问题

    RLException: [mavros_posix_sitl.launch] is neither a launch file in package [px4] nor is [px4] a launch file name. The traceback for the exception was written to the log file 原因:缺少环境变量,在~/.bashrc文件增加以下代码,前两个source顺序能写反

source ~/catkin_ws/devel/setup.bash
source ~/PX4_Firmware/Tools/setup_gazebo.bash ~/PX4_Firmware/ ~/PX4_Firmware/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4_Firmware
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4_Firmware/Tools/sitl_gazebo
输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长