Skip to content

Commit 8396456

Browse files
committed
[tue-common] cleanup
1 parent a1a9993 commit 8396456

File tree

1 file changed

+42
-63
lines changed

1 file changed

+42
-63
lines changed

tue-common/rsettings_file

Lines changed: 42 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,82 @@
1+
#! /usr/bin/env bash
2+
13
# # # # # # # # # # # # # # # # # # # #
24

35
# Robot environment
4-
#export ROBOT_ENV=reo2016
6+
#export ROBOT_ENV=biestheuvel
7+
export ROBOT_ENV=impuls
58
#export ROBOT_ENV=robotics_testlabs
9+
#export ROBOT_ENV=reo2016
610
#export ROBOT_ENV=rgo2017
711
#export ROBOT_ENV=rgo2018
812
#export ROBOT_ENV=rgo2019
13+
#export ROBOT_ENV=rpo2023
914
#export ROBOT_ENV=rwc2017
1015
#export ROBOT_ENV=rwc2018
1116
#export ROBOT_ENV=rwc2019
1217
#export ROBOT_ENV=rwc2022
13-
export ROBOT_ENV=rpo2023
14-
#export ROBOT_ENV=biestheuvel
15-
#export ROBOT_ENV=impuls
1618

1719
# Set Robot initial pose based on environment
1820

19-
if [ $ROBOT_ENV == robotics_testlabs ]; then
20-
21-
# Robot initial pose
21+
if [ "${ROBOT_ENV}" == biestheuvel ]
22+
then
23+
export ROBOT_INIT_X=3
24+
export ROBOT_INIT_Y=-1
25+
export ROBOT_INIT_PHI=1.57079632679
26+
elif [ "${ROBOT_ENV}" == impuls ]
27+
then
28+
export ROBOT_INIT_X=0.2
29+
export ROBOT_INIT_Y=0.5
30+
export ROBOT_INIT_PHI=0.0
31+
elif [ "${ROBOT_ENV}" == robotics_testlabs ]
32+
then
2233
export ROBOT_INIT_X=0.586
2334
export ROBOT_INIT_Y=4.259
2435
export ROBOT_INIT_PHI=0
25-
26-
elif [ $ROBOT_ENV == reo2016 ]; then
27-
28-
# Robot initial pose
36+
elif [ "${ROBOT_ENV}" == reo2016 ]
37+
then
2938
export ROBOT_INIT_X=0.0
3039
export ROBOT_INIT_Y=0.0
3140
export ROBOT_INIT_PHI=0.0
32-
33-
elif [ $ROBOT_ENV == rgo2017 ]; then
34-
35-
# Robot initial pose
41+
elif [ "${ROBOT_ENV}" == rgo2017 ]
42+
then
3643
export ROBOT_INIT_X=-1.0
3744
export ROBOT_INIT_Y=0.0
3845
export ROBOT_INIT_PHI=0.0
39-
40-
elif [ $ROBOT_ENV == rgo2018 ]; then
41-
42-
# Robot initial pose
46+
elif [ "${ROBOT_ENV}" == rgo2018 ]
47+
then
4348
export ROBOT_INIT_X=-1.0
4449
export ROBOT_INIT_Y=0.0
4550
export ROBOT_INIT_PHI=0.0
46-
47-
elif [ $ROBOT_ENV == rgo2019 ]; then
48-
49-
# Robot initial pose
51+
elif [ "${ROBOT_ENV}" == rgo2019 ]
52+
then
5053
export ROBOT_INIT_X=-0.6
5154
export ROBOT_INIT_Y=0.0
5255
export ROBOT_INIT_PHI=0.0
53-
54-
elif [ $ROBOT_ENV == rwc2019 ]; then
55-
56-
# Robot initial pose
57-
export ROBOT_INIT_X=0.0
58-
export ROBOT_INIT_Y=0.0
59-
export ROBOT_INIT_PHI=0.0
60-
61-
elif [ $ROBOT_ENV == rwc2017 ]; then
62-
63-
# Robot initial pose
56+
elif [ "${ROBOT_ENV}" == rpo2023 ]
57+
then
58+
export ROBOT_INIT_X=6.05
59+
export ROBOT_INIT_Y=-0.5
60+
export ROBOT_INIT_PHI=1.57079632679
61+
elif [ "${ROBOT_ENV}" == rwc2017 ]
62+
then
6463
export ROBOT_INIT_X=9.3
6564
export ROBOT_INIT_Y=-7.3
6665
export ROBOT_INIT_PHI=2.35619449019
6766

68-
elif [ $ROBOT_ENV == rwc2018 ]; then
69-
70-
# Robot initial pose
67+
elif [ "${ROBOT_ENV}" == rwc2018 ]
68+
then
7169
export ROBOT_INIT_X=-11.0
7270
export ROBOT_INIT_Y=8.5
7371
export ROBOT_INIT_PHI=0.0
74-
75-
elif [ $ROBOT_ENV == rwc2022 ]; then
76-
77-
# Robot initial pose
72+
elif [ "${ROBOT_ENV}" == rwc2019 ]
73+
then
74+
export ROBOT_INIT_X=0.0
75+
export ROBOT_INIT_Y=0.0
76+
export ROBOT_INIT_PHI=0.0
77+
elif [ "${ROBOT_ENV}" == rwc2022 ]
78+
then
7879
export ROBOT_INIT_X=-0.5
7980
export ROBOT_INIT_Y=3.25
8081
export ROBOT_INIT_PHI=0.0
81-
82-
elif [ $ROBOT_ENV == rpo2023 ]; then
83-
84-
# Robot initial pose
85-
export ROBOT_INIT_X=6.05
86-
export ROBOT_INIT_Y=-0.5
87-
export ROBOT_INIT_PHI=1.57079632679
88-
89-
elif [ $ROBOT_ENV == biestheuvel ]; then
90-
91-
# Robot initial pose
92-
export ROBOT_INIT_X=3
93-
export ROBOT_INIT_Y=-1
94-
export ROBOT_INIT_PHI=1.57
95-
96-
elif [ $ROBOT_ENV == impuls ]; then
97-
98-
# Robot initial pose
99-
export ROBOT_INIT_X=0.2
100-
export ROBOT_INIT_Y=0.5
101-
export ROBOT_INIT_PHI=0.0
102-
10382
fi

0 commit comments

Comments
 (0)