-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdefault.sh
executable file
·35 lines (24 loc) · 938 Bytes
/
default.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
#!/bin/bash
source /environment.sh
# initialize launch file
dt-launchfile-init
# YOUR CODE BELOW THIS LINE
# ----------------------------------------------------------------------------
# NOTE: Use the variable DT_REPO_PATH to know the absolute path to your code
# NOTE: Use `dt-exec COMMAND` to run the main process (blocking process)
# this is necessary for the camera pipeline to work on the Jetson Nano
if [ "${ROBOT_HARDWARE}" == "jetson_nano" ]; then
export LD_PRELOAD=${LD_PRELOAD}:/usr/lib/aarch64-linux-gnu/libGLdispatch.so
fi
# set module's health
dt-set-module-healthy
# launching app
dt-exec roslaunch --wait \
duckiebot_interface all_drivers.launch \
veh:="$VEHICLE_NAME" \
robot_type:="$ROBOT_TYPE" \
robot_configuration:="$ROBOT_CONFIGURATION"
# ----------------------------------------------------------------------------
# YOUR CODE ABOVE THIS LINE
# wait for app to end
dt-launchfile-join