blob: d248f573065e89dd895f2bff6bdd93df141b984b [file] [log] [blame]
Michael Schuhd0f61812018-04-07 21:37:29 -07001#!/bin/bash
2
Austin Schuhd3acc5f2018-07-08 16:06:07 -07003set -e
4
Michael Schuhd0f61812018-04-07 21:37:29 -07005JETSON="root@$1"
6
7# To build for the Jetson, use
Austin Schuh66183692018-09-16 16:30:07 -07008bazel build -c opt //y2018/vision:image_streamer --cpu=armhf-debian
Michael Schuhd0f61812018-04-07 21:37:29 -07009
10# Copy files to Jetson
Austin Schuh66183692018-09-16 16:30:07 -070011rsync -av --progress bazel-bin/y2018/vision/image_streamer y2018/vision/exposure_loop.sh "${JETSON}":.
12rsync -av --progress y2018/vision/exposure_loop.conf y2018/vision/vision.conf "${JETSON}":/etc/supervisor/conf.d/
Michael Schuhd0f61812018-04-07 21:37:29 -070013
14ssh "${JETSON}" sync
15
16# Can't restart with supervisorctl because the USB devices don't come up reliably...
Austin Schuh66183692018-09-16 16:30:07 -070017echo "Restart the Jetson now" >&2