10 #ifndef EMERGENCY_STOPPER_H 11 #define EMERGENCY_STOPPER_H 13 #include <rtm/idl/BasicDataType.hh> 14 #include <rtm/idl/ExtendedDataTypes.hh> 15 #include "hrpsys/idl/HRPDataTypes.hh" 17 #include <rtm/DataFlowComponentBase.h> 21 #include <rtm/idl/BasicDataTypeSkel.h> 22 #include <rtm/idl/ExtendedDataTypesSkel.h> 30 #include "../SoftErrorLimiter/beep.h" 60 virtual RTC::ReturnCode_t onInitialize();
64 virtual RTC::ReturnCode_t onFinalize();
106 bool releaseMotion();
107 bool getEmergencyStopperParam(OpenHRP::EmergencyStopperService::EmergencyStopperParam& i_param);
108 bool setEmergencyStopperParam(
const OpenHRP::EmergencyStopperService::EmergencyStopperParam& i_param);
162 for (
unsigned int i= 0;
i < wrenches_data.size();
i++ ) {
163 for (
int j = 0;
j < 6;
j++ ) {
164 wrenches_array[
i*6+
j] = wrenches_data[
i].data[
j];
170 for (
unsigned int i= 0;
i < wrenches_data.size();
i++ ) {
171 for (
int j = 0;
j < 6;
j++ ) {
172 wrenches_data[
i].data[
j] = wrenches_array[
i*6+
j];
205 #endif // EMERGENCY_STOPPER_H
interpolator * m_wrenches_interpolator
OutPort< TimedLong > m_emergencyModeOut
OutPort< TimedLongSeq > m_beepCommandOut
TimedLong m_emergencySignal
TimedLong m_emergencyMode
void get_wrenches_array_from_data(const std::vector< TimedDoubleSeq > &wrenches_data, double *wrenches_array)
TimedLongSeq m_beepCommand
RTC::CorbaPort m_EmergencyStopperServicePort
InPort< TimedDoubleSeq > m_qRefIn
EmergencyStopperService_impl m_service0
std::queue< std::vector< double > > m_input_posture_queue
sample RT component which has one data input port and one data output port
int emergency_stopper_beep_freq
InPort< OpenHRP::TimedLongSeqSeq > m_servoStateIn
ExecutionContextHandle_t UniqueId
def j(str, encoding="cp932")
interpolator * m_interpolator
std::vector< TimedDoubleSeq > m_wrenchesRef
OpenHRP::TimedLongSeqSeq m_servoState
std::queue< std::vector< double > > m_input_wrenches_queue
std::vector< OutPort< TimedDoubleSeq > * > m_wrenchesOut
unsigned int m_debugLevel
std::vector< InPort< TimedDoubleSeq > * > m_wrenchesIn
int default_retrieve_time
InPort< TimedLong > m_emergencySignalIn
void set_wrenches_data_from_array(std::vector< TimedDoubleSeq > &wrenches_data, const double *wrenches_array)
void EmergencyStopperInit(RTC::Manager *manager)
OutPort< TimedDoubleSeq > m_qOut
std::vector< TimedDoubleSeq > m_wrenches