37 for (
size_t i = 1; i <
path_.size(); ++i)
43 "CbFollowNedPath: vertices %zu and %zu are closer than minSegmentLength (%.2f m) - the "
44 "follower will merge them and reachedCount() will be off by one from there on",
59 return std::min(reached,
path_.size());
CbFollowNedPath(std::vector< NedPoint > path={}, PathFollowerParams follower={})
size_t reachedCount() const
const std::vector< NedPoint > & path() const
void setPath(std::vector< NedPoint > path)
std::vector< NedPoint > path_
size_t carrotVertexIndex() const
PathFollowerParams followerParams_
virtual rclcpp::Logger getLogger() const
float nedDistance(const NedPoint &a, const NedPoint &b)
bool prependCurrentPosition