23 #define TIMESTEP 0.001 25 #define ANGLE_FILE "etc/angle.dat" 26 #define VEL_FILE "etc/vel.dat" 27 #define GAIN_FILE "etc/PDgain.dat" 33 "implementation_id",
"PA10Controller",
34 "type_name",
"PA10Controller",
35 "description",
"PA10Controller component",
38 "category",
"Generic",
39 "activity_type",
"DataFlowComponent",
42 "lang_type",
"compile",
52 m_angleIn(
"angle", m_angle),
53 m_torqueOut(
"torque", m_torque),
102 std::cerr <<
GAIN_FILE <<
" not opened" << std::endl;
135 std::cout <<
"on Activated" << std::endl;
142 for(
int i=0;
i <
DOF; ++
i){
152 std::cout <<
"on Deactivated" << std::endl;
166 for (
int 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;
254 RTC::Create<PA10Controller>,
255 RTC::Delete<PA10Controller>);
png_infop png_charpp int png_charpp profile
InPort< TimedDoubleSeq > m_angleIn
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
bool addOutPort(const char *name, OutPortBase &outport)
std::vector< double > qold
virtual RTC::ReturnCode_t onInitialize()
ExecutionContextHandle_t UniqueId
DLL_EXPORT void PA10ControllerInit(RTC::Manager *manager)
OutPort< TimedDoubleSeq > m_torqueOut
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
virtual bool write(DataType &value)
static const char * PA10Controller_spec[]
PA10Controller(RTC::Manager *manager)
bool addInPort(const char *name, InPortBase &inport)
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)