hpp-core
6.0.0
Implement basic classes for canonical path planning for kinematic chains.
|
#include <hpp/core/straight-path.hh>
Public Types | |
typedef Path | parent_t |
Public Member Functions | |
virtual | ~StraightPath () |
Destructor. More... | |
virtual PathPtr_t | copy () const |
virtual PathPtr_t | copy (const ConstraintSetPtr_t &constraints) const |
void | initialConfig (ConfigurationIn_t initial) |
void | endConfig (ConfigurationIn_t end) |
Configuration_t | initial () const |
Get the initial configuration. More... | |
Configuration_t | end () const |
Get the final configuration. More... | |
![]() | |
virtual | ~Path () |
Destructor. More... | |
template<class T > | |
shared_ptr< T > | as (void) |
Static cast into a derived type. More... | |
template<class T > | |
shared_ptr< const T > | as (void) const |
Static cast into a derived type. More... | |
PathPtr_t | extract (const interval_t &subInterval) const |
PathPtr_t | extract (const value_type &tmin, const value_type &tmax) const |
virtual PathPtr_t | reverse () const |
Configuration_t | eval (const value_type &time, bool &success) const |
Configuration at time. More... | |
bool | eval (ConfigurationOut_t result, const value_type &time) const |
Configuration at time. More... | |
bool | at (const value_type &time, ConfigurationOut_t result) const |
Get the configuration at a parameter without applying the constraints. More... | |
void | derivative (vectorOut_t result, const value_type &time, size_type order) const |
void | velocityBound (vectorOut_t result, const value_type &t0, const value_type &t1) const |
size_type | outputSize () const |
Get size of configuration space. More... | |
size_type | outputDerivativeSize () const |
Get size of velocity. More... | |
const interval_t & | timeRange () const |
Get interval of definition. More... | |
virtual value_type | length () const |
Get length of definition interval. More... | |
const ConstraintSetPtr_t & | constraints () const |
Get constraints the path is subject to. More... | |
const interval_t & | paramRange () const |
const TimeParameterizationPtr_t & | timeParameterization () const |
Get the time parameterization function. More... | |
void | timeParameterization (const TimeParameterizationPtr_t &tp, const interval_t &tr) |
Set the time parameterization function. More... | |
Static Public Member Functions | |
static StraightPathPtr_t | create (LiegroupSpacePtr_t space, vectorIn_t init, vectorIn_t end, interval_t interval, ConstraintSetPtr_t constraints=ConstraintSetPtr_t()) |
static StraightPathPtr_t | create (LiegroupElementConstRef init, LiegroupElementConstRef end, interval_t interval, ConstraintSetPtr_t constraints=ConstraintSetPtr_t()) |
static StraightPathPtr_t | create (const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, value_type length, ConstraintSetPtr_t constraints=ConstraintSetPtr_t()) |
static StraightPathPtr_t | create (const DevicePtr_t &device, ConfigurationIn_t init, ConfigurationIn_t end, interval_t interval, ConstraintSetPtr_t constraints=ConstraintSetPtr_t()) |
static StraightPathPtr_t | createCopy (const StraightPathPtr_t &path) |
static StraightPathPtr_t | createCopy (const StraightPathPtr_t &path, const ConstraintSetPtr_t &constraints) |
Protected Member Functions | |
virtual std::ostream & | print (std::ostream &os) const |
Print path in a stream. More... | |
StraightPath (LiegroupSpacePtr_t space, vectorIn_t init, vectorIn_t end, interval_t interval) | |
Constructor. More... | |
StraightPath (LiegroupSpacePtr_t space, vectorIn_t init, vectorIn_t end, interval_t interval, ConstraintSetPtr_t constraints) | |
Constructor. More... | |
StraightPath (const StraightPath &path) | |
Copy constructor. More... | |
StraightPath (const StraightPath &path, const ConstraintSetPtr_t &constraints) | |
Copy constructor with constraints. More... | |
void | init (StraightPathPtr_t self) |
virtual bool | impl_compute (ConfigurationOut_t result, value_type param) const |
Function evaluation without applying constraints. More... | |
virtual void | impl_derivative (vectorOut_t result, const value_type &t, size_type order) const |
Virtual implementation of derivative. More... | |
virtual void | impl_velocityBound (vectorOut_t result, const value_type &, const value_type &) const |
PathPtr_t | impl_extract (const interval_t &subInterval) const |
StraightPath () | |
![]() | |
Path (const interval_t &interval, size_type outputSize, size_type outputDerivativeSize, const ConstraintSetPtr_t &constraints) | |
Path (const interval_t &interval, size_type outputSize, size_type outputDerivativeSize) | |
Path (const Path &path) | |
Copy constructor. More... | |
Path (const Path &path, const ConstraintSetPtr_t &constraints) | |
Copy constructor with constraints. More... | |
void | init (const PathWkPtr_t &self) |
void | constraints (const ConstraintSetPtr_t &constraint) |
virtual void | checkPath () const |
Should be called by child classes after having init. More... | |
void | timeRange (const interval_t &timeRange) |
value_type | paramLength () const |
Configuration_t | configAtParam (const value_type ¶m, bool &success) const |
Path () | |
Protected Attributes | |
LiegroupSpacePtr_t | space_ |
Configuration_t | initial_ |
Configuration_t | end_ |
![]() | |
interval_t | paramRange_ |
Interval of parameters. More... | |
Linear interpolation between two configurations
Degrees of freedom are interpolated depending on the type of joint they parameterize:
|
inlinevirtual |
Destructor.
|
protected |
Constructor.
|
protected |
Constructor.
|
protected |
Copy constructor.
|
protected |
Copy constructor with constraints.
|
inlineprotected |
|
inlinevirtual |
Return a shared pointer to this
As StaightPath are immutable, and refered to by shared pointers, they do not need to be copied.
Implements hpp::core::Path.
Reimplemented in hpp::core::KinodynamicPath, and hpp::core::KinodynamicOrientedPath.
|
inlinevirtual |
Return a shared pointer to a copy of this and set constraints
constraints | constraints to apply to the copy |
Implements hpp::core::Path.
Reimplemented in hpp::core::KinodynamicPath, and hpp::core::KinodynamicOrientedPath.
|
static |
Create instance and return shared pointer
device | Robot corresponding to configurations |
init,end | Start and end configurations of the path |
interval | interval of definition. |
constraints | the path is subject to |
|
inlinestatic |
Create instance and return shared pointer
device | Robot corresponding to configurations |
init,end | Start and end configurations of the path |
length | Distance between the configurations. |
|
inlinestatic |
Create instance and return shared pointer
init,end | Start and end configurations of the path |
interval | interval of definition |
constraints | the path is subject to. |
|
inlinestatic |
Create instance and return shared pointer
init,end | Start and end configurations of the path, |
interval | interval of definition |
constraints | the path is subject to. |
|
inlinestatic |
Create copy and return shared pointer
path | path to copy |
|
inlinestatic |
Create copy and return shared pointer
path | path to copy |
constraints | the path is subject to |
|
inlinevirtual |
Get the final configuration.
Implements hpp::core::Path.
|
inline |
Modify end configuration
end | new end configuration |
|
protectedvirtual |
Function evaluation without applying constraints.
Implements hpp::core::Path.
Reimplemented in hpp::core::KinodynamicPath, and hpp::core::KinodynamicOrientedPath.
|
protectedvirtual |
Virtual implementation of derivative.
Reimplemented from hpp::core::Path.
|
protectedvirtual |
Extraction/Reversion of a sub-path
subInterval | interval of definition of the extract path If upper bound of subInterval is smaller than lower bound, result is reversed. |
Reimplemented from hpp::core::Path.
|
protectedvirtual |
Virtual implementation of velocityBound
param0,param1 | interval of parameter |
bound |
Reimplemented from hpp::core::Path.
|
inlineprotected |
|
inlinevirtual |
Get the initial configuration.
Implements hpp::core::Path.
|
inline |
Modify initial configuration
initial | new initial configuration |
|
protectedvirtual |
Print path in a stream.
Reimplemented from hpp::core::Path.
Reimplemented in hpp::core::KinodynamicPath, and hpp::core::KinodynamicOrientedPath.
|
protected |
|
protected |
|
protected |