33#include <NDEVR/Device.h>
56 virtual bool activated()
const {
return m_is_activated; };
65 virtual void setActivated(
bool is_active) { m_is_activated = is_active; }
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:540
A root class which describes some physical object, such as a Motor, Sensor, or Connection....
Definition Device.h:52
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:54
A RangeSensor is a Device that determines the distance of a target at a certian orientaton....
Definition RangeSensor.h:50
virtual fltp08 distance() const
Definition RangeSensor.h:58
fltp08 m_distance
Definition RangeSensor.h:78
virtual void setIntensity(fltp08 intensity)
Definition RangeSensor.h:62
virtual void updateModel()
RangeSensor(const Angle< fltp08 > &fov, const Model &name, ProgressInfo *log, QObject *parent=nullptr)
virtual void setDistance(fltp08 distance)
Definition RangeSensor.h:63
Vector< 2, Angle< fltp08 > > m_fov
Definition RangeSensor.h:76
bool m_low_visibility_mode
Definition RangeSensor.h:81
virtual void createLineModel(const RGBColor &color)
virtual void setActivated(bool is_active)
Definition RangeSensor.h:65
RangeSensorType m_type
Definition RangeSensor.h:79
virtual fltp08 intensity() const
Definition RangeSensor.h:57
virtual bool activated() const
Definition RangeSensor.h:56
bool m_is_activated
Definition RangeSensor.h:80
RangeSensor(const Model &name, ProgressInfo *log, QObject *parent=nullptr)
virtual bool supportsSetActivated() const
Definition RangeSensor.h:64
RangeSensor(const Vector< 2, Angle< fltp08 > > &fov, const Model &name, ProgressInfo *log, QObject *parent=nullptr)
virtual bool supportsLowVisibilityMode() const
Definition RangeSensor.h:61
virtual void createModel(const RGBColor &color)
fltp08 m_intensity
Definition RangeSensor.h:77
virtual bool lowVisibilityMode() const
Definition RangeSensor.h:59
virtual void createMaterial(const RGBColor &color)
virtual void setLowVisibilityMode(bool low_visibility)
Definition RangeSensor.h:60
RangeSensorType rangeSensorType()
Definition RangeSensor.h:71
virtual void createFanModel(const RGBColor &color)
virtual void measureDistance()
Definition RangeSensor.h:72
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
constexpr t_type distance(const t_vertex &vertex, const LineSegment< t_dims, t_type, t_vertex > &line)
Definition Distance.hpp:171
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
RangeSensorType
The type of a range sensor.
Definition RangeSensor.h:40
@ e_line
Definition RangeSensor.h:41
@ e_3d_fan
Definition RangeSensor.h:43
@ e_2d_fan
Definition RangeSensor.h:42