23 #define ANGLE_FILE "etc/angle.dat" 24 #define VEL_FILE "etc/vel.dat" 25 #define ACC_FILE "etc/acc.dat" 28 const bool CONTROLLER_BRIDGE_DEBUG =
false;
36 "implementation_id",
"SampleHG",
37 "type_name",
"SampleHG",
38 "description",
"Sample HG component",
41 "category",
"Generic",
42 "activity_type",
"DataFlowComponent",
45 "lang_type",
"compile",
55 m_angleOut(
"angle", m_angle),
56 m_velOut(
"vel", m_vel),
57 m_accOut(
"acc", m_acc)
61 if( CONTROLLER_BRIDGE_DEBUG )
63 std::cout <<
"SampleHG::SampleHG" << std::endl;
87 if( CONTROLLER_BRIDGE_DEBUG )
89 std::cout <<
"onInitialize" << std::endl;
133 std::cout <<
"on Activated" << std::endl;
135 for(
int i = 0;
i <
DOF; ++
i){
145 std::cout <<
"on Deactivated" << std::endl;
153 if( CONTROLLER_BRIDGE_DEBUG )
155 std::cout <<
"SampleHG::onExecute" << std::endl;
164 for (i=0; i<
DOF; i++)
224 if (!
angle.is_open()){
225 std::cerr <<
ANGLE_FILE <<
" not opened" << std::endl;
230 std::cerr <<
VEL_FILE <<
" not opened" << std::endl;
236 std::cerr <<
ACC_FILE <<
" not opend" << std::endl;
242 if(
angle.is_open() ){
264 RTC::Create<SampleHG>,
265 RTC::Delete<SampleHG>);
png_infop png_charpp int png_charpp profile
virtual RTC::ReturnCode_t onInitialize()
OutPort< TimedDoubleSeq > m_velOut
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
bool addOutPort(const char *name, OutPortBase &outport)
SampleHG(RTC::Manager *manager)
DLL_EXPORT void SampleHGInit(RTC::Manager *manager)
OutPort< TimedDoubleSeq > m_accOut
ExecutionContextHandle_t UniqueId
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
virtual bool write(DataType &value)
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
OutPort< TimedDoubleSeq > m_angleOut
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
static const char * samplepd_spec[]