spiri-services/install.sh

37 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
################################################################################
# _____ ______ _____ ______ _____ #
# / ___| | ___ \ |_ _| | ___ \ |_ _| #
# \ \__ | |_/ / | | | |_/ / | | #
# \___ \ | __/ | | | _ | | | #
# ____/ / | | _| |_ | | \ \ _| |_ #
# \____/ \_| \___/ \_| \_| \___/ #
# #
######################## Installer ########################
# Maintainer: ahmed.elsafy@spirirobotics.com
# Last Modified: 05/17/2021
# Copyright: Spiri Holdings, Inc.
# License:
cd sbin
sudo cp * /usr/sbin/
cd ..
cd service
sudo cp * /etc/systemd/system/
cd ..
mkdir -p /etc/ros/
cp env.sh /etc/ros/
sudo systemctl enable --now mavroslaunch
sudo systemctl enable --now ros_radio_listener
sudo systemctl enable --now roscore
sudo systemctl enable --now apriltag
sudo systemctl enable --now camlaunch
sudo systemctl enable --now gpudisplaunch.service