Takes an other cspace and scales its' dimensions.
More...
#include <RobotComponents/components/MotionPlanning/CSpace/ScaledCSpace.h>
|
| CSpaceBasePtr | clone (const Ice::Current &=Ice::emptyCurrent) override |
| |
| Ice::Long | getDimensionality (const Ice::Current &=Ice::emptyCurrent) const override |
| |
| FloatRangeSeq | getDimensionsBounds (const Ice::Current &=Ice::emptyCurrent) const override |
| |
| Ice::FloatSeq | getScalingFactors (const ::Ice::Current &=Ice::emptyCurrent) override |
| |
| void | initCollisionTest (const Ice::Current &=Ice::emptyCurrent) override |
| | Initializes the collision check. More...
|
| |
| bool | isCollisionFree (const ::std::pair< const Ice::Float *, const Ice::Float * > &cfg, const Ice::Current &=Ice::emptyCurrent) override |
| |
| bool | isCollisionFree (const ::std::pair< const Ice::Float *, const Ice::Float * > &config, const Ice::Current &=Ice::emptyCurrent) override=0 |
| |
| virtual bool | isCollisionFree (const Ice::Float *first, const Ice::Float *last) |
| |
| virtual bool | isCollisionFree (const VectorXf &config) |
| |
| virtual void | scaleConfig (VectorXf &config) const |
| |
| | ScaledCSpace (const CSpaceBasePtr &cspace, const Ice::FloatSeq &scale) |
| | ctor. More...
|
| |
| virtual void | scalePath (Path &path) const |
| |
| virtual void | unscaleConfig (VectorXf &config) const |
| |
| virtual void | unscalePath (Path &path) const |
| |
| virtual void | unscalePath (PathWithCost &path) const |
| |
| virtual void | unscalePath (VectorXfSeq &nodes) const |
| |
| | CSpaceAdaptor (CSpaceBasePtr originalCSpace) |
| |
| CSpaceBasePtr | getOriginalCSpace (const Ice::Current &=Ice::emptyCurrent) const override |
| |
| void | initCollisionTest (const Ice::Current &=Ice::emptyCurrent) override |
| | Initializes collision checking. More...
|
| |
| virtual bool | isCollisionFree (const Ice::Float *first, const Ice::Float *last) |
| |
| virtual bool | isCollisionFree (const VectorXf &config) |
| |
| bool | isValidConfiguration (const ::std::pair< const Ice::Float *, const Ice::Float * > &config, const Ice::Current &=Ice::emptyCurrent) const override |
| |
| virtual bool | isValidConfiguration (const VectorXf &config) const |
| |
| virtual bool | usesInternalScaling () |
| |
Takes an other cspace and scales its' dimensions.
Can be used when lage translations and rotations are planned at the same time.
Definition at line 44 of file ScaledCSpace.h.
◆ ScaledCSpace() [1/2]
| ScaledCSpace |
( |
const CSpaceBasePtr & |
cspace, |
|
|
const Ice::FloatSeq & |
scale |
|
) |
| |
ctor.
- Parameters
-
| cspace | The cspace to scale. |
| scale | The dimensions' scaling factors. |
Definition at line 34 of file ScaledCSpace.cpp.
◆ ScaledCSpace() [2/2]
Default ctor.
Used for ice factories.
◆ clone()
| CSpaceBasePtr clone |
( |
const Ice::Current & |
= Ice::emptyCurrent | ) |
|
|
overridevirtual |
◆ getDimensionality()
| Ice::Long getDimensionality |
( |
const Ice::Current & |
= Ice::emptyCurrent | ) |
const |
|
inlineoverride |
◆ getDimensionsBounds()
| FloatRangeSeq getDimensionsBounds |
( |
const Ice::Current & |
= Ice::emptyCurrent | ) |
const |
|
override |
◆ getScalingFactors()
| Ice::FloatSeq getScalingFactors |
( |
const ::Ice::Current & |
= Ice::emptyCurrent | ) |
|
|
inlineoverride |
- Returns
- The dimensions' scaling factors.
Definition at line 60 of file ScaledCSpace.h.
◆ initCollisionTest()
| void initCollisionTest |
( |
const Ice::Current & |
= Ice::emptyCurrent | ) |
|
|
inlineoverride |
◆ isCollisionFree() [1/4]
| bool isCollisionFree |
( |
const ::std::pair< const Ice::Float *, const Ice::Float * > & |
cfg, |
|
|
const Ice::Current & |
= Ice::emptyCurrent |
|
) |
| |
|
overridevirtual |
- Parameters
-
| cfg | The configuration to check. |
- Returns
- Checks whether the given configuration is collision free.
Implements CSpace.
Definition at line 107 of file ScaledCSpace.cpp.
◆ isCollisionFree() [2/4]
- Parameters
-
| config | The config to check. |
- Returns
- Whether the given configuration is collision free.
◆ isCollisionFree() [3/4]
| virtual bool isCollisionFree |
|
inline |
- Parameters
-
| first | The configuration's first element. |
| last | The configuration's last element. |
- Returns
- Whether the given configuration [first,last) is collision free.
Definition at line 90 of file CSpace.h.
◆ isCollisionFree() [4/4]
| virtual bool isCollisionFree |
|
inline |
- Parameters
-
| config | The config to check. (as armarx::VectorXf) |
- Returns
- Whether the given configuration is collision free.
Definition at line 111 of file CSpace.h.
◆ scaleConfig()
| void scaleConfig |
( |
VectorXf & |
config | ) |
const |
|
virtual |
◆ scalePath()
| void scalePath |
( |
Path & |
path | ) |
const |
|
virtual |
◆ unscaleConfig()
| void unscaleConfig |
( |
VectorXf & |
config | ) |
const |
|
virtual |
- Parameters
-
- Returns
- Returns the unscaled version of the configuration.
Definition at line 60 of file ScaledCSpace.cpp.
◆ unscalePath() [1/3]
| void unscalePath |
( |
Path & |
path | ) |
const |
|
virtual |
◆ unscalePath() [2/3]
| void unscalePath |
( |
PathWithCost & |
path | ) |
const |
|
virtual |
◆ unscalePath() [3/3]
| void unscalePath |
( |
VectorXfSeq & |
nodes | ) |
const |
|
virtual |
◆ unscaleToBuffer()
| void unscaleToBuffer |
( |
const Ice::Float * |
cfg, |
|
|
VectorXf & |
buffer |
|
) |
| const |
|
protected |
Unscales the given configuration to a buffer.
- Parameters
-
| cfg | The scaled configuration. |
| buffer | The buffer to fill. |
Definition at line 141 of file ScaledCSpace.cpp.
◆ armarx::GenericFactory
The documentation for this class was generated from the following files: