forked from ibrahimhroob/lts_filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_localizer_local.sh
executable file
·49 lines (39 loc) · 1.44 KB
/
run_localizer_local.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
######### BASH TERMINAL COLORS ################################################
# Black 0;30 Dark Gray 1;30
# Red 0;31 Light Red 1;31
# Green 0;32 Light Green 1;32
# Brown/Orange 0;33 Yellow 1;33
# Blue 0;34 Light Blue 1;34
# Purple 0;35 Light Purple 1;35
# Cyan 0;36 Light Cyan 1;36
# Light Gray 0;37 White 1;37
RED='\033[0;31m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
GREEN='\033[0;32m'
PURPLE='\033[0;35m'
NC='\033[0m' # No Color
printf "\n${PURPLE}***Script ID: run_localizer***${NC}\n"
######### ENVIRONMENTAL VARIABLES ############################################
CLOUD_TOPIC=/os_cloud_node/points
# const variables
image_name=local
ROS_DISTRO=noetic
###############################################################################
#parse bash args of they exists to override the default params
while getopts C: flag
do
case "${flag}" in
C) CLOUD_TOPIC=${OPTARG};;
esac
done
printf "Args:\n"
printf "(C)LOUD_TOPIC: ${CYAN}${CLOUD_TOPIC}${NC}\n"
printf "\n"
###############################################################################
#Main code is here
printf "${GREEN}Starting ${image_name} localizer node...${NC}\n"
source /home/zotac/uol_localization_ws/devel/setup.bash
roslaunch hdl_localization hdl_localization.launch \
points_topic:=${CLOUD_TOPIC} 2> >(grep -v TF_REPEATED_DATA buffer_core)