|
|
#include <RobotComponents/components/DMPComponent/DMPInstance.h>
Inheritance diagram for DMPInstance:Public Member Functions | |
| nStateValues | calcNextState (double t, const Ice::DoubleSeq &goal, double currentT, const Vec2D ¤tStates, const Ice::DoubleSeq &canonicalValues, double temporalFactor, const ::Ice::Current &=Ice::emptyCurrent) override |
| nStateValues | calcNextStateFromConfig (double t, double currentT, const Vec2D ¤tStates, const Ice::DoubleSeq &canonicalValues, const Ice::Current &=Ice::emptyCurrent) override |
| Vec2D | calcTrajectory (double startTime, double timestep, double endTime, const ::Ice::DoubleSeq &goal, const cStateVec &initStates, const ::Ice::DoubleSeq &canonicalValues, double temporalFactor, const Ice::Current &=Ice::emptyCurrent) override |
| calcTrajectory solves the DMP for all Timesteps More... | |
| Vec2D | calcTrajectoryFromConfig (const Ice::DoubleSeq ×tamps, const Vec2D &initStates, const Ice::DoubleSeq &canonicalValues, const Ice::Current &=Ice::emptyCurrent) override |
| Vec2D | calcTrajectoryV2 (const Ice::DoubleSeq ×tamps, const Ice::DoubleSeq &goal, const Vec2D &initStates, const Ice::DoubleSeq &canonicalValues, double temporalFactor, const Ice::Current &=Ice::emptyCurrent) override |
| configMap | createConfigMap (DMP::Vec< std::string > paraIDs, DMP::Vec< paraType > paraVals) |
| DMPInstance () | |
| DMPInstance constructs an empty instance of a basicDMP. More... | |
| DMPInstance (DMP::DMPInterfacePtr dmpInter) | |
| DMPInstance (DMP::DMPInterfacePtr dmpInter, std::string DMPType) | |
| DMPInstance constructs a new instance of the specified DMP. More... | |
| double | getAmpl (int dim, const ::Ice::Current &=Ice::emptyCurrent) override |
| getAmpl: get current amplitude of a dimension More... | |
| Ice::DoubleSeq | getCanonicalValues (const ::Ice::Current &=Ice::emptyCurrent) override |
| getCanonicalValues: get current canonical values More... | |
| cStateVec | getCurrentState (const ::Ice::Current &=Ice::emptyCurrent) override |
| getCurrentState: get current state in dmp More... | |
| double | getCurrentTime () |
| double | getDampingFactor (const ::Ice::Current &=Ice::emptyCurrent) override |
| getDampingFactor: get dmp's damping factor More... | |
| DMP::DMPInterfacePtr | getDMP () |
| int | getDMPDim (const ::Ice::Current &=Ice::emptyCurrent) override |
| getDMPDim: get dimesions of dmp More... | |
| std::string | getDMPType (const ::Ice::Current &=Ice::emptyCurrent) override |
| getDMPType: get dmp type More... | |
| double | getForceTerm (const Ice::DoubleSeq &canVal, int dim, const ::Ice::Current &=Ice::emptyCurrent) override |
| getForceTerm: get force termf for one dimension at a specified canonical values More... | |
| Ice::DoubleSeq | getGoal (const Ice::Current &=Ice::emptyCurrent) |
| cStateVec | getNextState (const cStateVec &states, const ::Ice::Current &=Ice::emptyCurrent) override |
| getNextState: get next state according to the state given More... | |
| cStateVec | getNextStateWithCurrentState (const ::Ice::Current &=Ice::emptyCurrent) override |
| getNextState: get next state according to the state given More... | |
| double | getSpringFactor (const ::Ice::Current &=Ice::emptyCurrent) override |
| getSpringFactor: get dmp's spring factor More... | |
| Ice::DoubleSeq | getStartPosition (const ::Ice::Current &=Ice::emptyCurrent) override |
| getStartPosition: get start position of dmp More... | |
| double | getTemporalFactor (const ::Ice::Current &=Ice::emptyCurrent) override |
| getTemporalFactor: get current temporal factor More... | |
| Ice::DoubleSeq | getTrajGoal (const ::Ice::Current &=Ice::emptyCurrent) override |
| getTrajGoal: get the goal of the training trajectory More... | |
| cStateVec | getTrajStartState (const ::Ice::Current &=Ice::emptyCurrent) override |
| getTrajStartState: get the start state of the training trajectory More... | |
| void | readTrajectoryFromFile (const std::string &file, double times=1, const ::Ice::Current &=Ice::emptyCurrent) override |
| void | setAmpl (int dim, double value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setAmpl: set amplitude for dmp More... | |
| void | setCanonicalValues (const Ice::DoubleSeq &value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setCanonicalValues: set dmp canonicalValues to control the dmp's state More... | |
| void | setConfigurationMap (const DMPConfigMap &value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setConfigurationMap set dmp configurations using configMap More... | |
| void | setCurrentTime (double t) |
| void | setDMPState (const cStateVec &state, const ::Ice::Current &=Ice::emptyCurrent) override |
| setDMPState set current state for dmp More... | |
| void | setGoal (const Ice::DoubleSeq &value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setGoal set the goal for dmp More... | |
| void | setParameter (const std::string ¶Id, const Ice::DoubleSeq &value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setParameter set parameters for More... | |
| void | setStartPosition (const Ice::DoubleSeq &value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setStartPosition set the start position for dmp More... | |
| void | setTemporalFactor (double value, const ::Ice::Current &=Ice::emptyCurrent) override |
| setTemporalFactor: set dmp temporal factor More... | |
| void | setTimeStep (double ts) |
| void | trainDMP (const ::Ice::Current &=Ice::emptyCurrent) override |
Public Member Functions inherited from Logging | |
| SpamFilterDataPtr | deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const |
| disables the logging for the current line for the given amount of seconds. More... | |
| MessageTypeT | getEffectiveLoggingLevel () const |
| Logging () | |
| void | setLocalMinimumLoggingLevel (MessageTypeT level) |
| With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More... | |
| void | setTag (const LogTag &tag) |
| void | setTag (const std::string &tagName) |
| virtual | ~Logging () |
Protected Attributes | |
| DMP::DVec | canonicalValues |
| configMap | configs |
| double | ctime |
| DMP::DMPInterfacePtr | dmp |
| std::string | dmpName |
| cStateVec | dmpState |
| std::string | dmpType |
| double | timestep |
| TrajVec | trajs |
Protected Attributes inherited from Logging | |
| MessageTypeT | minimumLoggingLevel |
| SpamFilterDataPtr | spamFilter |
| LogTag | tag |
Additional Inherited Members | |
Protected Member Functions inherited from Logging | |
| bool | checkLogLevel (MessageTypeT level) const |
| const LogSenderPtr & | getLogSender () const |
| Retrieve log sender. More... | |
| LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
Definition at line 80 of file DMPInstance.h.
|
inline |
DMPInstance constructs an empty instance of a basicDMP.
Definition at line 87 of file DMPInstance.h.
|
inline |
Definition at line 93 of file DMPInstance.h.
| DMPInstance | ( | DMP::DMPInterfacePtr | dmpInter, |
| std::string | DMPType | ||
| ) |
DMPInstance constructs a new instance of the specified DMP.
| dmpInter | pointer to the dmp |
| DMPType | type of dmp |
Definition at line 92 of file DMPInstance.cpp.
|
override |
Definition at line 136 of file DMPInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
|
override |
calcTrajectory solves the DMP for all Timesteps
Calculates the Trajectory for the trained DMP given the goal and inital State for all Dimensions
| timestamps | The timesteps for which the trajecotry should be calculated |
| goal | The target(goal) position for all dimensions of the trajectory |
| initStates | the initial States of the DMP |
| canonicalValues | The canonical Value for the DMP |
| temporalFactor | his factor determines the duration of the trajectory. The duration scales linear with this factor. |
Definition at line 430 of file DMPInstance.cpp.
Here is the call graph for this function:
|
override |
|
override |
Definition at line 469 of file DMPInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 227 of file DMPInstance.cpp.
|
override |
getAmpl: get current amplitude of a dimension
| dim | the dimension concerned |
Definition at line 323 of file DMPInstance.cpp.
|
inlineoverride |
getCanonicalValues: get current canonical values
Definition at line 191 of file DMPInstance.h.
|
inlineoverride |
getCurrentState: get current state in dmp
Definition at line 282 of file DMPInstance.h.
Here is the caller graph for this function:
|
inline |
Definition at line 333 of file DMPInstance.h.
|
inlineoverride |
getDampingFactor: get dmp's damping factor
Definition at line 200 of file DMPInstance.h.
|
inline |
Definition at line 314 of file DMPInstance.h.
|
inlineoverride |
getDMPDim: get dimesions of dmp
Definition at line 227 of file DMPInstance.h.
|
inlineoverride |
getDMPType: get dmp type
Definition at line 218 of file DMPInstance.h.
|
override |
getForceTerm: get force termf for one dimension at a specified canonical values
| canVal | corresponding canonical value |
| dim | the dimension concerned |
Definition at line 335 of file DMPInstance.cpp.
| Ice::DoubleSeq getGoal | ( | const Ice::Current & | = Ice::emptyCurrent | ) |
|
override |
getNextState: get next state according to the state given
| states | the current state given to the function |
Definition at line 103 of file DMPInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverride |
getNextState: get next state according to the state given
Definition at line 266 of file DMPInstance.h.
Here is the call graph for this function:
|
inlineoverride |
getSpringFactor: get dmp's spring factor
Definition at line 209 of file DMPInstance.h.
|
inlineoverride |
getStartPosition: get start position of dmp
Definition at line 236 of file DMPInstance.h.
|
override |
getTemporalFactor: get current temporal factor
Definition at line 329 of file DMPInstance.cpp.
Here is the caller graph for this function:
|
override |
getTrajGoal: get the goal of the training trajectory
Definition at line 357 of file DMPInstance.cpp.
|
override |
getTrajStartState: get the start state of the training trajectory
Definition at line 369 of file DMPInstance.cpp.
|
override |
|
override |
setAmpl: set amplitude for dmp
| dim | the dimension concerned |
| value | new amplitude |
Definition at line 275 of file DMPInstance.cpp.
Here is the call graph for this function:
|
override |
setCanonicalValues: set dmp canonicalValues to control the dmp's state
| value | current canonical values needed |
Definition at line 269 of file DMPInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
setConfigurationMap set dmp configurations using configMap
| value | configMap saves all possible configurations for dmp |
Definition at line 212 of file DMPInstance.cpp.
|
inline |
|
override |
setDMPState set current state for dmp
| state | state to set |
Definition at line 315 of file DMPInstance.cpp.
Here is the caller graph for this function:
|
override |
setGoal set the goal for dmp
| value | the vector used to specify goal vector |
Definition at line 287 of file DMPInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
setParameter set parameters for
| paraId | pointer to the dmp |
| value | type of dmp |
Definition at line 251 of file DMPInstance.cpp.
Here is the call graph for this function:
|
override |
setStartPosition set the start position for dmp
| value | the vector used to define start position |
Definition at line 301 of file DMPInstance.cpp.
Here is the call graph for this function:
|
override |
setTemporalFactor: set dmp temporal factor
Definition at line 281 of file DMPInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
override |
Definition at line 424 of file DMPInstance.cpp.
|
protected |
Definition at line 371 of file DMPInstance.h.
|
protected |
Definition at line 364 of file DMPInstance.h.
|
protected |
Definition at line 365 of file DMPInstance.h.
|
protected |
Definition at line 363 of file DMPInstance.h.
|
protected |
Definition at line 370 of file DMPInstance.h.
|
protected |
Definition at line 372 of file DMPInstance.h.
|
protected |
Definition at line 362 of file DMPInstance.h.
|
protected |
Definition at line 367 of file DMPInstance.h.
|
protected |
Definition at line 369 of file DMPInstance.h.