10 #ifndef REMOVEFORCESENSORLINKOFFSET_H 11 #define REMOVEFORCESENSORLINKOFFSET_H 13 #include <rtm/idl/BasicDataType.hh> 14 #include <rtm/idl/ExtendedDataTypes.hh> 16 #include <rtm/DataFlowComponentBase.h> 20 #include <rtm/idl/BasicDataTypeSkel.h> 21 #include <rtm/idl/ExtendedDataTypesSkel.h> 28 #include "../ImpedanceController/RatsMatrix.h" 29 #include <semaphore.h> 62 virtual RTC::ReturnCode_t onInitialize();
107 bool setForceMomentOffsetParam(
const std::string& i_name_,
const OpenHRP::RemoveForceSensorLinkOffsetService::forcemomentOffsetParam &i_param_);
108 bool getForceMomentOffsetParam(
const std::string& i_name_, OpenHRP::RemoveForceSensorLinkOffsetService::forcemomentOffsetParam& i_param_);
109 bool loadForceMomentOffsetParams(
const std::string&
filename);
110 bool dumpForceMomentOffsetParams(
const std::string& filename);
111 bool removeForceSensorOffset (const ::OpenHRP::RemoveForceSensorLinkOffsetService::StrSequence& names,
const double tm);
173 link_offset_centroid(
hrp::
Vector3::Zero()), link_offset_mass(0),
175 sensor_offset_calib_counter(0), wait_sem()
177 sem_init(&wait_sem, 0, 0);
181 void printForceMomentOffsetParam(
const std::string& i_name_);
184 #if __cplusplus >= 201103L 187 static const double grav = 9.80665;
201 #endif // REMOVEFORCESENSORLINKOFFSET_H
TimedDoubleSeq m_qCurrent
InPort< TimedOrientation3D > m_rpyIn
static std::vector< std::vector< double > > force_offset
InPort< TimedDoubleSeq > m_qCurrentIn
unsigned int m_debugLevel
hrp::Vector3 moment_offset_sum
int max_sensor_offset_calib_counter
RTC::CorbaPort m_RemoveForceSensorLinkOffsetServicePort
ExecutionContextHandle_t UniqueId
std::vector< OutPort< TimedDoubleSeq > * > m_forceOut
std::vector< InPort< TimedDoubleSeq > * > m_forceIn
RemoveForceSensorLinkOffsetService_impl m_service0
std::map< std::string, ForceMomentOffsetParam > m_forcemoment_offset_param
std::vector< TimedDoubleSeq > m_force
hrp::Vector3 moment_offset
void RemoveForceSensorLinkOffsetInit(RTC::Manager *manager)
sample RT component which has one data input port and one data output port
int sensor_offset_calib_counter