Viewer is ready to go, I think
This commit is contained in:
@@ -86,11 +86,16 @@ private:
|
||||
PlaneMap *pmap_;
|
||||
std::string plane_;
|
||||
double x_, y_, z_;
|
||||
int64_t id_;
|
||||
|
||||
public:
|
||||
PlaneItem();
|
||||
~PlaneItem();
|
||||
|
||||
// You may modify the ID at any time.
|
||||
void set_id(int64_t id) { id_ = id; }
|
||||
|
||||
int64_t id() const { return id_; }
|
||||
const std::string &plane() const { return plane_; }
|
||||
const double x() const { return x_; }
|
||||
const double y() const { return y_; }
|
||||
@@ -111,10 +116,11 @@ private:
|
||||
void insert(const std::string &plane, int64_t cell, PlaneItem *client);
|
||||
|
||||
public:
|
||||
using IdVec = std::vector<int64_t>;
|
||||
PlaneMap();
|
||||
~PlaneMap();
|
||||
void track(PlaneItem *item);
|
||||
EltVec scan_radius(const std::string &plane, double x, double y, double radius) const;
|
||||
IdVec scan_radius(const std::string &plane, double x, double y, double radius) const;
|
||||
|
||||
private:
|
||||
// unit testing stuff.
|
||||
|
||||
Reference in New Issue
Block a user