$darkmode
cloe::EgoSensor Class Referenceabstract
Inheritance diagram for cloe::EgoSensor:
Collaboration diagram for cloe::EgoSensor:

Public Member Functions

virtual const Objectsensed_state () const =0
 
virtual double wheel_steering_angle () const =0
 
virtual double steering_wheel_speed () const =0
 
fable::Json active_state () const override
 
 Component (const std::string &name, const std::string &description="")
 
 Component (std::string &&name, std::string &&description="")
 
- Public Member Functions inherited from cloe::Component
 Component (const std::string &name, const std::string &description="")
 
 Component (std::string &&name, std::string &&description="")
 
uint64_t id () const
 
template<typename T >
T * as ()
 
Duration process (const Sync &sync) override
 
void reset () override
 
void abort () override
 
- Public Member Functions inherited from cloe::Model
virtual ~Model () noexcept=default
 
virtual Duration resolution () const
 
virtual bool is_connected () const
 
virtual bool is_operational () const
 
virtual void connect ()
 
virtual void disconnect ()
 
virtual void enroll (Registrar &)
 
virtual void start (const Sync &)
 
virtual void pause (const Sync &)
 
virtual void resume (const Sync &)
 
virtual void stop (const Sync &)
 
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
- Public Member Functions inherited from cloe::Entity
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
const std::string & name () const
 
void set_name (std::string name)
 
const std::string & description () const
 
void set_description (std::string desc)
 

Additional Inherited Members

- Protected Member Functions inherited from cloe::Entity
virtual Logger logger () const
 
- Protected Attributes inherited from cloe::Model
bool connected_ {false}
 
bool operational_ {false}
 
- Protected Attributes inherited from cloe::Entity
std::string name_
 
std::string desc_
 

Member Function Documentation

◆ active_state()

fable::Json cloe::EgoSensor::active_state ( ) const
inlineoverridevirtual

Return sensor state as JSON.

Implements cloe::Component.

Here is the call graph for this function:

◆ sensed_state()

virtual const Object& cloe::EgoSensor::sensed_state ( ) const
pure virtual

Return the sensed ego state.

  • The object's properties, such as velocity and acceleration, are in absolute coordinates.
  • The returned pointer is invalid after clear_cache is called.
  • The EgoSensor that returns the pointer manages the memory.

Implemented in minimator::MinimatorEgoSensor, cloe_esmini::ESMiniEgoSensor, vtd::VtdEgoSensor, cloe::utility::EgoSensorCanon, and cloe::NopEgoSensor.

Here is the caller graph for this function:

◆ steering_wheel_speed()

virtual double cloe::EgoSensor::steering_wheel_speed ( ) const
pure virtual

Return the speed of the steering wheel rotation in radians/s.

Positive values indicate clockwise rotation from the perspective of the driver.

Implemented in minimator::MinimatorEgoSensor, cloe_esmini::ESMiniEgoSensor, vtd::VtdEgoSensor, cloe::utility::EgoSensorCanon, and cloe::NopEgoSensor.

◆ wheel_steering_angle()

virtual double cloe::EgoSensor::wheel_steering_angle ( ) const
pure virtual

Return the front left wheel steering angle in radians.

Implemented in minimator::MinimatorEgoSensor, cloe_esmini::ESMiniEgoSensor, vtd::VtdEgoSensor, cloe::utility::EgoSensorCanon, and cloe::NopEgoSensor.

Here is the caller graph for this function:

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