17 #ifndef GAZEBO_RENDERING_GPULASERDATAITERATOR_HH_
18 #define GAZEBO_RENDERING_GPULASERDATAITERATOR_HH_
76 public:
const std::unique_ptr<const GpuLaserData>
operator->()
const;
98 const float *_data,
const unsigned int _skip,
99 const unsigned int _rangeOffset,
100 const unsigned int _intensityOffset,
101 const unsigned int _horizontalResolution);
107 private:
unsigned int index = 0;
110 private:
const float *data =
nullptr;
113 private:
const unsigned int skip = 0;
116 private:
const unsigned int rangeOffset = 0;
119 private:
const unsigned int intensityOffset = 0;
122 private:
const unsigned int horizontalResolution = 0;
unsigned int reading
the index of areading in a plane or cone[0, hRes)
Definition: GpuLaserDataIterator.hh:43
double range
The distance of the reading in meters.
Definition: GpuLaserDataIterator.hh:31
struct containing info about a single ray measurement
Definition: GpuLaserDataIterator.hh:27
const GpuLaserData operator*() const
Dereference operator *iter.
Definition: GpuLaserDataIteratorImpl.hh:47
double intensity
The intensity reading.
Definition: GpuLaserDataIterator.hh:35
GpuLaserDataIterator< F > & operator++()
Advance iterator to next reading (prefix: ++it)
Definition: GpuLaserDataIteratorImpl.hh:70
GpuLaserDataIterator(const unsigned int _index, const float *_data, const unsigned int _skip, const unsigned int _rangeOffset, const unsigned int _intensityOffset, const unsigned int _horizontalResolution)
contstruct an iterator to a specified index
Definition: GpuLaserDataIteratorImpl.hh:100
~GpuLaserDataIterator()
Destructor.
Definition: GpuLaserDataIteratorImpl.hh:27
bool operator==(const GpuLaserDataIterator &_rvalue) const
Operator ==.
Definition: GpuLaserDataIteratorImpl.hh:33
GpuLaserDataIterator< F > & operator--()
Move itereator to previous (prefix: –it)
Definition: GpuLaserDataIteratorImpl.hh:85
const std::unique_ptr< const GpuLaserData > operator->() const
Dereference operator iter->
Definition: GpuLaserDataIteratorImpl.hh:63
const Bidirectional iterator for laser data
Definition: GpuLaserDataIterator.hh:53
friend F
Definition: GpuLaserDataIterator.hh:55
unsigned int beam
Which plane or cone this reading belongs to [0, vRes)
Definition: GpuLaserDataIterator.hh:39
bool operator!=(const GpuLaserDataIterator &_rvalue) const
Operator !=.
Definition: GpuLaserDataIteratorImpl.hh:40