forked from docofab/RoombaControlls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-real-roomba-rasppi_3.sh
66 lines (52 loc) · 1.61 KB
/
install-real-roomba-rasppi_3.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash -e
# for Raspberry Pi 3 B+ 1GB
# ROS driver for Roomba
# Reference sites
# https://demura.net/robot/hard/20405.html
echo "[Update the package]"
sudo apt-get update
echo "[Upgrade the package]"
sudo apt-get upgrade -y
echo "[Installing ROS python and qt4 Packages]"
sudo apt-get install -y python-rosdep python-catkin-tools libqt4-dev
echo "[Making the catkin workspace and testing the catkin build]"
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
source /opt/ros/melodic/setup.bash
catkin init
catkin build -j 1
echo "[Download the libcreate]"
cd ~/catkin_ws/src
git clone https://github.com/RoboticaUtnFrba/libcreate.git
cd ~/catkin_ws/src/libcreate
git checkout 2.1.0
echo "[Download the create_autonomy]"
cd ~/catkin_ws/src
git clone https://github.com/RoboticaUtnFrba/create_autonomy.git
cd ~/catkin_ws/src/create_autonomy
git checkout a522e080f267253fa2cba237ad32df5132c9aeb5
echo "[Download the RTIMULib]"
cd ~/catkin_ws
./src/create_autonomy/sensors/ca_imu/scripts/install_rtimulib.sh
echo "[Download the etc.]"
cd ~/catkin_ws
sudo apt install -y python3-vcstool
vcs import src < src/create_autonomy/dependencies.repos
sudo rosdep init
rosdep update
rosdep install --from-paths src -yi
echo "[Removed viso2 for Raspberry Pi.]"
rm -rf ~/catkin_ws/src/viso2
echo "[Build the workspace for Raspberry Pi]"
cd ~/catkin_ws
catkin build ca_driver -DCMAKE_BUILD_TYPE=Release -DARM_CROSS_COMPILATION=ON -j 1
echo "[Setup environment.]"
cat << EOS >> ~/.bashrc
export GAZEBO_IP=127.0.0.1
export LASER=rplidar
export NUM_ROBOTS=1
export RVIZ=true
source /opt/ros/melodic/setup.bash
source ~/catkin_ws/devel/setup.bash
EOS
source ~/.bashrc