Deploying DSM to a Drone Platform
This page is unreviewed/under construction.
This topic explains how to set up a companion computer with DSM dependencies and deploy DSM to it from a Ubuntu development computer.
Companion computers are relatively resource-constrained, so it makes sense to develop on Ubuntu and only deploy the required binary files.
Autostart DSM > Auto-start on Other Platforms explains how to set up Linux to automatically restart DSM when the platform is rebooted.
DSM Binary Dependencies
Deploy DCM to Drone
The following files must be present on the target platform (in addition to the DCM dependencies):
|File||Source File||Destination File|
|DCM binary||/dcm (generated in root)||/usr/bin/dcm|
|Auto-start definition||/dronecode-camera-manager.service (generated in root)||/lib/system/system/dronecode-camera-manager.service|
|DCM configuration file for platform||/samples/config/
To deploy DCM to a companion computer using scp:
Copy the dcm binary using the following command (from the DCM root):
scp dcm uname@ip-addr:/usr/bin/
ip-addris IP address of the drone on the network (check using ifconfig) and
unameis a user name with write privileges (system dependent).
The configuration and autostart files typically do not change and rarely need to be updated. If required you can use the same approach as above to copy them.
Reboot Computer (DCM now restarts on boot)
- Make sure DCM is running (on the drone):
systemctl status dcm
- Run the Sanity Tests to verify that DCM is working correctly.