TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
sensor_base.h
Go to the documentation of this file.
1#ifndef TINYURDF_SENSOR_BASE_H_
2#define TINYURDF_SENSOR_BASE_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include "object_base.h"
7#include "pose.h"
8
18template<class T>
19class SensorBase : public ObjectBase{
20public:
21 virtual void setRange(T& r) = 0;
22 virtual void getRange(T& r) = 0;
23 virtual void setUpdateRate(double ur) = 0 ;
24 virtual void getUpdateRate(double& ur) const = 0;
25 virtual void setOrigin(std::shared_ptr<Pose> o) = 0;
26 virtual void getOrigin(double* xyz) const = 0;
27protected:
29 ~SensorBase() override;
30 virtual void update(){};
31 virtual void reset(){};
32 virtual void get(T& o) const = 0;
33 virtual const char* getTypename() const = 0;
34};
35#endif // TINYURDF_SENSOR_BASE_H_
Definition object_base.h:11
Base class for sensors.
Definition sensor_base.h:19
virtual void getUpdateRate(double &ur) const =0
virtual void setUpdateRate(double ur)=0
virtual void setOrigin(std::shared_ptr< Pose > o)=0
virtual const char * getTypename() const =0
~SensorBase() override
virtual void get(T &o) const =0
virtual void getOrigin(double *xyz) const =0
virtual void setRange(T &r)=0
virtual void reset()
Definition sensor_base.h:31
virtual void getRange(T &r)=0
virtual void update()
Definition sensor_base.h:30