-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencr.bash
More file actions
45 lines (36 loc) · 1.25 KB
/
opencr.bash
File metadata and controls
45 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Turtleboot OPEN CR v1.0
# Configures OPEN CR board and installs drivers
# status --> TESTED ON TURTLEBOT3 (RPi 3B+ and RPi 4B)
set -e # exit on errors
cat << "EOF"
_____ _ _ ____ _
|_ _| _ _ __| |_| | ___| __ ) ___ ___ | |_
| || | | | '__| __| |/ _ \ _ \ / _ \ / _ \| __|
| || |_| | | | |_| | __/ |_) | (_) | (_) | |_
|_| \__,_|_| \__|_|\___|____/ \___/ \___/ \__|
O P E N C R
_____ ____
/ \ | o |
| |/ ___\|
|_________/
|_|_| |_|_|
EOF
echo "Welcome to TurtleBoot OPEN CR!"
echo "developed by @kmhswimgirl"
sudo -v
while true; do sudo -n true; sleep 60; done 2>/dev/null &
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get -y install libc6:armhf
export OPENCR_PORT=/dev/ttyACM0
export OPENCR_MODEL=burger
rm -rf ./opencr_update.tar.bz2
wget https://github.com/ROBOTIS-GIT/OpenCR-Binaries/raw/master/turtlebot3/ROS2/latest/opencr_update.tar.bz2
tar -xvf opencr_update.tar.bz2
cd ./opencr_update
./update.sh $OPENCR_PORT $OPENCR_MODEL.opencr
# Kill sudo process
kill %1 2>/dev/null || true
# confirm sucess
echo "Set up complete!"