SSU-NC-22 / AirPost_Drone

1 stars 0 forks source link

AirPost_Drone

Code and instruction for configuring drone.

H/W Drone Parts

  1. [Nvidia] Jetson Nano Dev. kit
  2. [Waveshare] SIM7600G-H LTE Module for Jetson Nano
  3. Motor Driver HG7881
  4. Step down circuit XL4015
  5. Li-po battery 5800mah
  6. [HOLYBRO] Pixhawk 4 Power Module (PM07)
  7. [Intel] RealSense TrackingCamera T265
  8. [HOLYBRO] Pixhawk4 500mW Telemetry 433Mhz
  9. [TMOTOR] AIR2213 KV920 BLDC Motor, T9545 Prop
  10. [TMOTOR] AIR20A ESC
  11. [Motorbank] GM24-KTX Dc motor
  12. [HOLYBRO] Pixhawk 4
  13. [HOLYBRO] Pixhawk 4 GPS Module
  14. [RadioLink] T8FB BT Transmitter, Receiver set
  15. dji f450 drone frame

S/W on Jetson nano

  1. Jetpack 4.2
  2. opencv 3.2
  3. librealsense v2.25.0
  4. ROS melodic
    1. mavros
    2. apriltag-ros
    3. Realsense_ros v2.2.8
    4. vision_to_mavros
    5. rosbags
  5. apriltag

Installation Guide

  1. Jetpack 4.2
    1. format sd card in windows computer with default settings
    2. format sdcard with sd card formatter in the link below
    3. download jetpack image and flash
    4. https://developer.nvidia.com/embedded/jetpack
  2. useful packages
    1. sudo apt update
    2. sudo apt upgrade
    3. sudo apt install build-essential cmake git vim tmux terminator
    4. install jtop
    5. vim setting
  3. opencv 3.2
  4. JetsonHacksNano librealsense v2.25.0
    1. librealsense v2.25.0 source
  5. apriltag
  6. ROS melodic
    1. with catkin_build in catkin_ws_build directory
      1. mavros
      2. apriltag-ros
      3. rosbags
    2. with catkin_make in catkin_ws directory
      1. vision_to_mavros
      2. JetsonHacksNano realsense_ros_v2.2.8
        1. realsense_ros_v2.2.8 source
  7. Python packages
    1. pip install cython
    2. pip install pymavros
    3. pip install pyrealsense
  8. Set Auto reverse ssh tunnel on boot
    1. copy scripts/reverse_ssh_continuous.sh to /scripts/ folder
      • mkdir /scripts && sudo cp scripts/reverse_ssh_continuous.sh /scripts
    2. 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

  9. git clone this repository
  10. move catkin_ws, catkin_ws_build folder to your home directory.
  11. build ROS packages
    1. catkin_make with catkin_ws folder
    2. catkin build with catkin_ws_build folder
  12. run the whole code with command
    • roslaunch drone_controller all_drone_control.launch

Trouble shootGuide

  1. Jetson nano is not reading values properly from pixhawk through ROS.
    • Try rosservice call /mavros/set stream rate 0 10 1
  2. Cannot launch file at catkin_ws_build after compiling catkin_make at catkin_ws folder
  3. Realsense Camera tf error
    • It's problem with camera. you should power off and power on the camera
    • reference link

Reference

  1. lte module wiki
  2. Precision Landing with ROS
  3. ROS and VIO tracking camera for non-GPS Navigation
  4. Drone Assembly Guide video 1. Falcon shop
  5. pixhawk 4 official guide
  6. pm07 setting
  7. Holybro X500 + Pixhawk4 assembly
  8. pixhawk 4 airframe
  9. pixhawk 4 wiring
  10. xcopter esc
  11. reverse ssh configuration
  12. Rospy subscribe multiple topics first_link second_link
  13. set waypoint to pixhawk
  14. mavros wiki
  15. rospy tutorial
  16. rospkg module not found
  17. Ardupilot Mission commands overview
  18. Ardupilot Set Flight mode
  19. pixhawk gps led warning
  20. SITL Guide