18 #ifndef HPP_CORE_PATH_HERMITE_HH 19 # define HPP_CORE_PATH_HERMITE_HH 22 # include <hpp/core/config.hh> 78 return createCopy (weak_.lock ());
87 return createCopy (weak_.lock (), constraints);
95 parameters_.row(1) = parameters_.row(0) + speed.transpose() / 3;
101 parameters_.row(2) = parameters_.row(3) - speed.transpose() / 3;
107 return 3 * (parameters_.row(1) - parameters_.row(0));
116 return 3 * (parameters_.row(3) - parameters_.row(2));
131 return hermiteLength_;
134 void computeHermiteLength ();
140 virtual std::ostream&
print (std::ostream &os)
const 142 os <<
"Hermite:" << std::endl;
144 os <<
"initial configuration: " << initial().transpose () << std::endl;
145 os <<
"final configuration: " << end().transpose () << std::endl;
174 HermiteWkPtr_t weak_;
180 #endif // HPP_CORE_PATH_HERMITE_HH boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
boost::shared_ptr< Hermite > HermitePtr_t
Definition: fwd.hh:226
vector_t v1() const
Definition: hermite.hh:114
void init(HermitePtr_t self)
const value_type & hermiteLength() const
Definition: hermite.hh:129
void v0(const vectorIn_t &speed)
Definition: hermite.hh:93
void v1(const vectorIn_t &speed)
Definition: hermite.hh:99
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:114
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition: fwd.hh:97
static HermitePtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, ConstraintSetPtr_t constraints)
Definition: hermite.hh:39
boost::shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
virtual Configuration_t initial() const
Get the initial configuration.
Definition: hermite.hh:119
static HermitePtr_t createCopy(const HermitePtr_t &path)
Definition: hermite.hh:52
pinocchio::vectorIn_t vectorIn_t
Definition: fwd.hh:202
Spline< BernsteinBasis, 3 > parent_t
Definition: hermite.hh:34
pinocchio::vector_t vector_t
Definition: fwd.hh:201
pinocchio::value_type value_type
Definition: fwd.hh:157
virtual std::ostream & print(std::ostream &os) const
virtual ~Hermite()
Destructor.
Definition: hermite.hh:37
Definition: hermite.hh:31
virtual std::ostream & print(std::ostream &os) const
Print path in a stream.
Definition: hermite.hh:140
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: hermite.hh:85
virtual PathPtr_t copy() const
Definition: hermite.hh:76
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
virtual Configuration_t end() const
Get the final configuration.
Definition: hermite.hh:124
vector_t v0() const
Definition: hermite.hh:105