10 #ifndef COLLISION_DETECTOR_H 11 #define COLLISION_DETECTOR_H 13 #include <rtm/idl/BasicDataType.hh> 14 #include "hrpsys/idl/HRPDataTypes.hh" 16 #include <rtm/DataFlowComponentBase.h> 20 #include <rtm/idl/BasicDataTypeSkel.h> 23 #include <hrpModel/ModelLoaderUtil.h> 26 #include "hrpsys/util/SDLUtil.h" 27 #include "hrpsys/util/LogManager.h" 28 #endif // USE_HRPSYSUTIL 34 #include "../SoftErrorLimiter/beep.h" 67 virtual RTC::ReturnCode_t onInitialize();
71 virtual RTC::ReturnCode_t onFinalize();
113 bool setTolerance(
const char *i_link_pair_name,
double i_tolerance);
114 bool setCollisionLoop(
int input_loop);
115 bool getCollisionStatus(OpenHRP::CollisionDetectorService::CollisionState &
state);
117 bool checkIsSafeTransition(
void);
177 #ifdef USE_HRPSYSUTIL 182 #endif // USE_HRPSYSUTIL 188 std::map<std::string, CollisionLinkPair *>
m_pair;
203 OpenHRP::CollisionDetectorService::CollisionState
m_state;
211 #ifndef USE_HRPSYSUTIL 213 #endif // USE_HRPSYSUTIL 220 #endif // COLLISION_DETECTOR_H
RTC::CorbaPort m_CollisionDetectorServicePort
boost::intrusive_ptr< VclipLinkPair > VclipLinkPairPtr
bool m_use_limb_collision
InPort< TimedDoubleSeq > m_qCurrentIn
unsigned int m_debugLevel
void CollisionDetectorInit(RTC::Manager *manager)
std::vector< int > m_init_collision_mask
InPort< TimedDoubleSeq > m_qRefIn
hrp::Link * hrplinkFactory()
CollisionLinkPair(VclipLinkPairPtr i_pair)
OutPort< TimedLongSeq > m_beepCommandOut
interpolator * m_interpolator
bool is_beep_port_connected
OutPort< TimedDoubleSeq > m_qOut
ExecutionContextHandle_t UniqueId
std::map< std::string, CollisionLinkPair * > m_pair
std::vector< Vclip::Polyhedron * > m_VclipLinks
TimedDoubleSeq m_qCurrent
OpenHRP::CollisionDetectorService::CollisionState m_state
OpenHRP::TimedLongSeqSeq m_servoState
TimedLongSeq m_beepCommand
sample RT component which has one data input port and one data output port
InPort< OpenHRP::TimedLongSeqSeq > m_servoStateIn
CollisionDetectorService_impl m_service0
double * m_recover_jointdata