14
14
15
15
#include < gtest/gtest.h>
16
16
17
- #include < scenario_simulator_exception/exception.hpp>
18
17
#include < traffic_simulator/data_type/lanelet_pose.hpp>
19
18
20
19
#include " ../helper_functions.hpp"
@@ -26,13 +25,19 @@ int main(int argc, char ** argv)
26
25
testing::InitGoogleTest (&argc, argv);
27
26
return RUN_ALL_TESTS ();
28
27
}
28
+ class CanonicalizedLaneletPoseTest : public testing ::Test
29
+ {
30
+ protected:
31
+ CanonicalizedLaneletPoseTest () : hdmap_utils(makeHdMapUtilsSharedPointer()) {}
32
+
33
+ std::shared_ptr<hdmap_utils::HdMapUtils> hdmap_utils;
34
+ };
29
35
30
36
/* *
31
37
* @note Test constructor behavior with route_lanelets argument present when canonicalization function fails.
32
38
*/
33
- TEST (CanonicalizedLaneletPose , CanonicalizedLaneletPose_withRoute_invalid)
39
+ TEST_F (CanonicalizedLaneletPoseTest , CanonicalizedLaneletPose_withRoute_invalid)
34
40
{
35
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
36
41
EXPECT_THROW (
37
42
CanonicalizedLaneletPose (
38
43
traffic_simulator::helper::constructLaneletPose (120576 , 14.6356 , 0.0 ), lanelet::Ids{},
@@ -43,9 +48,8 @@ TEST(CanonicalizedLaneletPose, CanonicalizedLaneletPose_withRoute_invalid)
43
48
/* *
44
49
* @note Test constructor behavior with route_lanelets argument present when canonicalization function succeeds
45
50
*/
46
- TEST (CanonicalizedLaneletPose , CanonicalizedLaneletPose_withRoute)
51
+ TEST_F (CanonicalizedLaneletPoseTest , CanonicalizedLaneletPose_withRoute)
47
52
{
48
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
49
53
std::shared_ptr<CanonicalizedLaneletPose> pose;
50
54
EXPECT_NO_THROW (
51
55
pose = std::make_shared<CanonicalizedLaneletPose>(
@@ -59,9 +63,8 @@ TEST(CanonicalizedLaneletPose, CanonicalizedLaneletPose_withRoute)
59
63
/* *
60
64
* @note Test constructor behavior with route_lanelets argument absent when canonicalization function fails
61
65
*/
62
- TEST (CanonicalizedLaneletPose , CanonicalizedLaneletPose_withoutRoute_invalid)
66
+ TEST_F (CanonicalizedLaneletPoseTest , CanonicalizedLaneletPose_withoutRoute_invalid)
63
67
{
64
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
65
68
EXPECT_THROW (
66
69
CanonicalizedLaneletPose (
67
70
traffic_simulator::helper::constructLaneletPose (120576 , 0.0 , 0.0 ), hdmap_utils),
@@ -71,9 +74,8 @@ TEST(CanonicalizedLaneletPose, CanonicalizedLaneletPose_withoutRoute_invalid)
71
74
/* *
72
75
* @note Test constructor behavior with route_lanelets argument absent when canonicalization function succeeds
73
76
*/
74
- TEST (CanonicalizedLaneletPose , CanonicalizedLaneletPose_withoutRoute)
77
+ TEST_F (CanonicalizedLaneletPoseTest , CanonicalizedLaneletPose_withoutRoute)
75
78
{
76
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
77
79
std::shared_ptr<CanonicalizedLaneletPose> pose;
78
80
EXPECT_NO_THROW (
79
81
pose = std::make_shared<CanonicalizedLaneletPose>(
@@ -86,12 +88,11 @@ TEST(CanonicalizedLaneletPose, CanonicalizedLaneletPose_withoutRoute)
86
88
/* *
87
89
* @note Test copy constructor behavior
88
90
*/
89
- TEST (CanonicalizedLaneletPose , CanonicalizedLaneletPose_copyConstructor)
91
+ TEST_F (CanonicalizedLaneletPoseTest , CanonicalizedLaneletPose_copyConstructor)
90
92
{
91
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
92
- CanonicalizedLaneletPose pose (
93
+ const CanonicalizedLaneletPose pose (
93
94
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
94
- CanonicalizedLaneletPose pose_copy (pose);
95
+ const CanonicalizedLaneletPose pose_copy (pose);
95
96
EXPECT_LANELET_POSE_EQ (
96
97
static_cast <traffic_simulator::LaneletPose>(pose),
97
98
static_cast <traffic_simulator::LaneletPose>(CanonicalizedLaneletPose (pose)));
@@ -100,13 +101,12 @@ TEST(CanonicalizedLaneletPose, CanonicalizedLaneletPose_copyConstructor)
100
101
/* *
101
102
* @note Test move constructor behavior
102
103
*/
103
- TEST (CanonicalizedLaneletPose , CanonicalizedLaneletPose_moveConstructor)
104
+ TEST_F (CanonicalizedLaneletPoseTest , CanonicalizedLaneletPose_moveConstructor)
104
105
{
105
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
106
- CanonicalizedLaneletPose pose (
106
+ const CanonicalizedLaneletPose pose (
107
107
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
108
- CanonicalizedLaneletPose pose2 (pose);
109
- CanonicalizedLaneletPose pose_move = std::move (pose2);
108
+ const CanonicalizedLaneletPose pose2 (pose);
109
+ const CanonicalizedLaneletPose pose_move = std::move (pose2);
110
110
EXPECT_LANELET_POSE_EQ (
111
111
static_cast <traffic_simulator::LaneletPose>(pose),
112
112
static_cast <traffic_simulator::LaneletPose>(pose_move));
@@ -115,10 +115,9 @@ TEST(CanonicalizedLaneletPose, CanonicalizedLaneletPose_moveConstructor)
115
115
/* *
116
116
* @note Test copy assignment operator behavior
117
117
*/
118
- TEST (CanonicalizedLaneletPose , copyAssignment)
118
+ TEST_F (CanonicalizedLaneletPoseTest , copyAssignment)
119
119
{
120
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
121
- CanonicalizedLaneletPose pose (
120
+ const CanonicalizedLaneletPose pose (
122
121
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
123
122
CanonicalizedLaneletPose pose_assign (
124
123
traffic_simulator::helper::constructLaneletPose (34468 , 0.0 , 0.0 ), hdmap_utils);
@@ -133,12 +132,12 @@ TEST(CanonicalizedLaneletPose, copyAssignment)
133
132
/* *
134
133
* @note Test conversion operator behavior using static_cast<LaneletPose>
135
134
*/
136
- TEST (CanonicalizedLaneletPose , conversionLaneletPose)
135
+ TEST_F (CanonicalizedLaneletPoseTest , conversionLaneletPose)
137
136
{
138
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
139
- CanonicalizedLaneletPose pose (
137
+ const CanonicalizedLaneletPose pose (
140
138
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
141
- traffic_simulator::LaneletPose pose_casted = static_cast <traffic_simulator::LaneletPose>(pose);
139
+ const traffic_simulator::LaneletPose pose_casted =
140
+ static_cast <traffic_simulator::LaneletPose>(pose);
142
141
143
142
EXPECT_EQ (pose_casted.lanelet_id , 120659 );
144
143
EXPECT_DOUBLE_EQ (pose_casted.s , 0.0 );
@@ -149,13 +148,12 @@ TEST(CanonicalizedLaneletPose, conversionLaneletPose)
149
148
/* *
150
149
* @note Test conversion operator behavior using static_cast<Pose>
151
150
*/
152
- TEST (CanonicalizedLaneletPose , conversionPose)
151
+ TEST_F (CanonicalizedLaneletPoseTest , conversionPose)
153
152
{
154
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
155
- CanonicalizedLaneletPose pose (
153
+ const CanonicalizedLaneletPose pose (
156
154
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
157
155
158
- geometry_msgs::msg::Pose pose1 =
156
+ const geometry_msgs::msg::Pose pose1 =
159
157
makePose (makePoint (3822.3815 , 73784.9618 , -1.761 ), makeQuaternionFromYaw (2.060578777273 ));
160
158
161
159
EXPECT_POSE_NEAR (static_cast <geometry_msgs::msg::Pose>(pose), pose1, 0.01 );
@@ -164,10 +162,9 @@ TEST(CanonicalizedLaneletPose, conversionPose)
164
162
/* *
165
163
* @note Test function behavior when alternative poses are present
166
164
*/
167
- TEST (CanonicalizedLaneletPose , hasAlternativeLaneletPose_true)
165
+ TEST_F (CanonicalizedLaneletPoseTest , hasAlternativeLaneletPose_true)
168
166
{
169
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
170
- CanonicalizedLaneletPose pose (
167
+ const CanonicalizedLaneletPose pose (
171
168
traffic_simulator::helper::constructLaneletPose (120659 , -10.0 , 0.0 ), hdmap_utils);
172
169
173
170
EXPECT_TRUE (pose.hasAlternativeLaneletPose ());
@@ -176,10 +173,9 @@ TEST(CanonicalizedLaneletPose, hasAlternativeLaneletPose_true)
176
173
/* *
177
174
* @note Test function behavior when alternative poses are absent
178
175
*/
179
- TEST (CanonicalizedLaneletPose , hasAlternativeLaneletPose_false)
176
+ TEST_F (CanonicalizedLaneletPoseTest , hasAlternativeLaneletPose_false)
180
177
{
181
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
182
- CanonicalizedLaneletPose pose (
178
+ const CanonicalizedLaneletPose pose (
183
179
traffic_simulator::helper::constructLaneletPose (120659 , 10.0 , 0.0 ), hdmap_utils);
184
180
185
181
EXPECT_FALSE (pose.hasAlternativeLaneletPose ());
@@ -188,27 +184,28 @@ TEST(CanonicalizedLaneletPose, hasAlternativeLaneletPose_false)
188
184
/* *
189
185
* @note Test function behavior when there are no lanelet_poses
190
186
*/
191
- TEST (CanonicalizedLaneletPose , getAlternativeLaneletPoseBaseOnShortestRouteFrom_empty)
187
+ TEST_F (CanonicalizedLaneletPoseTest , getAlternativeLaneletPoseBaseOnShortestRouteFrom_empty)
192
188
{
193
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
194
- CanonicalizedLaneletPose pose (
189
+ const CanonicalizedLaneletPose pose (
195
190
traffic_simulator::helper::constructLaneletPose (120659 , 20.0 , 0.0 ), hdmap_utils);
196
191
const auto from1 = traffic_simulator::helper::constructLaneletPose (34603 , 10.0 , 0.0 );
197
192
const auto from2 = traffic_simulator::helper::constructLaneletPose (34579 , 10.0 , 0.0 );
198
193
199
194
const auto result1 = pose.getAlternativeLaneletPoseBaseOnShortestRouteFrom (from1, hdmap_utils);
200
195
const auto result2 = pose.getAlternativeLaneletPoseBaseOnShortestRouteFrom (from2, hdmap_utils);
201
196
197
+ ASSERT_TRUE (result1);
198
+ ASSERT_TRUE (result2);
199
+
202
200
EXPECT_EQ (result1.value ().lanelet_id , 120659 );
203
201
EXPECT_EQ (result2.value ().lanelet_id , 120659 );
204
202
}
205
203
206
204
/* *
207
205
* @note Test function behavior when there is only one lanelet_pose
208
206
*/
209
- TEST (CanonicalizedLaneletPose , getAlternativeLaneletPoseBaseOnShortestRouteFrom_single)
207
+ TEST_F (CanonicalizedLaneletPoseTest , getAlternativeLaneletPoseBaseOnShortestRouteFrom_single)
210
208
{
211
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
212
209
CanonicalizedLaneletPose pose (
213
210
traffic_simulator::helper::constructLaneletPose (34666 , -20.0 , 0.0 ), hdmap_utils);
214
211
const auto from1 = traffic_simulator::helper::constructLaneletPose (34603 , 10.0 , 0.0 );
@@ -217,16 +214,18 @@ TEST(CanonicalizedLaneletPose, getAlternativeLaneletPoseBaseOnShortestRouteFrom_
217
214
const auto result1 = pose.getAlternativeLaneletPoseBaseOnShortestRouteFrom (from1, hdmap_utils);
218
215
const auto result2 = pose.getAlternativeLaneletPoseBaseOnShortestRouteFrom (from2, hdmap_utils);
219
216
217
+ ASSERT_TRUE (result1);
218
+ ASSERT_TRUE (result2);
219
+
220
220
EXPECT_EQ (result1.value ().lanelet_id , 34603 );
221
221
EXPECT_EQ (result2.value ().lanelet_id , 34603 );
222
222
}
223
223
224
224
/* *
225
225
* @note Test function behavior when there are multiple lanelet_poses
226
226
*/
227
- TEST (CanonicalizedLaneletPose , getAlternativeLaneletPoseBaseOnShortestRouteFrom_multiple)
227
+ TEST_F (CanonicalizedLaneletPoseTest , getAlternativeLaneletPoseBaseOnShortestRouteFrom_multiple)
228
228
{
229
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
230
229
CanonicalizedLaneletPose pose (
231
230
traffic_simulator::helper::constructLaneletPose (120659 , -20.0 , 0.0 ), hdmap_utils);
232
231
const auto from1 = traffic_simulator::helper::constructLaneletPose (34603 , 10.0 , 0.0 );
@@ -235,6 +234,9 @@ TEST(CanonicalizedLaneletPose, getAlternativeLaneletPoseBaseOnShortestRouteFrom_
235
234
const auto result1 = pose.getAlternativeLaneletPoseBaseOnShortestRouteFrom (from1, hdmap_utils);
236
235
const auto result2 = pose.getAlternativeLaneletPoseBaseOnShortestRouteFrom (from2, hdmap_utils);
237
236
237
+ ASSERT_TRUE (result1);
238
+ ASSERT_TRUE (result2);
239
+
238
240
EXPECT_EQ (result1.value ().lanelet_id , 34603 );
239
241
EXPECT_EQ (result2.value ().lanelet_id , 34579 );
240
242
}
@@ -260,16 +262,15 @@ TEST(CanonicalizedLaneletPose, setConsiderPoseByRoadSlope)
260
262
/* *
261
263
* @note Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id
262
264
*/
263
- TEST (CanonicalizedLaneletPose , operatorLessEqual)
265
+ TEST_F (CanonicalizedLaneletPoseTest , operatorLessEqual)
264
266
{
265
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
266
- CanonicalizedLaneletPose pose (
267
+ const CanonicalizedLaneletPose pose (
267
268
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
268
- CanonicalizedLaneletPose pose_equal (
269
+ const CanonicalizedLaneletPose pose_equal (
269
270
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
270
- CanonicalizedLaneletPose pose_less (
271
+ const CanonicalizedLaneletPose pose_less (
271
272
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
272
- CanonicalizedLaneletPose pose_greater (
273
+ const CanonicalizedLaneletPose pose_greater (
273
274
traffic_simulator::helper::constructLaneletPose (120659 , 6.0 , 0.0 ), hdmap_utils);
274
275
275
276
EXPECT_TRUE (pose_less <= pose);
@@ -280,16 +281,15 @@ TEST(CanonicalizedLaneletPose, operatorLessEqual)
280
281
/* *
281
282
* @note Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id
282
283
*/
283
- TEST (CanonicalizedLaneletPose , operatorLess)
284
+ TEST_F (CanonicalizedLaneletPoseTest , operatorLess)
284
285
{
285
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
286
- CanonicalizedLaneletPose pose (
286
+ const CanonicalizedLaneletPose pose (
287
287
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
288
- CanonicalizedLaneletPose pose_equal (
288
+ const CanonicalizedLaneletPose pose_equal (
289
289
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
290
- CanonicalizedLaneletPose pose_less (
290
+ const CanonicalizedLaneletPose pose_less (
291
291
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
292
- CanonicalizedLaneletPose pose_greater (
292
+ const CanonicalizedLaneletPose pose_greater (
293
293
traffic_simulator::helper::constructLaneletPose (120659 , 6.0 , 0.0 ), hdmap_utils);
294
294
295
295
EXPECT_TRUE (pose_less < pose);
@@ -300,16 +300,15 @@ TEST(CanonicalizedLaneletPose, operatorLess)
300
300
/* *
301
301
* @note Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id
302
302
*/
303
- TEST (CanonicalizedLaneletPose , operatorGreaterEqual)
303
+ TEST_F (CanonicalizedLaneletPoseTest , operatorGreaterEqual)
304
304
{
305
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
306
- CanonicalizedLaneletPose pose (
305
+ const CanonicalizedLaneletPose pose (
307
306
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
308
- CanonicalizedLaneletPose pose_equal (
307
+ const CanonicalizedLaneletPose pose_equal (
309
308
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
310
- CanonicalizedLaneletPose pose_less (
309
+ const CanonicalizedLaneletPose pose_less (
311
310
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
312
- CanonicalizedLaneletPose pose_greater (
311
+ const CanonicalizedLaneletPose pose_greater (
313
312
traffic_simulator::helper::constructLaneletPose (120659 , 6.0 , 0.0 ), hdmap_utils);
314
313
315
314
EXPECT_FALSE (pose_less >= pose);
@@ -320,16 +319,15 @@ TEST(CanonicalizedLaneletPose, operatorGreaterEqual)
320
319
/* *
321
320
* @note Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id
322
321
*/
323
- TEST (CanonicalizedLaneletPose , operatorGreater)
322
+ TEST_F (CanonicalizedLaneletPoseTest , operatorGreater)
324
323
{
325
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
326
- CanonicalizedLaneletPose pose (
324
+ const CanonicalizedLaneletPose pose (
327
325
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
328
- CanonicalizedLaneletPose pose_equal (
326
+ const CanonicalizedLaneletPose pose_equal (
329
327
traffic_simulator::helper::constructLaneletPose (120659 , 5.0 , 0.0 ), hdmap_utils);
330
- CanonicalizedLaneletPose pose_less (
328
+ const CanonicalizedLaneletPose pose_less (
331
329
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
332
- CanonicalizedLaneletPose pose_greater (
330
+ const CanonicalizedLaneletPose pose_greater (
333
331
traffic_simulator::helper::constructLaneletPose (120659 , 6.0 , 0.0 ), hdmap_utils);
334
332
335
333
EXPECT_FALSE (pose_less > pose);
@@ -340,12 +338,11 @@ TEST(CanonicalizedLaneletPose, operatorGreater)
340
338
/* *
341
339
* @note Test function behavior when provided two poses occupying the same lanelet_id
342
340
*/
343
- TEST (CanonicalizedLaneletPose , isSameLaneletId_withPose_same)
341
+ TEST_F (CanonicalizedLaneletPoseTest , isSameLaneletId_withPose_same)
344
342
{
345
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
346
- CanonicalizedLaneletPose pose1 (
343
+ const CanonicalizedLaneletPose pose1 (
347
344
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
348
- CanonicalizedLaneletPose pose2 (
345
+ const CanonicalizedLaneletPose pose2 (
349
346
traffic_simulator::helper::constructLaneletPose (120659 , 1.0 , 0.0 ), hdmap_utils);
350
347
351
348
EXPECT_TRUE (traffic_simulator::isSameLaneletId (pose1, pose2));
@@ -354,10 +351,9 @@ TEST(CanonicalizedLaneletPose, isSameLaneletId_withPose_same)
354
351
/* *
355
352
* @note Test function behavior when provided two poses occupying different lanelet_ids
356
353
*/
357
- TEST (CanonicalizedLaneletPose , isSameLaneletId_withPose_different)
354
+ TEST_F (CanonicalizedLaneletPoseTest , isSameLaneletId_withPose_different)
358
355
{
359
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
360
- CanonicalizedLaneletPose pose1 (
356
+ const CanonicalizedLaneletPose pose1 (
361
357
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
362
358
CanonicalizedLaneletPose pose2 (
363
359
traffic_simulator::helper::constructLaneletPose (34606 , 1.0 , 0.0 ), hdmap_utils);
@@ -368,10 +364,9 @@ TEST(CanonicalizedLaneletPose, isSameLaneletId_withPose_different)
368
364
/* *
369
365
* @note Test function behavior when provided with a pose having lanelt_id equal to the lanelet_id argument
370
366
*/
371
- TEST (CanonicalizedLaneletPose , isSameLaneletId_withLanelet_same)
367
+ TEST_F (CanonicalizedLaneletPoseTest , isSameLaneletId_withLanelet_same)
372
368
{
373
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
374
- CanonicalizedLaneletPose pose (
369
+ const CanonicalizedLaneletPose pose (
375
370
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
376
371
377
372
EXPECT_TRUE (traffic_simulator::isSameLaneletId (pose, 120659 ));
@@ -380,10 +375,9 @@ TEST(CanonicalizedLaneletPose, isSameLaneletId_withLanelet_same)
380
375
/* *
381
376
* @note Test function behavior when provided with a pose having lanelet_id different to the lanelet_id argument
382
377
*/
383
- TEST (CanonicalizedLaneletPose , isSameLaneletId_withLanelet_different)
378
+ TEST_F (CanonicalizedLaneletPoseTest , isSameLaneletId_withLanelet_different)
384
379
{
385
- auto hdmap_utils = makeHdMapUtilsSharedPointer ();
386
- CanonicalizedLaneletPose pose (
380
+ const CanonicalizedLaneletPose pose (
387
381
traffic_simulator::helper::constructLaneletPose (120659 , 0.0 , 0.0 ), hdmap_utils);
388
382
389
383
EXPECT_FALSE (traffic_simulator::isSameLaneletId (pose, 34606 ));
0 commit comments