$darkmode
vtd::VtdSensorData Class Referenceabstract
Inheritance diagram for vtd::VtdSensorData:
Collaboration diagram for vtd::VtdSensorData:

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::Objectget_ego_object () const
 
const cloe::Objectsget_world_objects () const
 
double get_ego_steering_angle () const
 
const cloe::Frustumget_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::Objectego_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)
 

Constructor & Destructor Documentation

◆ VtdSensorData()

vtd::VtdSensorData::VtdSensorData ( const std::string &  name)
inlineexplicit

Construct a new instance of VtdSensorData with the given name.

Member Function Documentation

◆ reset()

virtual void vtd::VtdSensorData::reset ( )
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.

◆ set_name()

virtual void vtd::VtdSensorData::set_name ( const std::string &  name)
inlinevirtual

Set the name of the sensor.

The name is mainly used to improve readability of trace output so setting it is optional.

◆ set_reset_state()

virtual void vtd::VtdSensorData::set_reset_state ( )
inlinevirtual

Notify the codec that it should reset.

All messages with frame counter > 0 will be discarded in process() function calls.

Here is the caller graph for this function:

◆ simulation_time()

virtual cloe::Duration vtd::VtdSensorData::simulation_time ( ) const
inlinevirtual

Return the simulation time of the last processed frame.

◆ step()

virtual void vtd::VtdSensorData::step ( const cloe::Sync s)
pure virtual

Process the incoming data.

Implemented in vtd::VtdOsiSensor, and vtd::VtdOmniSensor.


The documentation for this class was generated from the following file: