-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.sh
58 lines (46 loc) · 1.39 KB
/
setup.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
# Creating the source directory
mkdir src
cd src
# Cloning both the repositories
git clone https://github.com/NYU-robot-learning/Allegro-Hand-Controller-DIME
git clone https://github.com/NYU-robot-learning/Kinova-Arm-Controller-DIME
# Installing the PCAN drivers
cd ..
mkdir drivers
cd drivers
sudo apt-get install cmake gcc g++ libpopt-dev
wget https://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-8.12.0.tar.gz
tar -xvzf peak-linux-driver-8.12.0.tar.gz
cd peak-linux-driver-8.12.0
make clean
make NET=NO_NETDEV_SUPPORT
sudo make install
sudo modprobe pcan
cd ..
wget https://www.peak-system.com/quick/BasicLinux
tar -xvzf BasicLinux
cd PCAN-Basic_Linux-4.5.4/libpcanbasic
make
sudo make install
# Installing ROS
cd ../../..
sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-noetic-desktop-full
# Sourcing ROS
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
# Installing the PCAN driver
sudo apt-get install ros-noetic-libpcan
# Installing DARSTSIM
sudo apt-add-repository ppa:dartsim/ppa
sudo apt-get update
sudo apt-get install libdart6-all-dev
# Making all the binaries
catkin_make
# Setting up the source command in the bashrc file
curr_dir=`pwd`
echo "source $curr_dir/devel/setup.bash" >> ~/.bashrc
echo "export PYTHONPATH=$curr_dir" >> ~/.bashrc
source ~/.bashrc