10 #ifndef TORQUE_CONTROLLER_H 11 #define TPRQUE_CONTROLLER_H 13 #include <rtm/idl/BasicDataType.hh> 15 #include <rtm/DataFlowComponentBase.h> 19 #include <rtm/idl/BasicDataTypeSkel.h> 60 virtual RTC::ReturnCode_t onInitialize();
105 bool enableTorqueController(std::string jname);
106 bool enableMultipleTorqueControllers(
const OpenHRP::TorqueControllerService::StrSequence& jnames);
107 bool disableTorqueController(std::string jname);
108 bool disableMultipleTorqueControllers(
const OpenHRP::TorqueControllerService::StrSequence& jnames);
109 bool startTorqueControl(std::string jname);
110 bool startMultipleTorqueControls(
const OpenHRP::TorqueControllerService::StrSequence& jnames);
111 bool stopTorqueControl(std::string jname);
112 bool stopMultipleTorqueControls(
const OpenHRP::TorqueControllerService::StrSequence& jnames);
113 bool setReferenceTorque(std::string jname,
double tauRef);
114 bool setMultipleReferenceTorques(
const OpenHRP::TorqueControllerService::StrSequence& jnames,
const OpenHRP::TorqueControllerService::dSequence& tauRefs);
115 bool setTorqueControllerParam(
const std::string jname,
const OpenHRP::TorqueControllerService::torqueControllerParam& i_param);
116 bool getTorqueControllerParam(
const std::string jname, OpenHRP::TorqueControllerService::torqueControllerParam& i_param);
170 void updateParam(
double &val,
double &val_new);
171 bool isDebug(
int cycle = 20);
180 #endif // NULL_COMPONENT_H
InPort< TimedDoubleSeq > m_tauCurrentInIn
TimedDoubleSeq m_tauCurrentIn
InPort< TimedDoubleSeq > m_tauMaxInIn
InPort< TimedDoubleSeq > m_qCurrentInIn
void TorqueControllerInit(RTC::Manager *manager)
InPort< TimedDoubleSeq > m_qRefInIn
std::vector< MotorTorqueController > m_motorTorqueControllers
unsigned int m_debugLevel
OutPort< TimedDoubleSeq > m_qRefOutOut
ExecutionContextHandle_t UniqueId
RTC::CorbaPort m_TorqueControllerServicePort
sample RT component which has one data input port and one data output port
torque controller for single motor
TorqueControllerService_impl m_service0
TimedDoubleSeq m_qCurrentIn
TimedDoubleSeq m_tauMaxIn