9 template<
size_t state_dimensions>
11 using Vector = Eigen::Matrix<double, state_dimensions, 1>;
14 LinearPath() : start_(Vector::Zero()), end_(Vector::Zero()) {}
22 start_ + s / this->
length() * (end_ - start_),
23 (end_ - start_) / this->
length(),
29 [[nodiscard]]
inline double length()
const override {
30 return (end_ - start_).norm();
34 return Vector::Zero();
38 return Vector::Zero();
45 inline Vector
end()
const {
Definition: linear_path.hpp:10
PathStep< state_dimensions > operator()(double s) const override
Definition: linear_path.hpp:20
double length() const override
Definition: linear_path.hpp:29
LinearPath(const LinearPath< state_dimensions > &linear_path)
Definition: linear_path.hpp:16
LinearPath()
Definition: linear_path.hpp:14
LinearPath(const Vector &start, const Vector &end)
Definition: linear_path.hpp:18
Vector end() const
Definition: linear_path.hpp:45
Vector max_dddq() const override
Definition: linear_path.hpp:37
Vector start() const
Definition: linear_path.hpp:41
Vector max_ddq() const override
Definition: linear_path.hpp:33
Definition: gripper.cpp:3