Struct KPIECE1::CloseSample

Nested Relationships

This struct is a nested type of Class KPIECE1.

Struct Documentation

struct CloseSample

Information about a known good sample (closer to the goal than others)

Public Functions

inline CloseSample(Grid::Cell *c, Motion *m, double d)

Constructor fully initializes the content of this structure.

inline bool operator<(const CloseSample &other) const

Sort samples in accordance to their distance to the goal.

Public Members

Grid::Cell *cell

The cell of the motion that is close to the goal.

Motion *motion

The motion that is close to the goal.

double distance

The distance to the goal. This value is increased over time, as the number of selections for this sample increases.