AirPost_Drone
Code and instruction for configuring drone.
H/W Drone Parts
- [Nvidia] Jetson Nano Dev. kit
- [Waveshare] SIM7600G-H LTE Module for Jetson Nano
- Motor Driver HG7881
- Step down circuit XL4015
- Li-po battery 5800mah
- [HOLYBRO] Pixhawk 4 Power Module (PM07)
- [Intel] RealSense TrackingCamera T265
- [HOLYBRO] Pixhawk4 500mW Telemetry 433Mhz
- [TMOTOR] AIR2213 KV920 BLDC Motor, T9545 Prop
- [TMOTOR] AIR20A ESC
- [Motorbank] GM24-KTX Dc motor
- [HOLYBRO] Pixhawk 4
- [HOLYBRO] Pixhawk 4 GPS Module
- [RadioLink] T8FB BT Transmitter, Receiver set
- dji f450 drone frame
S/W on Jetson nano
- Jetpack 4.2
- opencv 3.2
- librealsense v2.25.0
- ROS melodic
- mavros
- apriltag-ros
- Realsense_ros v2.2.8
- vision_to_mavros
- rosbags
- apriltag
Installation Guide
- Jetpack 4.2
- format sd card in windows computer with default settings
- format sdcard with sd card formatter in the link below
- download jetpack image and flash
- https://developer.nvidia.com/embedded/jetpack
- useful packages
sudo apt update
sudo apt upgrade
sudo apt install build-essential cmake git vim tmux terminator
- install jtop
- vim setting
- opencv 3.2
- JetsonHacksNano librealsense v2.25.0
- librealsense v2.25.0 source
- apriltag
- ROS melodic
- with catkin_build in catkin_ws_build directory
- mavros
- apriltag-ros
- rosbags
- with catkin_make in catkin_ws directory
- vision_to_mavros
- JetsonHacksNano realsense_ros_v2.2.8
- realsense_ros_v2.2.8 source
- Python packages
pip install cython
pip install pymavros
pip install pyrealsense
- Set Auto reverse ssh tunnel on boot
- copy scripts/reverse_ssh_continuous.sh to /scripts/ folder
mkdir /scripts && sudo cp scripts/reverse_ssh_continuous.sh /scripts
- run crontab edit with
crontab -e
and add following commands below
* * * * * /scripts/reverse_ssh_continuous.sh
* * * * * sleep 20; /scripts/reverse_ssh_continuous.sh
* * * * * sleep 40; /scripts/reverse_ssh_continuous.sh
Running the code
- git clone this repository
- move catkin_ws, catkin_ws_build folder to your home directory.
- build ROS packages
catkin_make
with catkin_ws folder
catkin build
with catkin_ws_build folder
- run the whole code with command
roslaunch drone_controller all_drone_control.launch
Trouble shootGuide
- Jetson nano is not reading values properly from pixhawk through ROS.
- Try
rosservice call /mavros/set stream rate 0 10 1
- Cannot launch file at catkin_ws_build after compiling catkin_make at catkin_ws folder
- Realsense Camera tf error
- It's problem with camera. you should power off and power on the camera
- reference link
Reference
- lte module wiki
- Precision Landing with ROS
- ROS and VIO tracking camera for non-GPS Navigation
- Drone Assembly Guide video 1. Falcon shop
- pixhawk 4 official guide
- pm07 setting
- Holybro X500 + Pixhawk4 assembly
- pixhawk 4 airframe
- pixhawk 4 wiring
- xcopter esc
- reverse ssh configuration
- Rospy subscribe multiple topics first_link second_link
- set waypoint to pixhawk
- mavros wiki
- rospy tutorial
- rospkg module not found
- Ardupilot Mission commands overview
- Ardupilot Set Flight mode
- pixhawk gps led warning
- SITL Guide