10 #ifndef THERMO_LIMITER_SERVICE_H 11 #define THERMO_LIMITER_SERVICE_H 13 #include <rtm/idl/BasicDataType.hh> 15 #include <rtm/DataFlowComponentBase.h> 19 #include <rtm/idl/BasicDataTypeSkel.h> 25 #include "../ThermoEstimator/MotorHeatParam.h" 30 #include "../SoftErrorLimiter/beep.h" 60 virtual RTC::ReturnCode_t onInitialize();
105 bool setParameter(
const OpenHRP::ThermoLimiterService::tlParam& i_tlp);
106 bool getParameter(OpenHRP::ThermoLimiterService::tlParam& i_tlp);
159 void calcMaxTorqueFromTemperature(
hrp::dvector &tauMax);
160 double calcEmergencyRatio(RTC::TimedDoubleSeq ¤t,
hrp::dvector &
max,
double alarmRatio, std::string &prefix);
161 void callBeep(
double ratio,
double alarmRatio);
162 bool isDebug(
int cycle = 200);
171 #endif // NULL_COMPONENT_H OutPort< TimedDoubleSeq > m_tauMaxOutOut
TimedDoubleSeq m_tauMaxOut
unsigned int m_debugLevel
OutPort< TimedLongSeq > m_beepCommandOutOut
hrp::dvector m_motorTemperatureLimit
ExecutionContextHandle_t UniqueId
std::vector< MotorHeatParam > m_motorHeatParams
sample RT component which has one data input port and one data output port
TimedLongSeq m_beepCommandOut
InPort< TimedDoubleSeq > m_tempInIn
ThermoLimiterService_impl m_ThermoLimiterService
RTC::CorbaPort m_ThermoLimiterServicePort
void ThermoLimiterInit(RTC::Manager *manager)