File tree 1 file changed +0
-21
lines changed
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 38
38
39
39
namespace cloe_esmini {
40
40
41
- // TODO(tobias): This should eventually be fixed in ESMini.
42
- void fix_esmini_osi_ground_truth (osi3::GroundTruth& gt) {
43
- // Fix moving objects.
44
- for (int i = 0 ; i < gt.moving_object_size (); ++i) {
45
- osi3::MovingObject* obj = gt.mutable_moving_object (i);
46
- if (obj->has_vehicle_attributes ()) {
47
- // Fix wrong sign of esmini bbcenter_to_rear output.
48
- auto vec = obj->mutable_vehicle_attributes ()->mutable_bbcenter_to_rear ();
49
- vec->set_x (-1.0 * vec->x ());
50
- vec->set_y (-1.0 * vec->y ());
51
- vec->set_z (-1.0 * vec->z ());
52
- // Fix wrong object reference point z-coordinate: Should be bbcenter, not street level.
53
- if (obj->has_base ()) {
54
- auto pos = obj->mutable_base ()->mutable_position ();
55
- pos->set_z (pos->z () - vec->z ());
56
- }
57
- }
58
- }
59
- }
60
-
61
41
class ESMiniOsiReceiver : public cloe ::utility::OsiTransceiver {
62
42
public:
63
43
~ESMiniOsiReceiver () override = default ;
@@ -126,7 +106,6 @@ class ESMiniOsiReceiver : public cloe::utility::OsiTransceiver {
126
106
if (!gt.has_timestamp ()) {
127
107
throw cloe::ModelError (" ESMiniOsiSensor: No timestamp in GroundTruth." );
128
108
}
129
- fix_esmini_osi_ground_truth (gt);
130
109
msgs.push_back (std::make_shared<osi3::GroundTruth>(std::move (gt)));
131
110
}
132
111
}
You can’t perform that action at this time.
0 commit comments