Home FlytBase Forums API Reference

Installing FlytOS dependencies in your custom image (FlytPOD/PRO)

Warning

You may face issues in FlytOS due to the latest update in Open CV Library. It is currently advised to use FlytOS through flashing FlytOS Linux Image.

Warning

Follow this step ONLY if you have chosen to NOT TO flash FlytOS Linux Image.

Note

You have to perform all the steps below on your FlytPOD/PRO.

This guide assumes you already have a working image for your Flight Computer. We would lay down steps to install dependencies and configure your device for FlytOS.

  1. List of FlytOS dependencies to be installed in your Flight Computer:

    1. Linux - Ubuntu 16.04
    2. ROS - Kinetic (install ros-kinetic-desktop package)
    3. OpenCV 2.4 (for vision/video streaming APIs).
    4. Other dependencies - To install run the following commands in your terminal.
    #!/bin/bash -e
    # install dependency script for FlytOS
    
    #installing known python dependencies
    sudo apt install -y python-pip python-serial python-flask python-wtforms python-sqlalchemy python-concurrent.futures python-mock python-zmq python-twisted python-future
    sudo -H pip install flask_cors flask_reverse_proxy flask_restful tblib webargs click flask_security httplib2 simple_json pyzmp pyros-setup requests
    
    #installing known ros dependencies
    sudo apt install -y ros-kinetic-image-proc ros-kinetic-image-transport-plugins ros-kinetic-image-transport ros-kinetic-rosbridge-suite ros-kinetic-control-toolbox ros-kinetic-eigen-conversions ros-kinetic-camera-info-manager ros-kinetic-pyros-utils libxslt-dev libxml2-dev 
    
    #installing other dependencies
    sudo apt install -y v4l2loopback-utils locate lsof minicom libglib2.0-dev gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
    sudo -H pip install certifi pyserial pymavlink
    
    #removing some modules
    sudo apt remove -y modemmanager xfce4-power-manager
    
    exit 0
    
  1. Before proceeding further, add the following lines at the end of your /etc/bash.bashrc file. To open the file for editing, run the following command the terminal sudo nano /etc/bash.bashrc and to save your edited file, press ctrl+o+ENTER and to exit press ctrl+x.

    source /opt/ros/kinetic/setup.bash
    export PYTHONPATH=$PYTHONPATH:/flyt/flytapps:/flyt/userapps
    source /flyt/flytos/flytcore/setup.bash
    
  2. Run the following additional command in your terminal:

    sed -i 's#source /opt/ros/kinetic/setup.bash##g' ~/.bashrc
    

Installing FlytOS debian package

Note

This step requires you to have a registered FlytBase Account. In case you don’t have an account, create a FlytBase Account before you proceed.

  1. Login to your FlytBase Account.

  2. Download the hardware specific FlytOS Debian Package from your FlytBase Account.

  3. Install some dependencies - To install run the following commands in your terminal.

    #!/bin/bash -e
    # install dependency script for FlytOS
    
    #installing known python dependencies
    sudo apt install -y python-pip python-serial python-flask python-wtforms python-sqlalchemy python-concurrent.futures python-mock python-zmq python-twisted python-future
    sudo -H pip install flask_cors flask_reverse_proxy flask_restful tblib webargs click flask_security httplib2 simple_json pyzmp pyros-setup requests
    
    #installing known ros dependencies
    sudo apt install -y ros-kinetic-image-proc ros-kinetic-image-transport-plugins ros-kinetic-image-transport ros-kinetic-rosbridge-suite ros-kinetic-control-toolbox ros-kinetic-eigen-conversions ros-kinetic-camera-info-manager ros-kinetic-pyros-utils libxslt-dev libxml2-dev 
    
    #installing other dependencies
    sudo apt install -y v4l2loopback-utils locate lsof minicom libglib2.0-dev gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
    sudo -H pip install certifi pyserial pymavlink
    
    #removing some modules
    sudo apt remove -y modemmanager xfce4-power-manager
    
    exit 0
    
  4. Once you have downloaded the Debian package, run the following command in your terminal to install FlytOS:

#make sure to provide absolute path of the debian package file: /home/flytpod/flyt*.deb
$ sudo apt install -y <path to debian package location>/flyt*.deb
  1. Check for Congratulations! FlytOS installation completed message at the end.
  2. Just in case you see any dependency issues cropping up in your screen while installing FlytOS, kindly run the following command and execute the previous command again:
$ sudo apt -f -y install

Caution

You must activate your device, without which critical APIs would not function.

Go back to the installation guide