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.
- 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
- 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
- Configure DCM with support MAVLink and Avahi:
./autogen.sh && ./configure --enable-mavlink --enable-avahi
- Build DCM:
make
- Attach DCM-compatible cameras to Ubuntu
- 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
- 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.