19 #ifndef SNARK_SENSORS_VELODYNE_THIN_SCAN
20 #define SNARK_SENSORS_VELODYNE_THIN_SCAN
22 #include <snark/sensors/velodyne/packet.h>
24 namespace snark {
namespace velodyne {
namespace thin {
30 void thin( velodyne::packet& packet,
double rate,
double angularSpeed );
31 bool empty()
const {
return m_empty; }
33 enum { m_size = 12 * 32 };
39 index() : idx( 0 ), block( 0 ), laser( 0 ) {}
40 const index& operator++()
46 if( laser < 32 ) { --block; }
else { laser = 0; ++block; }
54 bool operator==(
const index& rhs )
const {
return idx == rhs.idx; }
59 unsigned int m_output;
60 bool m_outputCurrentscan;
67 #endif // SNARK_SENSORS_VELODYNE_THIN_SCAN