Class trajectory

Inheritance Relationships

Base Types

  • public rpfsm::event_data

  • public rer::stringizable

Class Documentation

class trajectory : public rpfsm::event_data, public rer::stringizable

Trajectory = path3D + tracking where you are along it.

Public Functions

inline explicit trajectory(const config::trajectory_config *config)
int index_of(const rmath::vector3d &point) const

Get the index of the specified point along the path.

If the point is not on the path, -1 is returned.

inline bool is_complete(void) const

Returns TRUE iff the path has been completed (no more points) AND we are not looping.

inline void mark_progress(size_t amount)

Mark progress along the path by updating the current waypoint.

inline rmath::vector3d next_point(void) const

Get the next point along the path.

inline const path3D &path(void) const
inline size_t size(void) const
std::string to_str(void) const override