-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.sh
executable file
·49 lines (41 loc) · 1.58 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
#!/usr/bin/env bash
set -e
PATH_HOME=${HOME}
installROSPackages()
{
sudo apt-get update
sudo apt-get install ros-kinetic-effort-controllers \
ros-kinetic-robot-state-publisher \
ros-kinetic-joint-state-controller \
ros-kinetic-joint-state-publisher \
ros-kinetic-joint-trajectory-action \
ros-kinetic-joint-trajectory-controller \
ros-kinetic-gazebo-plugins \
ros-kinetic-gazebo-ros \
ros-kinetic-gazebo-ros-control \
ros-kinetic-moveit-ros-perception \
ros-kinetic-moveit-simple-controller-manager \
ros-kinetic-moveit-visual-tools \
ros-kinetic-position-controllers \
ros-kinetic-velocity-controllers
}
setGazeboModels()
{
if [ ! -d ${PATH_HOME}/.gazebo/models ]; then
mkdir -p ${PATH_HOME}/.gazebo/models
echo "Creating the directory of Gazebo models successfully!"
else
echo "The directory of Gazebo models has been created successfully!"
fi
cp -pruv panda_gazebo/objects/object_cube ${PATH_HOME}/.gazebo/models
cp -pruv panda_gazebo/objects/object_cuboid ${PATH_HOME}/.gazebo/models
cp -pruv panda_gazebo/objects/object_cylinder ${PATH_HOME}/.gazebo/models
echo "Setting Gazebo models successfully!"
}
main()
{
installROSPackages
setGazeboModels
}
RUNNING=$(basename $0)
[ "$RUNNING" = "setup.sh" ] && main