赞
踩
ubuntu1804
PX4 1.11
网络一定要好!!!
pip3 install pandas jinja2 pyserial cerberus pyulog==0.7.0 numpy toml pyquaternion empy pyyaml
pip3 install pandas jinja2 pyserial cerberus pyulog==0.7.0 numpy toml pyquaternion empy pyyaml
pip3 install packaging numpy empy toml pyyaml jinja2 pyargparse
sudo apt install ros-melodic-gazebo9* #更新gazebo9
sudo apt-get install ros-melodic-catkin python-catkin-tools #更新catkin工具
sudo apt install ros-melodic-mavros ros-melodic-mavros-extras
wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh
chmod +x install_geographiclib_datasets.sh
sudo ./install_geographiclib_datasets.sh
git clone https://gitee.com/bingobinlw/volans
- cd volans
- git clone https://github.com/PX4/Firmware
- cd Firmware
- git submodule update --init --recursive
- Ubuntu.sh文件里面第一个出现的
- INSTALL_NUTTX="true"改成INSTALL_NUTTX="false"
-
- requirements.txt文件最后一项改为1.9
source ubuntu.sh
- git checkout v1.11.0-beta1 #更换固件版本
- make distclean #删除编译的东西
- make px4_sitl_default gazebo #编译
sudo apt-get install ros-melodic-ddynamic-reconfigure
- sudo apt-get install ros-melodic-ar-track-alvar*
-
sudo apt-get install ros-melodic-velodyne-gazebo-plugins
- sudo apt-get install ros-melodic-moveit
- sudo apt-get install ros-melodic-nav-core
- sudo apt-get install ros-melodic-move-base
sudo apt-get install ros-melodic-cv-bridge
sudo apt-get install ros-melodic-rtabmap-ros
sudo apt-get install ros-melodic-octomap-*
sudo apt-get install ros-melodic-navigation
- sudo apt install ros-melodic-cartographer-ros
- sudo apt install ros-melodic-cartographer-rviz
- sudo apt install ros-melodic-map-server
- cd volans
- catkin build simulation px4_control ros_slam octomap ros_vision path_planning explore_lite
编译成功后运行source_environment.sh
添加Firmware环境变量,volans gazebo模型路经,gazebo_modles模型路经
source source_environment.sh
roslaunch simulation ros_2Dnav_demo_px4.launch
以上电脑开发的代码在仿真环境下运行ok的话也调整好cartography和move_base的参数下,是可以运行在实机上的,但是效果各有千秋
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。