$darkmode
cloe_esmini::ESMiniEnvData Class Referenceabstract
Inheritance diagram for cloe_esmini::ESMiniEnvData:
Collaboration diagram for cloe_esmini::ESMiniEnvData:

Public Member Functions

 ESMiniEnvData (const std::string &name, double filter_dist)
 
virtual void step (const cloe::Sync &s)=0
 
virtual cloe::Duration 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 env_data_time_ = cloe::Duration(0)
 Simulation time from last processed data message.
 
cloe::Duration env_data_time_next_ = cloe::Duration(0)
 Expected simulation time for next data 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 ESMiniEnvData &s)
 

Constructor & Destructor Documentation

◆ ESMiniEnvData()

cloe_esmini::ESMiniEnvData::ESMiniEnvData ( const std::string &  name,
double  filter_dist 
)
inlineexplicit

Construct a new instance of ESMiniEnvData with the given name.

Member Function Documentation

◆ reset()

virtual void cloe_esmini::ESMiniEnvData::reset ( )
pure virtual

Reset the codec.

Discard received messages, clear data members, and implement sensor-specific reset steps.

Implemented in cloe_esmini::ESMiniOsiSensor.

◆ set_name()

virtual void cloe_esmini::ESMiniEnvData::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 cloe_esmini::ESMiniEnvData::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:

◆ step()

virtual void cloe_esmini::ESMiniEnvData::step ( const cloe::Sync s)
pure virtual

Process the incoming data.

Implemented in cloe_esmini::ESMiniOsiSensor.

◆ time()

virtual cloe::Duration cloe_esmini::ESMiniEnvData::time ( ) const
inlinevirtual

Return the simulation time of the last processed frame.


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