-
Notifications
You must be signed in to change notification settings - Fork 225
/
gazebo-rover.sh
executable file
·33 lines (24 loc) · 982 Bytes
/
gazebo-rover.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
#!/bin/sh
echo " "
echo "configuring Gazebo7 plugin paths"
echo "previous GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "script directory $SCRIPT_DIR"
MY_PLUGIN_PATH=$SCRIPT_DIR/../lib
echo "plugin path $MY_PLUGIN_PATH"
export GAZEBO_PLUGIN_PATH=$MY_PLUGIN_PATH:$GAZEBO_PLUGIN_PATH
echo "GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH"
export GAZEBO_MODEL_PATH=$SCRIPT_DIR:$GAZEBO_MODEL_PATH
echo "GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH"
echo " "
echo "starting Gazebo7 Client (gzclient)"
gnome-terminal -e 'sh -c "echo \"\033]0; Gazebo7 Client (gzclient)\007\"; \
echo \"launching Gazebo7 Client (gzclient)\"; \
echo \"Press Ctrl+Q or close window to quit\n\"; \
sleep 10; \
gzclient --verbose; \
pkill gzserver"' # pkill -INT gzserver
echo "starting Gazebo7 Server (gzserver)\n"
gzserver gazebo-rover.world --verbose
echo "Gazebo7 Server (gzserver) has exited."
#gazebo gazebo-rover.world --verbose