-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathes2.sh
More file actions
26 lines (26 loc) · 725 Bytes
/
es2.sh
File metadata and controls
26 lines (26 loc) · 725 Bytes
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
#!/bin/bash
# ####################################################################
# Make sure that the file in the script folder are executable file
# ####################################################################
./create_map_lite.sh
gnome-terminal -e 'sh -c "roslaunch explore_lite explore.launch"'
sleep 60
# Save the map
while : ; do
echo "Would you like to save the map? This will overwrite the old map [y/n]"
read answer
if [ $answer = y ]
then
echo "Saving..."
rosrun map_server map_saver -f /home/user/Projects/Mobile_robotics/maps/map
sleep 2
echo "Map saved"
break
elif [ $answer = n ]
then
echo "The old map is kept"
break
else
echo "Wrong input"
fi
done