Go to the documentation of this file.
6 #ifndef CNOID_BODY_RANGE_SENSOR_H
7 #define CNOID_BODY_RANGE_SENSOR_H
12 #include "exportdecl.h"
24 virtual const char* typeName()
const override;
26 virtual void copyStateFrom(
const DeviceState& other)
override;
28 virtual void forEachActualType(std::function<
bool(
const std::type_info& type)> func)
override;
29 virtual void clearState()
override;
30 virtual bool on()
const override;
31 virtual void on(
bool on)
override;
35 double yawStep()
const {
return yawStep_; }
37 int numYawSamples()
const;
43 int numPitchSamples()
const;
66 RangeData& rangeData();
67 RangeData& newRangeData();
76 void setRangeData(std::shared_ptr<RangeData>& rangeData);
78 void clearRangeData();
83 double delay()
const {
return delay_; }
86 virtual int stateSize()
const override;
87 virtual const double* readState(
const double* buf)
override;
88 virtual double* writeState(
double* out_buf)
const override;
90 bool readSpecifications(
const Mapping* info);
91 bool writeSpecifications(
Mapping* info)
const;
98 bool isRangeDataStateClonable_;
107 std::shared_ptr<RangeData> rangeData_;
109 void copyRangeSensorStateFrom(
const RangeSensor& other);
double scanRate() const
Definition: RangeSensor.h:50
void setRangeDataStateClonable(bool on)
Definition: RangeSensor.h:58
const RangeData & constRangeData() const
Definition: RangeSensor.h:65
Definition: ValueTree.h:253
double pitchRange() const
Definition: RangeSensor.h:39
double minDistance() const
Definition: RangeSensor.h:47
std::shared_ptr< RangeData > sharedRangeData() const
Definition: RangeSensor.h:69
void setYawRange(double theta)
Definition: RangeSensor.h:34
double pitchStep() const
Definition: RangeSensor.h:41
void setFrameRate(double r)
Definition: RangeSensor.h:54
Definition: Referenced.h:103
double delay() const
Definition: RangeSensor.h:83
void setYawStep(double s)
Definition: RangeSensor.h:36
void setMinDistance(double d)
Definition: RangeSensor.h:48
double yawRange() const
Definition: RangeSensor.h:33
void setPitchRange(double theta)
Definition: RangeSensor.h:40
void setMaxDistance(double d)
Definition: RangeSensor.h:46
Definition: AbstractSceneLoader.h:11
Definition: CloneMap.h:13
void setDelay(double time)
Definition: RangeSensor.h:84
std::vector< double > RangeData
Definition: RangeSensor.h:56
double frameRate() const
Definition: RangeSensor.h:53
Definition: Referenced.h:54
ref_ptr< RangeSensor > RangeSensorPtr
Definition: RangeSensor.h:112
void setPitchStep(double s)
Definition: RangeSensor.h:42
void setScanRate(double r)
Definition: RangeSensor.h:51
Definition: RangeSensor.h:18
double yawStep() const
Definition: RangeSensor.h:35
double maxDistance() const
Definition: RangeSensor.h:45
bool isRangeDataStateClonable() const
Definition: RangeSensor.h:59
const RangeData & rangeData() const
Definition: RangeSensor.h:64