29 #ifndef HPP_CORE_INTERPOLATED_PATH_HH
30 #define HPP_CORE_INTERPOLATED_PATH_HH
55 typedef std::map<value_type, Configuration_t, std::less<value_type>,
56 Eigen::aligned_allocator<InterpolationPoint_t> >
102 return create(device, init, end,
interval_t(0, length));
114 return create(device, init, end,
interval_t(0, length), constraints);
133 const std::size_t& nbSamples);
158 return createCopy(weak_.lock(), constraints);
181 virtual std::ostream&
print(std::ostream& os)
const {
182 os <<
"InterpolatedPath:" << std::endl;
184 os <<
"initial configuration: " << initial().transpose() << std::endl;
185 os <<
"final configuration: " << end().transpose() << std::endl;
200 const std::size_t& nbSamples);
227 InterpolatedPathWkPtr_t weak_;
Definition: interpolated-path.hh:52
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, value_type length)
Definition: interpolated-path.hh:98
Configuration_t initial() const
Get the initial configuration.
Definition: interpolated-path.hh:172
void initCopy(InterpolatedPathPtr_t self)
static InterpolatedPathPtr_t createCopy(const InterpolatedPathPtr_t &path, const ConstraintSetPtr_t &constraints)
Definition: interpolated-path.hh:138
InterpolatedPath(const InterpolatedPath &path, const ConstraintSetPtr_t &constraints)
Copy constructor with constraints.
const InterpolationPoints_t & interpolationPoints() const
Definition: interpolated-path.hh:177
InterpolatedPath(const PathPtr_t &path, const DevicePtr_t &device, const std::size_t &nbSamples)
DIscretization of a given path.
void insert(const value_type &time, ConfigurationIn_t config)
Insert interpolation point.
Definition: interpolated-path.hh:167
PathPtr_t impl_extract(const interval_t &subInterval) const
static InterpolatedPathPtr_t create(const PathPtr_t &path, const DevicePtr_t &device, const std::size_t &nbSamples)
virtual ~InterpolatedPath()
Destructor.
Definition: interpolated-path.hh:61
virtual void impl_velocityBound(vectorOut_t result, const value_type &t0, const value_type &t1) const
static InterpolatedPathPtr_t createCopy(const InterpolatedPathPtr_t &path)
Definition: interpolated-path.hh:119
InterpolatedPath(const InterpolatedPath &path)
Copy constructor.
virtual void impl_derivative(vectorOut_t result, const value_type &t, size_type order) const
Virtual implementation of derivative.
Path parent_t
Definition: interpolated-path.hh:58
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, interval_t timeRange, ConstraintSetPtr_t constraints)
Definition: interpolated-path.hh:82
virtual PathPtr_t copy() const
Definition: interpolated-path.hh:151
void init(InterpolatedPathPtr_t self)
DevicePtr_t device() const
Return the internal robot.
std::pair< const value_type, Configuration_t > InterpolationPoint_t
Definition: interpolated-path.hh:54
virtual PathPtr_t reverse() const
InterpolatedPath(const DevicePtr_t &robot, ConfigurationIn_t init, ConfigurationIn_t end, interval_t timeRange, ConstraintSetPtr_t constraints)
Constructor with constraints.
std::map< value_type, Configuration_t, std::less< value_type >, Eigen::aligned_allocator< InterpolationPoint_t > > InterpolationPoints_t
Definition: interpolated-path.hh:57
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, interval_t timeRange)
Definition: interpolated-path.hh:67
virtual bool impl_compute(ConfigurationOut_t result, value_type param) const
Function evaluation without applying constraints.
static InterpolatedPathPtr_t create(const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, value_type length, ConstraintSetPtr_t constraints)
Definition: interpolated-path.hh:110
virtual std::ostream & print(std::ostream &os) const
Print path in a stream.
Definition: interpolated-path.hh:181
Configuration_t end() const
Get the final configuration.
Definition: interpolated-path.hh:175
InterpolatedPath(const DevicePtr_t &robot, ConfigurationIn_t init, ConfigurationIn_t end, interval_t timeRange)
Constructor.
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: interpolated-path.hh:157
virtual std::ostream & print(std::ostream &os) const
#define HPP_CORE_DLLAPI
Definition: config.hh:88
pinocchio::value_type value_type
Definition: fwd.hh:174
shared_ptr< InterpolatedPath > InterpolatedPathPtr_t
Definition: fwd.hh:211
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:222
pinocchio::ConfigurationOut_t ConfigurationOut_t
Definition: fwd.hh:109
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition: fwd.hh:108
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:175
pinocchio::size_type size_type
Definition: fwd.hh:173
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:107
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:134
shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:130
shared_ptr< Path > PathPtr_t
Definition: fwd.hh:187
Definition: bi-rrt-planner.hh:35