Skip to content

Commit

Permalink
Add canopy client install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Zareen Choudhury committed Jan 25, 2018
1 parent 720461b commit 7e6b3d5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions canopy_client_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
CANOPY_CLIENT_DIR=$(pwd)

# trap errors
function err_fn() {
echo 'ERROR - aborting script.'
cd $CANOPY_CLIENT_DIR
trap - ERR
}
trap "err_fn; return" ERR

# install python packages
pip install -r requirements.txt

# setup chrony
sudo apt-get update
sudo apt-get install chrony
sudo cp chrony_canopy_client.service /lib/systemd/system
sudo cp chrony_canopy_client.conf /etc/chrony

# make ros package
cd ../..
catkin_make
. ./devel/setup.bash
cd $CANOPY_CLIENT_DIR

0 comments on commit 7e6b3d5

Please sign in to comment.