18 #ifndef HPP_CORE_INTERPOLATED_PATH_HH 19 # define HPP_CORE_INTERPOLATED_PATH_HH 22 # include <hpp/core/config.hh> 45 typedef std::map <value_type, Configuration_t, std::less <value_type>,
80 timeRange, constraints);
128 const DevicePtr_t& device,
const std::size_t& nbSamples);
148 return createCopy (weak_.lock ());
157 return createCopy (weak_.lock (), constraints);
168 configs_.insert (InterpolationPoint_t (time, config));
174 return configs_.begin ()->second;
180 return configs_.rbegin ()->second;
190 virtual std::ostream&
print (std::ostream &os)
const 192 os <<
"InterpolatedPath:" << std::endl;
194 os <<
"initial configuration: " << initial().transpose () << std::endl;
195 os <<
"final configuration: " << end().transpose () << std::endl;
210 const std::size_t& nbSamples);
228 virtual void impl_velocityBound (
vectorOut_t result,
236 InterpolationPoints_t configs_;
237 InterpolatedPathWkPtr_t weak_;
242 #endif // HPP_CORE_INTERPOLATED_PATH_HH boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
virtual ~InterpolatedPath()
Destructor.
Definition: interpolated-path.hh:50
Configuration_t initial() const
Get the initial configuration.
Definition: interpolated-path.hh:172
std::pair< const value_type, Configuration_t > InterpolationPoint_t
Definition: interpolated-path.hh:44
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:114
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition: fwd.hh:97
virtual std::ostream & print(std::ostream &os) const
Print path in a stream.
Definition: interpolated-path.hh:190
void init(InterpolatedPathPtr_t self)
static InterpolatedPathPtr_t createCopy(const InterpolatedPathPtr_t &path)
Definition: interpolated-path.hh:114
boost::shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:158
Definition: interpolated-path.hh:41
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
pinocchio::ConfigurationOut_t ConfigurationOut_t
Definition: fwd.hh:98
pinocchio::size_type size_type
Definition: fwd.hh:156
void initCopy(InterpolatedPathPtr_t self)
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, interval_t timeRange)
Definition: interpolated-path.hh:56
Configuration_t end() const
Get the final configuration.
Definition: interpolated-path.hh:178
Path parent_t
Definition: interpolated-path.hh:47
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: interpolated-path.hh:155
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, interval_t timeRange, ConstraintSetPtr_t constraints)
Definition: interpolated-path.hh:73
virtual PathPtr_t copy() const
Definition: interpolated-path.hh:146
boost::shared_ptr< InterpolatedPath > InterpolatedPathPtr_t
Definition: fwd.hh:192
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, value_type length)
Definition: interpolated-path.hh:90
pinocchio::value_type value_type
Definition: fwd.hh:157
std::map< value_type, Configuration_t, std::less< value_type >, Eigen::aligned_allocator< InterpolationPoint_t > > InterpolationPoints_t
Definition: interpolated-path.hh:46
virtual std::ostream & print(std::ostream &os) const
void insert(const value_type &time, ConfigurationIn_t config)
Insert interpolation point.
Definition: interpolated-path.hh:166
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, value_type length, ConstraintSetPtr_t constraints)
Definition: interpolated-path.hh:103
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:203
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
const InterpolationPoints_t & interpolationPoints() const
Definition: interpolated-path.hh:183