File tree 2 files changed +18
-0
lines changed
models/include/cloe/component
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 28
28
#include < vector> // for vector<>
29
29
30
30
#include < cloe/component/ego_sensor.hpp> // for NopEgoSensor
31
+ #include < cloe/component/lane_sensor.hpp> // for NopLaneSensor
31
32
#include < cloe/component/latlong_actuator.hpp> // for LatLongActuator
32
33
#include < cloe/component/object_sensor.hpp> // for NopObjectSensor
33
34
#include < cloe/handler.hpp> // for ToJson
@@ -51,6 +52,9 @@ struct NopVehicle : public Vehicle {
51
52
CloeComponent::DEFAULT_WORLD_SENSOR);
52
53
this ->new_component (new LatLongActuator (),
53
54
CloeComponent::DEFAULT_LATLONG_ACTUATOR);
55
+ this ->new_component (new NopLaneSensor (),
56
+ CloeComponent::GROUNDTRUTH_LANE_SENSOR,
57
+ CloeComponent::DEFAULT_LANE_SENSOR);
54
58
// clang-format on
55
59
}
56
60
};
Original file line number Diff line number Diff line change @@ -62,6 +62,20 @@ class LaneBoundarySensor : public Component {
62
62
}
63
63
};
64
64
65
+ class NopLaneSensor : public LaneBoundarySensor {
66
+ public:
67
+ NopLaneSensor () : LaneBoundarySensor(" nop_lane_sensor" ) {}
68
+ virtual ~NopLaneSensor () = default ;
69
+ const LaneBoundaries& sensed_lane_boundaries () const override { return lane_boundaries_; }
70
+ const Frustum& frustum () const override { return frustum_; }
71
+ const Eigen::Isometry3d& mount_pose () const override { return mount_pose_; }
72
+
73
+ private:
74
+ LaneBoundaries lane_boundaries_;
75
+ Frustum frustum_;
76
+ Eigen::Isometry3d mount_pose_;
77
+ };
78
+
65
79
} // namespace cloe
66
80
67
81
#endif // CLOE_COMPONENT_LANE_SENSOR_HPP_
You can’t perform that action at this time.
0 commit comments