forked from dusty-nv/jetson-reinforcement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgazebo-arm.sh
executable file
·30 lines (22 loc) · 877 Bytes
/
gazebo-arm.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
#!/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"
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-arm.world --verbose
echo "Gazebo7 Server (gzserver) has exited."
#gazebo gazebo-arm.world --verbose