-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsource-all.bash
More file actions
executable file
·34 lines (23 loc) · 842 Bytes
/
source-all.bash
File metadata and controls
executable file
·34 lines (23 loc) · 842 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
27
28
29
30
31
32
#!/usr/bin/env bash
# N.B.: do not use extend at the first source
echo "**** Using patrolling3d_wss ****"
THIS_DIR="$(cd "$(dirname "$BASH_SOURCE")"; pwd)"
THIS_DIR=$(readlink -f $THIS_DIR) # this reads the actual path if a symbolic directory is used
export PATROLLING3D_HOME=$THIS_DIR
echo PATROLLING3D_HOME: $PATROLLING3D_HOME
source ~/.bashrc
# load the config environment variables
source $PATROLLING3D_HOME/config.sh --extend
setup_files=( \
"$PATROLLING3D_HOME/mapping_ws/devel/setup.bash" \
"$PATROLLING3D_HOME/patrolling_ws/devel/setup.bash" \
)
for setup_file in "${setup_files[@]}"
do
if [ -f $setup_file ]; then
source $setup_file --extend
fi
done
# https://answers.ros.org/question/266313/robot-model-not-showing-in-rviz/
# added for making the robots appear in RVIZ
export LC_NUMERIC="en_US.UTF-8"