コンテンツにスキップ

cpp_robotics::LinePath

More...

#include <line_path.hpp>

Public Types

Name
using VectorType Vector

Public Functions

Name
LinePath() =default
LinePath(const std::vector< Vector > & path)
void set_path(const std::vector< Vector > & path)
bool is_empty() const
size_t size() const
double length() const
double nearest_position(const Vector pos, double now_length =-1, double search_range =-1)
Vector position(double length) const

Detailed Description

template <class VectorType >
class cpp_robotics::LinePath;

Public Types Documentation

using Vector

using cpp_robotics::LinePath< VectorType >::Vector =  VectorType;

Public Functions Documentation

function LinePath

LinePath() =default

function LinePath

inline LinePath(
    const std::vector< Vector > & path
)

function set_path

inline void set_path(
    const std::vector< Vector > & path
)

function is_empty

inline bool is_empty() const

function size

inline size_t size() const

function length

inline double length() const

function nearest_position

inline double nearest_position(
    const Vector pos,
    double now_length =-1,
    double search_range =-1
)

function position

inline Vector position(
    double length
) const

Updated on 2024-05-28 at 06:55:39 +0000