#include <armarx/control/common/mp/MP.h>
|
| virtual void | computePhaseStop (const MPInputPtr input, const MPOutputPtr output, PhaseStopResult &phaseStop) |
| |
| DVec | deserialize (const std::string &, const std::string &mode="string") |
| |
| double | getCanonicalValue () |
| |
| const std::string & | getClassName () const |
| |
| MPConfig | getConfig () |
| |
| const arondto::MPGroup & | getGroup () const |
| |
| std::string | getGroupName () const |
| |
| const std::string & | getMPName () const |
| |
| const std::string & | getNodeSetName () const |
| |
| const std::string & | getRole () const |
| |
| bool | getStartFromPrevTarget () |
| |
| std::vector< double > | getStartVec () |
| |
| DVecVec | getWeight () |
| |
| bool | isFinished () |
| | status
|
| |
| bool | isFirstRun () |
| |
| bool | isRunning () |
| |
| bool | isStopRequested () |
| |
| bool | isTaskSpaceMP () const |
| |
| void | learnFromCSV (const Ice::StringSeq &fileNames=std::vector< std::string >()) |
| | setting
|
| |
| void | learnFromTraj (const MPTrajs &trajs=MPTrajs()) |
| |
| | MP (const MPConfig &c) |
| |
| void | pause () |
| |
| void | removeAllViaPoint () |
| |
| void | requestStop () |
| |
| void | reset () |
| |
| void | resume () |
| |
| virtual void | run (MPInputPtr, MPOutputPtr, const PhaseStopResult &phaseStop)=0 |
| |
| std::string | serialize (const std::string &mode="string") |
| |
| void | setDurationSec (Ice::Double timeDuration) |
| |
| void | setGoal (const DVec &goals) |
| |
| void | setRotationWeights (const DVecVec &weights) |
| |
| void | setStart (const DVec &starts) |
| |
| void | setStartAndGoal (const DVec &starts, const DVec &goals) |
| |
| void | setTranslationWeights (const DVecVec &weights) |
| |
| void | setViaPoint (Ice::Double u, const DVec &viapoint) |
| |
| void | setWeight (const DVecVec &weights) |
| | serialze
|
| |
| void | start () |
| | control
|
| |
| void | start (const DVec &goals) |
| |
| void | start (const DVec &goals, const DVec &starts) |
| |
| void | start (const DVec &goals, const DVec &starts, Ice::Double timeDuration) |
| |
| void | start (const DVec &goals, Ice::Double timeDuration) |
| |
| void | stop () |
| |
| void | trainMP () |
| |
| void | trainMPFromTraj (std::vector< mplib::core::SampledTrajectory > &trajs) |
| |
| virtual void | validateInitialState (const DVec &starts) |
| |
| virtual DVec | validateViaPoint (const DVec &viapoint) |
| |
| virtual | ~MP ()=default |
| |
Definition at line 74 of file MP.h.
◆ MP()
◆ ~MP()
◆ computePhaseStop()
Reimplemented in TSMP.
Definition at line 144 of file MP.h.
◆ deserialize()
| DVec deserialize |
( |
const std::string & | mpString, |
|
|
const std::string & | mode = "string" ) |
◆ getCanonicalValue()
| double getCanonicalValue |
( |
| ) |
|
◆ getClassName()
| const std::string & getClassName |
( |
| ) |
const |
◆ getConfig()
◆ getGroup()
| const arondto::MPGroup & getGroup |
( |
| ) |
const |
◆ getGroupName()
| std::string getGroupName |
( |
| ) |
const |
◆ getMPName()
| const std::string & getMPName |
( |
| ) |
const |
◆ getNodeSetName()
| const std::string & getNodeSetName |
( |
| ) |
const |
◆ getRole()
| const std::string & getRole |
( |
| ) |
const |
◆ getStartFromPrevTarget()
| bool getStartFromPrevTarget |
( |
| ) |
|
◆ getStartVec()
| std::vector< double > getStartVec |
( |
| ) |
|
◆ getWeight()
◆ isFinished()
status
Definition at line 202 of file MP.cpp.
◆ isFirstRun()
◆ isRunning()
◆ isStopRequested()
◆ isTaskSpaceMP()
| bool isTaskSpaceMP |
( |
| ) |
const |
◆ learnFromCSV()
| void learnFromCSV |
( |
const Ice::StringSeq & | fileNames = std::vector<std::string>() | ) |
|
setting
Definition at line 265 of file MP.cpp.
◆ learnFromTraj()
◆ pause()
◆ removeAllViaPoint()
| void removeAllViaPoint |
( |
| ) |
|
◆ requestStop()
◆ reset()
◆ resume()
◆ run()
◆ serialize()
| std::string serialize |
( |
const std::string & | mode = "string" | ) |
|
◆ setDurationSec()
| void setDurationSec |
( |
Ice::Double | timeDuration | ) |
|
◆ setGoal()
| void setGoal |
( |
const DVec & | goals | ) |
|
◆ setRotationWeights()
| void setRotationWeights |
( |
const DVecVec & | weights | ) |
|
◆ setStart()
| void setStart |
( |
const DVec & | starts | ) |
|
◆ setStartAndGoal()
| void setStartAndGoal |
( |
const DVec & | starts, |
|
|
const DVec & | goals ) |
◆ setTranslationWeights()
| void setTranslationWeights |
( |
const DVecVec & | weights | ) |
|
◆ setViaPoint()
| void setViaPoint |
( |
Ice::Double | u, |
|
|
const DVec & | viapoint ) |
◆ setWeight()
| void setWeight |
( |
const DVecVec & | weights | ) |
|
serialze
Definition at line 472 of file MP.cpp.
◆ start() [1/5]
control
Definition at line 89 of file MP.cpp.
◆ start() [2/5]
| void start |
( |
const DVec & | goals | ) |
|
◆ start() [3/5]
| void start |
( |
const DVec & | goals, |
|
|
const DVec & | starts ) |
parse user defined viapoints from configuration file
overwrite goals and starts if available
prepare execution
set flag
Definition at line 121 of file MP.cpp.
◆ start() [4/5]
| void start |
( |
const DVec & | goals, |
|
|
const DVec & | starts, |
|
|
Ice::Double | timeDuration ) |
◆ start() [5/5]
| void start |
( |
const DVec & | goals, |
|
|
Ice::Double | timeDuration ) |
◆ stop()
◆ trainMP()
◆ trainMPFromTraj()
| void trainMPFromTraj |
( |
std::vector< mplib::core::SampledTrajectory > & | trajs | ) |
|
◆ validateInitialState()
| virtual void validateInitialState |
( |
const DVec & | starts | ) |
|
|
inlinevirtual |
Reimplemented in TSMP.
Definition at line 130 of file MP.h.
◆ validateViaPoint()
| virtual DVec validateViaPoint |
( |
const DVec & | viapoint | ) |
|
|
inlinevirtual |
Reimplemented in TSMP.
Definition at line 125 of file MP.h.
◆ canonicalValue
| double canonicalValue = 1.0 |
|
protected |
Definition at line 171 of file MP.h.
◆ cfg
Definition at line 159 of file MP.h.
◆ currentState
| std::vector<mplib::representation::MPState> currentState |
|
protected |
Definition at line 180 of file MP.h.
◆ finished
| std::atomic_bool finished = false |
|
protected |
Definition at line 168 of file MP.h.
◆ firstRun
| std::atomic_bool firstRun = true |
|
protected |
Definition at line 172 of file MP.h.
◆ goalSetByUser
| std::atomic_bool goalSetByUser {false} |
|
protected |
Definition at line 174 of file MP.h.
◆ isDisturbance
| bool isDisturbance = false |
|
protected |
Definition at line 161 of file MP.h.
◆ mpMutex
Definition at line 163 of file MP.h.
◆ mpStartTimeSec
Definition at line 183 of file MP.h.
◆ mpTrained
| std::atomic_bool mpTrained {false} |
|
protected |
Note: if mp is not trained, the dimension is not initialized, thus mp->getDim() is undefined, if you set viapoints you will have memory allocation error.
So make sure mp is trained before setting any viapoint.
Definition at line 177 of file MP.h.
◆ paused
| std::atomic_bool paused = false |
|
protected |
Definition at line 169 of file MP.h.
◆ prevViapoint
Definition at line 122 of file MP.h.
◆ running
| std::atomic_bool running = false |
|
protected |
Definition at line 167 of file MP.h.
◆ stopRequested
| std::atomic_bool stopRequested = false |
|
protected |
Definition at line 170 of file MP.h.
◆ targetPoseVec
Definition at line 178 of file MP.h.
◆ targetPoseVecInTraj
Definition at line 179 of file MP.h.
◆ userDefinedViaPoints
| std::vector<std::pair<double, DVec> > userDefinedViaPoints |
|
protected |
Definition at line 181 of file MP.h.
◆ vmp
Definition at line 164 of file MP.h.
◆ vmpType
| mplib::representation::VMPType vmpType = mplib::representation::VMPType::PrincipalComponent |
|
protected |
Definition at line 165 of file MP.h.
The documentation for this class was generated from the following files:
- armarx/control/common/mp/MP.h
- armarx/control/common/mp/MP.cpp