Skip to content

Commit 73da792

Browse files
nkoenigNate Koenig
and
Nate Koenig
authored
Update connection helper (#1021)
* Update connection helper Signed-off-by: Nate Koenig <[email protected]> * Fix issue #984 Signed-off-by: Nate Koenig <[email protected]> Co-authored-by: Nate Koenig <[email protected]>
1 parent 79d3283 commit 73da792

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

docker/subt_shell/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ RUN sudo /bin/sh -c 'echo "deb [trusted=yes] http://packages.ros.org/ros/ubuntu
8282
ros-melodic-twist-mux \
8383
ros-melodic-rviz-imu-plugin \
8484
ros-melodic-rotors-control \
85+
ros-melodic-control-toolbox \
8586
&& sudo rosdep init \
8687
&& sudo apt-get clean -qq
8788

subt_ign/src/ConnectionHelper.cc

+24-5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ std::map<std::string, std::vector<ignition::math::Vector3d>>
4747
{"Tunnel Tile 6 Lights", {{0, -10, 0}, {0, 10, 5}}},
4848
{"Tunnel Tile 7", {{0, -10, 0}, {0, 10, 5}}},
4949
{"Tunnel Tile 7 Lights", {{0, -10, 0}, {0, 10, 5}}},
50+
{"Tunnel Tile Blocker", {{0, 0, 0}}},
5051
{"Rough Tunnel Tile 90-degree Turn", {{0, -10, 0}, {10, 0, 0}}},
5152
{"Rough Tunnel Tile 90-degree Turn Lights", {{0, -10, 0}, {10, 0, 0}}},
5253
{"Rough Tunnel Tile Ramp", {{0, -10, 0}, {0, 10, 5}}},
@@ -94,6 +95,7 @@ std::map<std::string, std::vector<ignition::math::Vector3d>>
9495
{23.979, 3.906, 0.919}, {-23.979, 3.906, 0.919},
9596
{23.982, 11.743, 0.919}}},
9697
{"Urban Stairwell Platform", {{0, 20, 11.69}, {0, -20, 1.69}}},
98+
{"Urban Stairwell Straight", {{20, 0, 0}, {-20, 0, 0}}},
9799
{"Urban Stairwell Platform Lights", {{0, 20, 11.69}, {0, -20, 1.69}}},
98100
{"Urban Stairwell Platform Centered", {{0, 20, 10}, {0, -20, 0}}},
99101
{"Urban Stairwell Platform Centered Lights", {{0, 20, 10}, {0, -20, 0}}},
@@ -110,6 +112,9 @@ std::map<std::string, std::vector<ignition::math::Vector3d>>
110112
{"Urban 2 Story Large Side 2", {{0, -20, 0}, {0, 20, 0}}},
111113
{"Urban Large Room Split", {{0, -20, 0}, {-20, 0, 0}, {0, 20, 0}}},
112114
{"Urban Large Room Split Lights", {{0, -20, 0}, {-20, 0, 0}, {0, 20, 0}}},
115+
{"Urban Station", {{8.5, -26.5, -0.8}, {8.5, -26.5, -7}, {8.5, 26.5, -7}, {8.5, 26.5, -0.8},
116+
{-8.5, -26.5, -0.8}, {-8.5, -26.5, -7}, {-8.5, 26.5, -7}, {-8.5, 26.5, -0.8}}},
117+
{"Cave Tile Blocker", {{0, 0, 0}}},
113118
{"Cave Starting Area Type B", {{12.5, 0, 0}}},
114119
{"Cave Straight 01", {{0, 12.5, 0}, {0, -12.5, 0}}},
115120
{"Cave Straight 01 Type B", {{0, 12.5, 0}, {0, -12.5, 0}}},
@@ -154,6 +159,8 @@ std::map<std::string, std::vector<ignition::math::Vector3d>>
154159
{"Cave Corner 03 Type A Lights", {{-25.0, 0.0, 0.0}, {0.0, -25.0, 0.0}}},
155160
{"Cave Corner 04 Type A", {{0.0, 50.0, 25.0}, {-50.0, -50.0, 0.0}}},
156161
{"Cave Cap Type A", {{0.0, 0.0, 0.0}}},
162+
{"Cave Cap Type B", {{0.0, 0.0, 0.0}}},
163+
{"Cave Cap", {{0.0, 0.0, 0.0}}},
157164
{"Cave Elevation 01 Type A", {{0.0, -50.0, 0.0}, {0.0, 50.0, 75.0}}},
158165
{"Cave Elevation 02 Type A", {{-50.0, 0.0, 75.0}, {50.0, 0.0, 0.0}}},
159166
{"Cave Elevation Corner Type A", {{25.0, 75.0, 25.0}, {0.0, -100.0, 0.0}}},
@@ -212,16 +219,16 @@ std::map<std::string, std::vector<ignition::math::Vector3d>>
212219
{"Cave Tunnel Transition Lights", {{0, 25, 0}, {0, -25, 0}, {-25, 0, 0}}},
213220
{"Urban Cave Transition", {{0, -12, 0}, {0, 12, 0}, {-25, 0, 0}}},
214221
{"Urban Cave Transition Lights", {{0, -12, 0}, {0, 12, 0}, {-25, 0, 0}}},
215-
{"Urban Cave Transition 2", {{0, -12, 0}, {0, 12, 0}, {-25, 0, 0}}},
222+
{"Urban Cave Transition 2", {{0, 0, 0}, {0, -15, -5}}},
216223
{"Urban Cave Transition Straight", {{0, -5, 0}, {0, 5, 0}}},
217224
{"Urban Cave Transition Straight Large", {{0, -5, 0}, {0, 5, 0}}},
218225
{"Urban Cave Transition Straight Lights", {{0, -5, 0}, {0, 5, 0}}},
219226
{"Urban Tunnel Transition", {{0, 0, 0}, {0, -15, -5}}},
220-
{"Urban Tunnel Transition 2", {{0, 0, 0}, {0, -15, -5}}},
227+
{"Urban Tunnel Transition 2", {{5, 0, 0}, {-5, 0, 0}, {0, -5, 0}}},
221228
{"Urban Tunnel Transition Straight", {{0, -5, 0}, {0, 5, 0}}},
222-
{"4-Way Finals Transition", {{8, 0, 0}, {-8, 0, 0}, {0, 8, 0}, {0, -8, 0}}},
223-
{"4-Way Finals Transition 2", {{8, 0, 0}, {-8, 0, 0}, {0, 8, 0}, {0, -8, 0}}},
224-
{"4-Way Finals Transition 2 Lights", {{8, 0, 0}, {-8, 0, 0}, {0, 8, 0}, {0, -8, 0}}},
229+
{"4-Way Finals Transition", {{6, 0, 0}, {-7.5, 0, 0}, {0, 7, 0}, {0, -8.5, 0}}},
230+
{"4-Way Finals Transition 2", {{7.5, 0, 0}, {-8.5, 0, 0}, {0, 8, 0}, {0, -8.5, 0}}},
231+
{"4-Way Finals Transition 2 Lights", {{7.5, 0, 0}, {-8.5, 0, 0}, {0, 8, 0}, {0, -8.5, 0}}},
225232
{"Finals Staging Area", {{0, 5, 0}}},
226233
{"NIOSH Staging Connector Finals", {{0, 0, 0}, {-1, 6.5, 0}}},
227234
};
@@ -253,6 +260,7 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
253260
{"Tunnel Tile 6 Lights", subt::ConnectionHelper::STRAIGHT},
254261
{"Tunnel Tile 7", subt::ConnectionHelper::TURN},
255262
{"Tunnel Tile 7 Lights", subt::ConnectionHelper::TURN},
263+
{"Tunnel Tile Blocker", subt::ConnectionHelper::TURN},
256264
{"Rough Tunnel Tile 90-degree Turn", subt::ConnectionHelper::TURN},
257265
{"Rough Tunnel Tile 90-degree Turn Lights", subt::ConnectionHelper::TURN},
258266
{"Rough Tunnel Tile Ramp", subt::ConnectionHelper::STRAIGHT},
@@ -291,6 +299,7 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
291299
{"Urban Platform", subt::ConnectionHelper::TURN},
292300
{"Urban Platform Open", subt::ConnectionHelper::TURN},
293301
{"Urban Stairwell Platform", subt::ConnectionHelper::STRAIGHT},
302+
{"Urban Stairwell Straight", subt::ConnectionHelper::STRAIGHT},
294303
{"Urban Stairwell Platform Lights", subt::ConnectionHelper::STRAIGHT},
295304
{"Urban Stairwell Platform Centered", subt::ConnectionHelper::STRAIGHT},
296305
{"Urban Stairwell Platform Centered Lights",
@@ -307,7 +316,9 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
307316
{"Urban 2 Story Large Side 2", subt::ConnectionHelper::TURN},
308317
{"Urban Large Room Split", subt::ConnectionHelper::TURN},
309318
{"Urban Large Room Split Lights", subt::ConnectionHelper::TURN},
319+
{"Urban Station", subt::ConnectionHelper::STRAIGHT},
310320
{"Cave Starting Area Type B", subt::ConnectionHelper::STRAIGHT},
321+
{"Cave Tile Blocker", subt::ConnectionHelper::STRAIGHT},
311322
{"Cave Straight 01 Type B", subt::ConnectionHelper::STRAIGHT},
312323
{"Cave Straight 01 Lights Type B", subt::ConnectionHelper::STRAIGHT},
313324
{"Cave Straight 02 Type B", subt::ConnectionHelper::STRAIGHT},
@@ -350,6 +361,8 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
350361
{"Cave Corner 03 Type A Lights", subt::ConnectionHelper::TURN},
351362
{"Cave Corner 04 Type A", subt::ConnectionHelper::TURN},
352363
{"Cave Cap Type A", subt::ConnectionHelper::TURN},
364+
{"Cave Cap Type B", subt::ConnectionHelper::TURN},
365+
{"Cave Cap", subt::ConnectionHelper::TURN},
353366
{"Cave Elevation 01 Type A", subt::ConnectionHelper::STRAIGHT},
354367
{"Cave Elevation 02 Type A", subt::ConnectionHelper::STRAIGHT},
355368
{"Cave Elevation Corner Type A", subt::ConnectionHelper::TURN},
@@ -447,6 +460,7 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
447460
{"Tunnel Tile 6 Lights", subt::ConnectionHelper::TUNNEL},
448461
{"Tunnel Tile 7", subt::ConnectionHelper::TUNNEL},
449462
{"Tunnel Tile 7 Lights", subt::ConnectionHelper::TUNNEL},
463+
{"Tunnel Tile Blocker", subt::ConnectionHelper::TUNNEL},
450464
{"Rough Tunnel Tile 90-degree Turn", subt::ConnectionHelper::TUNNEL},
451465
{"Rough Tunnel Tile 90-degree Turn Lights", subt::ConnectionHelper::TUNNEL},
452466
{"Rough Tunnel Tile Ramp", subt::ConnectionHelper::TUNNEL},
@@ -482,6 +496,7 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
482496
{"Urban Platform", subt::ConnectionHelper::URBAN},
483497
{"Urban Platform Open", subt::ConnectionHelper::URBAN},
484498
{"Urban Stairwell Platform", subt::ConnectionHelper::URBAN},
499+
{"Urban Stairwell Straight", subt::ConnectionHelper::URBAN},
485500
{"Urban Stairwell Platform Lights", subt::ConnectionHelper::URBAN},
486501
{"Urban Stairwell Platform Centered", subt::ConnectionHelper::URBAN},
487502
{"Urban Stairwell Platform Centered Lights",
@@ -500,7 +515,9 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
500515
{"Urban Large Room Split Lights", subt::ConnectionHelper::URBAN},
501516
{"Urban Straight Door Left Extension", subt::ConnectionHelper::URBAN},
502517
{"Urban Bend Mixed", subt::ConnectionHelper::URBAN},
518+
{"Urban Station", subt::ConnectionHelper::URBAN},
503519
{"Cave Starting Area Type B", subt::ConnectionHelper::CAVE},
520+
{"Cave Tile Blocker", subt::ConnectionHelper::CAVE},
504521
{"Cave Straight 01", subt::ConnectionHelper::CAVE},
505522
{"Cave Straight 01 Type B", subt::ConnectionHelper::CAVE},
506523
{"Cave Straight 01 Lights Type B", subt::ConnectionHelper::CAVE},
@@ -544,6 +561,8 @@ std::map<std::string, subt::ConnectionHelper::ConnectionType>
544561
{"Cave Corner 03 Type A Lights", subt::ConnectionHelper::CAVE},
545562
{"Cave Corner 04 Type A", subt::ConnectionHelper::CAVE},
546563
{"Cave Cap Type A", subt::ConnectionHelper::CAVE},
564+
{"Cave Cap Type B", subt::ConnectionHelper::CAVE},
565+
{"Cave Cap", subt::ConnectionHelper::CAVE},
547566
{"Cave Elevation 01 Type A", subt::ConnectionHelper::CAVE},
548567
{"Cave Elevation 02 Type A", subt::ConnectionHelper::CAVE},
549568
{"Cave Elevation Corner Type A", subt::ConnectionHelper::CAVE},

0 commit comments

Comments
 (0)