10 #ifndef OBJECTCONTACTTURNAROUNDDETECTOR_H 11 #define OBJECTCONTACTTURNAROUNDDETECTOR_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> 47 virtual RTC::ReturnCode_t onInitialize();
51 virtual RTC::ReturnCode_t onFinalize();
93 void startObjectContactTurnaroundDetection(
const double i_ref_diff_wrench,
const double i_max_time,
const OpenHRP::ObjectContactTurnaroundDetectorService::StrSequence& i_ee_names);
94 OpenHRP::ObjectContactTurnaroundDetectorService::DetectorMode checkObjectContactTurnaroundDetection();
95 bool setObjectContactTurnaroundDetectorParam(
const OpenHRP::ObjectContactTurnaroundDetectorService::objectContactTurnaroundDetectorParam &i_param_);
96 bool getObjectContactTurnaroundDetectorParam(OpenHRP::ObjectContactTurnaroundDetectorService::objectContactTurnaroundDetectorParam& i_param_);
97 bool getObjectForcesMoments(OpenHRP::ObjectContactTurnaroundDetectorService::Dbl3Sequence_out o_forces, OpenHRP::ObjectContactTurnaroundDetectorService::Dbl3Sequence_out o_moments, OpenHRP::ObjectContactTurnaroundDetectorService::DblSequence3_out o_3dofwrench,
double& o_fric_coeff_wrench);
98 bool checkObjectContactTurnaroundDetectionForGeneralizedWrench(OpenHRP::ObjectContactTurnaroundDetectorService::DetectorModeSequence_out o_dms);
99 bool startObjectContactTurnaroundDetectionForGeneralizedWrench();
100 bool getObjectGeneralizedConstraintWrenches(OpenHRP::ObjectContactTurnaroundDetectorService::objectGeneralizedConstraintWrenchesParam& o_param);
154 void updateRootLinkPosRot (TimedOrientation3D tmprpy);
157 void calcObjectContactTurnaroundDetectorState();
158 OpenHRP::ObjectContactTurnaroundDetectorService::DetectorMode checkObjectContactTurnaroundDetectionCommon(
const size_t index);
161 std::string tmp_ee_name(
"");
162 for (std::map<std::string, ee_trans>::const_iterator it = ee_map.begin(); it != ee_map.end(); it++)
if (it->second.sensor_name == sensor_name) tmp_ee_name = it->first;
166 std::map<std::string, ee_trans>
ee_map;
184 #endif // OBJECTCONTACTTURNAROUNDDETECTOR_H
ExecutionContextHandle_t UniqueId