Go to the documentation of this file.
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",
53 :
RTC::DataFlowComponentBase(manager),
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;
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() ){
263 manager->registerFactory(
profile,
264 RTC::Create<SampleHG>,
265 RTC::Delete<SampleHG>);
OutPort< TimedDoubleSeq > m_velOut
static const char * samplepd_spec[]
virtual RTC::ReturnCode_t onInitialize()
png_infop png_charpp int png_charpp profile
DLL_EXPORT void SampleHGInit(RTC::Manager *manager)
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
SampleHG(RTC::Manager *manager)
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
OutPort< TimedDoubleSeq > m_accOut
OutPort< TimedDoubleSeq > m_angleOut
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04