TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
SensorBase< T > Class Template Referenceabstract

Base class for sensors. More...

#include <sensor_base.h>

Inheritance diagram for SensorBase< T >:
[legend]
Collaboration diagram for SensorBase< T >:
[legend]

Public Member Functions

virtual void setRange (T &r)=0
 
virtual void getRange (T &r)=0
 
virtual void setUpdateRate (double ur)=0
 
virtual void getUpdateRate (double &ur) const =0
 
virtual void setOrigin (std::shared_ptr< Pose > o)=0
 
virtual void getOrigin (double *xyz) const =0
 
- Public Member Functions inherited from ObjectBase
virtual void print (std::ostream &os)=0
 
virtual const char * getTypename ()=0
 
virtual bool empty () const =0
 
virtual bool isA (const char *name)=0
 
virtual void clear ()=0
 

Protected Member Functions

 SensorBase ()
 
 ~SensorBase () override
 
virtual void update ()
 
virtual void reset ()
 
virtual void get (T &o) const =0
 
virtual const char * getTypename () const =0
 
- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 

Detailed Description

template<class T>
class SensorBase< T >

Base class for sensors.

Template Parameters
T
  • numeric (double, int, bool) for distance, pressure, or binary states.
  • structured (Pose, std::array, std::vector) for position and vector data.
  • advanced (Image, PointCloud, Audio) for visual, depth, and audio data.
  • domain-specific (RadarData, SpectralData, Event) for specialized sensor outputs.
  • time-series (TimeSeries, StreamingData) for continuous sensor measurements.

Constructor & Destructor Documentation

◆ SensorBase()

template<class T >
SensorBase< T >::SensorBase ( )
protected

◆ ~SensorBase()

template<class T >
SensorBase< T >::~SensorBase ( )
overrideprotected

Member Function Documentation

◆ get()

template<class T >
virtual void SensorBase< T >::get ( T &  o) const
protectedpure virtual

Implemented in Camera.

◆ getOrigin()

template<class T >
virtual void SensorBase< T >::getOrigin ( double *  xyz) const
pure virtual

Implemented in Camera.

◆ getRange()

template<class T >
virtual void SensorBase< T >::getRange ( T &  r)
pure virtual

Implemented in Camera.

◆ getTypename()

template<class T >
virtual const char * SensorBase< T >::getTypename ( ) const
protectedpure virtual

◆ getUpdateRate()

template<class T >
virtual void SensorBase< T >::getUpdateRate ( double &  ur) const
pure virtual

Implemented in Camera.

◆ reset()

template<class T >
virtual void SensorBase< T >::reset ( )
inlineprotectedvirtual

Reimplemented in Camera, and RaySensor.

◆ setOrigin()

template<class T >
virtual void SensorBase< T >::setOrigin ( std::shared_ptr< Pose o)
pure virtual

Implemented in Camera.

◆ setRange()

template<class T >
virtual void SensorBase< T >::setRange ( T &  r)
pure virtual

Implemented in Camera.

◆ setUpdateRate()

template<class T >
virtual void SensorBase< T >::setUpdateRate ( double  ur)
pure virtual

Implemented in Camera.

◆ update()

template<class T >
virtual void SensorBase< T >::update ( )
inlineprotectedvirtual

Reimplemented in Camera, and RaySensor.


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