void update() { qrk::LockGuard guard(urg_mutex); urg.capture(data, ×tamp); 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); }
inline double index2rad(const int index) const { return urg.index2rad(index); }
inline double maxScanAngle() const { return urg.index2rad(urg.maxScanLines()); }