Beispiel #1
0
 void update()
 {
     qrk::LockGuard guard(urg_mutex);
     urg.capture(data, &timestamp);
     
     vector<float> angles;
     for (int i=0; i<data.size(); i++) {
         angles.push_back( urg.index2rad(i));
     }
     
     urg_data.setData(data);
     urg_data.setDataAngles(angles);
     
 }
Beispiel #2
0
 inline double index2rad(const int index) const { return urg.index2rad(index); }
Beispiel #3
0
 inline double maxScanAngle() const { return urg.index2rad(urg.maxScanLines()); }