File tree 11 files changed +864
-117
lines changed
11 files changed +864
-117
lines changed Original file line number Diff line number Diff line change 5
5
],
6
6
"simulators" : [
7
7
{
8
- "binding" : " minimator"
8
+ "binding" : " minimator" ,
9
+ "args" : {
10
+ "vehicles" : {
11
+ "ego1" : {
12
+ "ego_sensor_mockup" : {
13
+ "ego_object" : {
14
+ "velocity" : 20.0 ,
15
+ "position" : {
16
+ "x" : 0.0 ,
17
+ "y" : 0.0 ,
18
+ "z" : 0.0
19
+ }
20
+ }
21
+ },
22
+ "object_sensor_mockup" : {
23
+ "objects" : [
24
+ {
25
+ "velocity" : 0.0 ,
26
+ "position" : {
27
+ "x" : 10.0 ,
28
+ "y" : 0.0 ,
29
+ "z" : 0.0
30
+ }
31
+ }
32
+ ]
33
+ }
34
+ }
35
+ }
36
+ }
9
37
}
10
38
],
11
39
"vehicles" : [
12
40
{
13
41
"name" : " default" ,
14
42
"from" : {
15
43
"simulator" : " minimator" ,
16
- "index " : 0
44
+ "name " : " ego1 "
17
45
}
18
46
}
19
47
],
Original file line number Diff line number Diff line change 25
25
"z" : 0.0
26
26
}
27
27
},
28
- "name" : " nop_object_sensor" ,
29
- "sensed_objects" : []
28
+ "name" : " minimator_object_sensor" ,
29
+ "sensed_objects" : [
30
+ {
31
+ "acceleration" : {
32
+ "x" : 0.0 ,
33
+ "y" : 0.0 ,
34
+ "z" : 0.0
35
+ },
36
+ "angular_velocity" : {
37
+ "x" : 0.0 ,
38
+ "y" : 0.0 ,
39
+ "z" : 0.0
40
+ },
41
+ "class" : " unknown" ,
42
+ "cog_offset" : {
43
+ "x" : 0.0 ,
44
+ "y" : 0.0 ,
45
+ "z" : 0.0
46
+ },
47
+ "dimensions" : {
48
+ "x" : 5.0 ,
49
+ "y" : 2.0 ,
50
+ "z" : 1.8
51
+ },
52
+ "exist_prob" : 1.0 ,
53
+ "id" : 0 ,
54
+ "pose" : {
55
+ "rotation" : {
56
+ "w" : 1.0 ,
57
+ "x" : 0.0 ,
58
+ "y" : 0.0 ,
59
+ "z" : 0.0
60
+ },
61
+ "translation" : {
62
+ "x" : 10.0 ,
63
+ "y" : 0.0 ,
64
+ "z" : 0.0
65
+ }
66
+ },
67
+ "type" : " unknown" ,
68
+ "velocity" : {
69
+ "x" : 0.0 ,
70
+ "y" : 0.0 ,
71
+ "z" : 0.0
72
+ },
73
+ "velocity_norm" : 0.0
74
+ }
75
+ ]
30
76
},
31
77
"cloe::gndtruth_lane_sensor" : {
32
78
"frustum" : {
188
234
"z" : 0.0
189
235
}
190
236
},
191
- "name" : " nop_object_sensor" ,
192
- "sensed_objects" : []
237
+ "name" : " minimator_object_sensor" ,
238
+ "sensed_objects" : [
239
+ {
240
+ "acceleration" : {
241
+ "x" : 0.0 ,
242
+ "y" : 0.0 ,
243
+ "z" : 0.0
244
+ },
245
+ "angular_velocity" : {
246
+ "x" : 0.0 ,
247
+ "y" : 0.0 ,
248
+ "z" : 0.0
249
+ },
250
+ "class" : " unknown" ,
251
+ "cog_offset" : {
252
+ "x" : 0.0 ,
253
+ "y" : 0.0 ,
254
+ "z" : 0.0
255
+ },
256
+ "dimensions" : {
257
+ "x" : 5.0 ,
258
+ "y" : 2.0 ,
259
+ "z" : 1.8
260
+ },
261
+ "exist_prob" : 1.0 ,
262
+ "id" : 0 ,
263
+ "pose" : {
264
+ "rotation" : {
265
+ "w" : 1.0 ,
266
+ "x" : 0.0 ,
267
+ "y" : 0.0 ,
268
+ "z" : 0.0
269
+ },
270
+ "translation" : {
271
+ "x" : 10.0 ,
272
+ "y" : 0.0 ,
273
+ "z" : 0.0
274
+ }
275
+ },
276
+ "type" : " unknown" ,
277
+ "velocity" : {
278
+ "x" : 0.0 ,
279
+ "y" : 0.0 ,
280
+ "z" : 0.0
281
+ },
282
+ "velocity_norm" : 0.0
283
+ }
284
+ ]
193
285
},
194
286
"cloe::gndtruth_lane_sensor" : {
195
287
"frustum" : {
351
443
"z" : 0.0
352
444
}
353
445
},
354
- "name" : " nop_object_sensor" ,
355
- "sensed_objects" : []
446
+ "name" : " minimator_object_sensor" ,
447
+ "sensed_objects" : [
448
+ {
449
+ "acceleration" : {
450
+ "x" : 0.0 ,
451
+ "y" : 0.0 ,
452
+ "z" : 0.0
453
+ },
454
+ "angular_velocity" : {
455
+ "x" : 0.0 ,
456
+ "y" : 0.0 ,
457
+ "z" : 0.0
458
+ },
459
+ "class" : " unknown" ,
460
+ "cog_offset" : {
461
+ "x" : 0.0 ,
462
+ "y" : 0.0 ,
463
+ "z" : 0.0
464
+ },
465
+ "dimensions" : {
466
+ "x" : 5.0 ,
467
+ "y" : 2.0 ,
468
+ "z" : 1.8
469
+ },
470
+ "exist_prob" : 1.0 ,
471
+ "id" : 0 ,
472
+ "pose" : {
473
+ "rotation" : {
474
+ "w" : 1.0 ,
475
+ "x" : 0.0 ,
476
+ "y" : 0.0 ,
477
+ "z" : 0.0
478
+ },
479
+ "translation" : {
480
+ "x" : 10.0 ,
481
+ "y" : 0.0 ,
482
+ "z" : 0.0
483
+ }
484
+ },
485
+ "type" : " unknown" ,
486
+ "velocity" : {
487
+ "x" : 0.0 ,
488
+ "y" : 0.0 ,
489
+ "z" : 0.0
490
+ },
491
+ "velocity_norm" : 0.0
492
+ }
493
+ ]
356
494
},
357
495
"cloe::gndtruth_lane_sensor" : {
358
496
"frustum" : {
514
652
"z" : 0.0
515
653
}
516
654
},
517
- "name" : " nop_object_sensor" ,
518
- "sensed_objects" : []
655
+ "name" : " minimator_object_sensor" ,
656
+ "sensed_objects" : [
657
+ {
658
+ "acceleration" : {
659
+ "x" : 0.0 ,
660
+ "y" : 0.0 ,
661
+ "z" : 0.0
662
+ },
663
+ "angular_velocity" : {
664
+ "x" : 0.0 ,
665
+ "y" : 0.0 ,
666
+ "z" : 0.0
667
+ },
668
+ "class" : " unknown" ,
669
+ "cog_offset" : {
670
+ "x" : 0.0 ,
671
+ "y" : 0.0 ,
672
+ "z" : 0.0
673
+ },
674
+ "dimensions" : {
675
+ "x" : 5.0 ,
676
+ "y" : 2.0 ,
677
+ "z" : 1.8
678
+ },
679
+ "exist_prob" : 1.0 ,
680
+ "id" : 0 ,
681
+ "pose" : {
682
+ "rotation" : {
683
+ "w" : 1.0 ,
684
+ "x" : 0.0 ,
685
+ "y" : 0.0 ,
686
+ "z" : 0.0
687
+ },
688
+ "translation" : {
689
+ "x" : 10.0 ,
690
+ "y" : 0.0 ,
691
+ "z" : 0.0
692
+ }
693
+ },
694
+ "type" : " unknown" ,
695
+ "velocity" : {
696
+ "x" : 0.0 ,
697
+ "y" : 0.0 ,
698
+ "z" : 0.0
699
+ },
700
+ "velocity_norm" : 0.0
701
+ }
702
+ ]
519
703
},
520
704
"cloe::gndtruth_lane_sensor" : {
521
705
"frustum" : {
Original file line number Diff line number Diff line change @@ -9,9 +9,37 @@ include(CloePluginSetup)
9
9
cloe_add_plugin(
10
10
TARGET ${PROJECT_NAME}
11
11
OUTPUT_NAME simulator_minimator
12
+ INCLUDE_DIRECTORIES
13
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
12
14
SOURCES
13
15
src/minimator.cpp
14
16
LINK_LIBRARIES
15
17
cloe::runtime
16
18
cloe::models
17
19
)
20
+
21
+ include (CTest)
22
+ if (BUILD_TESTING)
23
+ find_package (GTest REQUIRED)
24
+ include (GoogleTest)
25
+
26
+ set (test -minimator test -${PROJECT_NAME} )
27
+ add_executable (${test -minimator}
28
+ src/minimator_config_test.cpp
29
+ )
30
+ target_include_directories (${test -minimator}
31
+ PUBLIC
32
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
33
+ )
34
+ set_target_properties (${test -minimator} PROPERTIES
35
+ CXX_STANDARD 17
36
+ CXX_STANDARD_REQUIRED ON
37
+ )
38
+ target_link_libraries (${test -minimator}
39
+ GTest::gtest
40
+ GTest::gtest_main
41
+ cloe::runtime
42
+ cloe::models
43
+ )
44
+ gtest_add_tests(TARGET ${test -minimator})
45
+ endif ()
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class CloeSimulatorMinimator(ConanFile):
25
25
generators = "CMakeDeps" , "VirtualRunEnv"
26
26
no_copy_source = True
27
27
exports_sources = [
28
+ "include/*" ,
28
29
"src/*" ,
29
30
"CMakeLists.txt" ,
30
31
]
@@ -60,6 +61,8 @@ def build(self):
60
61
cm .configure ()
61
62
if self .should_build :
62
63
cm .build ()
64
+ if self .should_test :
65
+ cm .test ()
63
66
64
67
def package (self ):
65
68
cm = cmake .CMake (self )
You can’t perform that action at this time.
0 commit comments