Home - Dieptranivsr/DroneIVSR GitHub Wiki

Setup Ubuntu For Fast Planner

  1. Set up Jetpack 46

  2. Update & Upgrade

$ sudo apt-get update
$ sudo apt-get upgrade
  1. Install Nano
$ sudo apt-get install nano
  1. Install pip for Python
$ sudo apt install python3-pip
$ pip3 --version
Output: pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

$ sudo apt install python-pip
$ pip --version
Output: pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
  1. Install Jetson stats
$ sudo -H pip install -U jetson-stats

# active
$ sudo systemctl restart jetson_stats.service

Logout or reboot this board, then enable swapfile 8GB

  1. Install Catkin tools
$ sudo apt-get install ros-melodic-catkin python-catkin-tools 
  1. Install ROS-Melodic
## Install ROS ##

# setup source.list # 
# below is a command, note to copy #
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 

# setup keys #
$ sudo apt install curl 

$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

# installation #
$ sudo apt update 

$ sudo apt install ros-melodic-desktop-full

# environment setup #
$ echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc 

$ source ~/.bashrc

# dependencies #
$ sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential

# rosdep #
$ sudo apt install python-rosdep 

$ sudo rosdep init 

$ rosdep update 
  1. Install Mavros
$ sudo apt install ros-melodic-mavros ros-melodic-mavros-msgs 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 
$ sudo apt-get install python-jinja2

$ sudo apt install python-pip

$ sudo pip install numpy toml

if it happens error

Screenshot from 2022-01-18 16-12-40 Please rerun this package as below (can rerun twice) :

$ catkin build mutil_map_server

if it happens error

Screenshot from 2022-01-18 15-49-57 Please correct it as below:

$ sudo nano /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake
change link directory to opencv folder :
from "/usr/include/opencv" to "/usr/include/opencv4"

Screenshot from 2022-01-18 16-09-11

[Err] [REST.cc:205] Error in REST request

Preflight Fail: High Accelerometer Bias [ERROR] [1648489720.906407535, 3544.900000000]: FCU: Preflight Fail: High Accelerometer Bias

Screenshot from 2022-03-29 01-26-41

Error about Rosbag Record. Furthermore, Reduce bag file's capacity

$ rosbag record -o ~/ -a -x "(.*)theora(.*)|(.*)compressed(.*)|(.*)global_position(.*)|(.*)imu(.*)"

Hi, everyone. Welcome to tdbot !

Getting Started with tdbot 👈
  1. Ubuntu

    1. Make all the Python scripts executable
    2. Alternative default is python 3
  2. Github

    1. Command Line Github
  3. C++

    1. Getting the index of the min of elements in the array
    2. Assigns the given value to the elements in the range (vector)
    3. Templates
      1. How do templates work
      2. Templates and Static variables
      3. Templates and Default Arguments
      4. Implementing Stack Using Class Templates
      5. Overloading function templates
    4. Hashing
      1. Introduction
      2. Index Mapping
      3. Separate Chaining
        1. Hashtable using Singly Linked List
        2. Hashtables Chaining with Doubly Linked Lists
      4. Open Addressing
    5. Linked List
      1. Introduction
        1. Binary Search on Singly Linked List
        2. Find the middle of a given linked list
      2. Inserting a node
        1. How to write C functions that modify head pointer of a Linked List
      3. Deleting a node
      4. Delete a Linked List node at a given position
    6. Doubly Linked List
      1. Introduction and Insertion
        1. XOR Linked List
        2. XOR Linked List - Part 2
      2. Delete a node
      3. Delete a Doubly Linked List node at a given position
  4. Python

    1. Getting the index of the min of elements in the array
  5. Android

    1. Could not start AVD
⚠️ **GitHub.com Fallback** ⚠️