|
#include <RobotComponents/components/DMPComponent/DMPInstance.h>
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 82 of file DMPInstance.h.
|
inline |
DMPInstance constructs an empty instance of a basicDMP.
Definition at line 91 of file DMPInstance.h.
|
inline |
Definition at line 99 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 87 of file DMPInstance.cpp.
|
override |
Definition at line 129 of file DMPInstance.cpp.
|
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 397 of file DMPInstance.cpp.
|
override |
|
override |
Definition at line 433 of file DMPInstance.cpp.
Definition at line 207 of file DMPInstance.cpp.
|
override |
getAmpl: get current amplitude of a dimension
dim | the dimension concerned |
Definition at line 294 of file DMPInstance.cpp.
|
inlineoverride |
getCanonicalValues: get current canonical values
Definition at line 187 of file DMPInstance.h.
|
inlineoverride |
getCurrentState: get current state in dmp
Definition at line 267 of file DMPInstance.h.
|
inline |
Definition at line 310 of file DMPInstance.h.
|
inlineoverride |
getDampingFactor: get dmp's damping factor
Definition at line 195 of file DMPInstance.h.
|
inline |
Definition at line 294 of file DMPInstance.h.
|
inlineoverride |
getDMPDim: get dimesions of dmp
Definition at line 219 of file DMPInstance.h.
|
inlineoverride |
getDMPType: get dmp type
Definition at line 211 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 304 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 97 of file DMPInstance.cpp.
|
inlineoverride |
getNextState: get next state according to the state given
Definition at line 255 of file DMPInstance.h.
|
inlineoverride |
getSpringFactor: get dmp's spring factor
Definition at line 203 of file DMPInstance.h.
|
inlineoverride |
getStartPosition: get start position of dmp
Definition at line 227 of file DMPInstance.h.
|
override |
getTemporalFactor: get current temporal factor
Definition at line 299 of file DMPInstance.cpp.
|
override |
getTrajGoal: get the goal of the training trajectory
Definition at line 324 of file DMPInstance.cpp.
|
override |
getTrajStartState: get the start state of the training trajectory
Definition at line 336 of file DMPInstance.cpp.
|
override |
|
override |
setAmpl: set amplitude for dmp
dim | the dimension concerned |
value | new amplitude |
Definition at line 250 of file DMPInstance.cpp.
|
override |
setCanonicalValues: set dmp canonicalValues to control the dmp's state
value | current canonical values needed |
Definition at line 245 of file DMPInstance.cpp.
|
override |
setConfigurationMap set dmp configurations using configMap
value | configMap saves all possible configurations for dmp |
Definition at line 195 of file DMPInstance.cpp.
|
inline |
|
override |
setDMPState set current state for dmp
state | state to set |
Definition at line 286 of file DMPInstance.cpp.
|
override |
setGoal set the goal for dmp
value | the vector used to specify goal vector |
Definition at line 260 of file DMPInstance.cpp.
|
override |
setParameter set parameters for
paraId | pointer to the dmp |
value | type of dmp |
Definition at line 230 of file DMPInstance.cpp.
|
override |
setStartPosition set the start position for dmp
value | the vector used to define start position |
Definition at line 273 of file DMPInstance.cpp.
|
override |
setTemporalFactor: set dmp temporal factor
Definition at line 255 of file DMPInstance.cpp.
|
inline |
|
override |
Definition at line 391 of file DMPInstance.cpp.
|
protected |
Definition at line 328 of file DMPInstance.h.
|
protected |
Definition at line 321 of file DMPInstance.h.
|
protected |
Definition at line 322 of file DMPInstance.h.
|
protected |
Definition at line 320 of file DMPInstance.h.
|
protected |
Definition at line 327 of file DMPInstance.h.
|
protected |
Definition at line 329 of file DMPInstance.h.
|
protected |
Definition at line 319 of file DMPInstance.h.
|
protected |
Definition at line 324 of file DMPInstance.h.
|
protected |
Definition at line 326 of file DMPInstance.h.