10 #ifndef SEQUENCEPLAYER_H 11 #define SEQUENCEPLAYER_H 13 #include <rtm/idl/BasicDataType.hh> 14 #include <rtm/idl/ExtendedDataTypes.hh> 15 #include <semaphore.h> 17 #include <rtm/DataFlowComponentBase.h> 21 #include <rtm/idl/BasicDataTypeSkel.h> 22 #include <rtm/idl/ExtendedDataTypesSkel.h> 24 #include <hrpModel/Sensor.h> 49 virtual RTC::ReturnCode_t onInitialize();
53 virtual RTC::ReturnCode_t onFinalize();
99 void waitInterpolation();
100 bool waitInterpolationOfGroup(
const char *gname);
101 bool setJointAngle(
short id,
double angle,
double tm);
102 bool setJointAngles(
const double *angles,
double tm);
103 bool setJointAngles(
const double *angles,
const bool *
mask,
double tm);
104 bool setJointAnglesSequence(
const OpenHRP::dSequenceSequence angless,
const OpenHRP::bSequence& mask,
const OpenHRP::dSequence& times);
105 bool setJointAnglesSequenceFull(
const OpenHRP::dSequenceSequence i_jvss,
const OpenHRP::dSequenceSequence i_vels,
const OpenHRP::dSequenceSequence i_torques,
const OpenHRP::dSequenceSequence i_poss,
const OpenHRP::dSequenceSequence i_rpys,
const OpenHRP::dSequenceSequence i_accs,
const OpenHRP::dSequenceSequence i_zmps,
const OpenHRP::dSequenceSequence i_wrenches,
const OpenHRP::dSequenceSequence i_optionals,
const dSequence i_tms);
106 bool clearJointAngles();
107 bool setBasePos(
const double *
pos,
double tm);
108 bool setBaseRpy(
const double *rpy,
double tm);
109 bool setZmp(
const double *zmp,
double tm);
110 bool setTargetPose(
const char* gname,
const double *xyz,
const double *rpy,
double tm,
const char* frame_name);
111 bool setWrenches(
const double *wrenches,
double tm);
113 void playPattern(
const OpenHRP::dSequenceSequence& pos,
const OpenHRP::dSequenceSequence& rpy,
const OpenHRP::dSequenceSequence& zmp,
const OpenHRP::dSequence& tm);
114 bool setInterpolationMode(OpenHRP::SequencePlayerService::interpolationMode i_mode_);
115 bool setInitialState(
double tm=0.0);
116 bool addJointGroup(
const char *gname,
const OpenHRP::SequencePlayerService::StrSequence& jnames);
117 bool removeJointGroup(
const char *gname);
118 bool setJointAnglesOfGroup(
const char *gname,
const OpenHRP::dSequence& jvs,
double tm);
119 bool setJointAnglesSequenceOfGroup(
const char *gname,
const OpenHRP::dSequenceSequence angless,
const OpenHRP::dSequence& times);
120 bool clearJointAnglesOfGroup(
const char *gname);
121 bool playPatternOfGroup(
const char *gname,
const OpenHRP::dSequenceSequence& pos,
const OpenHRP::dSequence& tm);
123 void setMaxIKError(
double pos,
double rot);
124 void setMaxIKIteration(
short iter);
207 #endif // SEQUENCEPLAYER_H
unsigned int m_debugLevel
std::vector< TimedDoubleSeq > m_wrenches
def loadPattern(basename, tm=1.0)
OutPort< TimedOrientation3D > m_baseRpyOut
std::string basename(const std::string name)
InPort< TimedPoint3D > m_basePosInitIn
InPort< TimedDoubleSeq > m_qInitIn
SequencePlayerService_impl m_service0
OutPort< TimedPoint3D > m_zmpRefOut
ExecutionContextHandle_t UniqueId
OutPort< TimedDoubleSeq > m_tqRefOut
png_infop int png_uint_32 mask
TimedPoint3D m_zmpRefInit
TimedAcceleration3D m_accRef
OutPort< TimedAcceleration3D > m_accRefOut
TimedDoubleSeq m_optionalData
TimedOrientation3D m_baseRpy
InPort< TimedPoint3D > m_zmpRefInitIn
OutPort< TimedDoubleSeq > m_qRefOut
OutPort< TimedDoubleSeq > m_optionalDataOut
RTC::CorbaPort m_SequencePlayerServicePort
OutPort< TimedPoint3D > m_basePosOut
InPort< TimedOrientation3D > m_baseRpyInitIn
TimedPoint3D m_basePosInit
double m_timeToStartPlaying
std::vector< OutPort< TimedDoubleSeq > * > m_wrenchesOut
void SequencePlayerInit(RTC::Manager *manager)
TimedOrientation3D m_baseRpyInit