19 #ifndef GAZEBO_RENDERING_GPULASERDATAITERATORIMPL_HH_
20 #define GAZEBO_RENDERING_GPULASERDATAITERATORIMPL_HH_
36 return this->index == _rvalue.index;
43 return this->index != _rvalue.index;
51 this->data[this->index * this->skip + this->rangeOffset],
53 this->data[this->index * this->skip + this->intensityOffset],
55 index / this->horizontalResolution,
57 index % this->horizontalResolution,
62 const std::unique_ptr<const GpuLaserData>
65 return std::unique_ptr<const GpuLaserData>(
101 const float *_data,
const unsigned int _skip,
unsigned int _rangeOffset,
102 const unsigned int _intensityOffset,
103 const unsigned int _horizontalResolution) : index(_index), data(_data),
104 skip(_skip), rangeOffset(_rangeOffset),
105 intensityOffset(_intensityOffset),
106 horizontalResolution(_horizontalResolution)
struct containing info about a single ray measurement
Definition: GpuLaserDataIterator.hh:27
const GpuLaserData operator*() const
Dereference operator *iter.
Definition: GpuLaserDataIteratorImpl.hh:47
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
bool operator!=(const GpuLaserDataIterator &_rvalue) const
Operator !=.
Definition: GpuLaserDataIteratorImpl.hh:40