$darkmode
Public Member Functions | |
| VtdSensorData (const std::string &name) | |
| virtual void | step (const cloe::Sync &s)=0 |
| virtual cloe::Duration | simulation_time () const |
| virtual void | set_name (const std::string &name) |
| virtual void | reset ()=0 |
| virtual void | set_reset_state () |
| const cloe::Object & | get_ego_object () const |
| const cloe::Objects & | get_world_objects () const |
| double | get_ego_steering_angle () const |
| const cloe::Frustum & | get_frustum () const |
| const Eigen::Isometry3d & | get_mount_pose () const |
| const cloe::LaneBoundaries & | get_lane_boundaries () |
| void | clear_cache () |
Protected Attributes | |
| std::string | name_ = "default_sensor" |
| Human readable name. | |
| bool | restart_ = false |
| Indicates whether reset has been requested. | |
| cloe::Duration | simulation_time_ = cloe::Duration(0) |
| Simulation time from last processed sensor message. | |
| Eigen::Isometry3d | mount_ |
| Sensor mounting position and orientation. | |
| cloe::Frustum | frustum_ |
| Sensor frustum information. | |
| cloe::Objects | world_objects_ |
| World objects from last processed frame. | |
| std::shared_ptr< cloe::Object > | ego_object_ |
| ego object information from last processed frame. | |
| double | ego_steering_angle_ {0.0} |
| Ego front left wheel steering angle from last processed frame. | |
| cloe::LaneBoundaries | lanes_ |
| Lane id-to-boundary-map. | |
Friends | |
| void | to_json (cloe::Json &j, const VtdSensorData &s) |
|
inlineexplicit |
Construct a new instance of VtdSensorData with the given name.
|
pure virtual |
Reset the codec.
Discard received messages, clear data members, and implement sensor-specific reset steps.
Implemented in vtd::TaskControl, vtd::VtdOsiSensor, and vtd::VtdOmniSensor.
|
inlinevirtual |
Set the name of the sensor.
The name is mainly used to improve readability of trace output so setting it is optional.
|
inlinevirtual |
Notify the codec that it should reset.
All messages with frame counter > 0 will be discarded in process() function calls.
|
inlinevirtual |
Return the simulation time of the last processed frame.
|
pure virtual |
Process the incoming data.
Implemented in vtd::VtdOsiSensor, and vtd::VtdOmniSensor.