Quickstart Guide — Ubuntu Camera

This Quickstart shows how to build DCM on Ubuntu LTS 16.04 (with support for MAVLink and Avahi) and connect to any supported cameras (or webcams) that are attached to Ubuntu.

  1. Install the Core and Avahi pre-requisites:
    sudo apt-get update -y
    sudo apt-get install git autoconf libtool python-pip -y
    sudo apt-get install gstreamer-1.0 \
        libgstreamer-plugins-base1.0-dev \
        libgstrtspserver-1.0-dev -y
    ## Required python packages
    sudo pip2 -q install -U future
    # Avahi
    sudo apt-get install libavahi-client-dev libavahi-core-dev libavahi-glib-dev -y
    
  2. Get the DCM source code by cloning the the camera-manager repo (or your fork):
    git clone https://github.com/Dronecode/camera-manager.git
    cd camera-manager
    git submodule update --init --recursive
    
  3. Configure DCM with support MAVLink and Avahi:
    ./autogen.sh && ./configure --enable-mavlink --enable-avahi
    
  4. Build DCM:
    make
    
  5. Attach DCM-compatible cameras to Ubuntu
  6. Serve the sample Camera Definition Files:
    • Open a new terminal to /samples/def
    • Enter the following command to start the server on the default port (8000):
      python -m SimpleHTTPServer
      
  7. Run DCM specifying the Ubuntu configuration file.
    ./dcm -c samples/config/ubuntu.conf
    

Then run the Sanity Tests to verify that DCM is working correctly.

© Dronecode 2017. License: CC BY 4.0            Updated: 2018-06-19 05:20:14

results matching ""

    No results matching ""