16 "implementation_id",
"HGcontroller",
17 "type_name",
"HGcontroller",
18 "description",
"high gain joint controller component for OpenHRP",
19 "version", HRPSYS_PACKAGE_VERSION,
21 "category",
"example",
22 "activity_type",
"DataFlowComponent",
25 "lang_type",
"compile",
36 m_dqOut(
"dqOut", m_dq),
37 m_ddqOut(
"ddqOut", m_ddq),
52 std::cout <<
m_profile.instance_name <<
": onInitialize()" << std::endl;
108 std::cout <<
m_profile.instance_name<<
": onActivated(" << ec_id <<
")" << std::endl;
114 std::cout <<
m_profile.instance_name<<
": onDeactivated(" << ec_id <<
")" << std::endl;
124 if (
m_q.data.length()){
125 if (
m_dq.data.length() == 0){
127 m_dq.data.length(
m_q.data.length());
128 m_ddq.data.length(
m_q.data.length());
129 for (
unsigned int i=0;
i<
m_q.data.length();
i++){
134 for (
unsigned int i=0;
i<
m_q.data.length();
i++){
195 RTC::Create<HGcontroller>,
196 RTC::Delete<HGcontroller>);
ComponentProfile m_profile
png_infop png_charpp int png_charpp profile
OutPort< TimedDoubleSeq > m_ddqOut
bool stringTo(To &val, const char *str)
InPort< TimedDoubleSeq > m_qIn
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
coil::Properties & getProperties()
virtual ~HGcontroller()
Destructor.
OutPort< TimedDoubleSeq > m_qOut
bool addOutPort(const char *name, OutPortBase &outport)
virtual RTC::ReturnCode_t onInitialize()
void HGcontrollerInit(RTC::Manager *manager)
ExecutionContextHandle_t UniqueId
OutPort< TimedDoubleSeq > m_dqOut
static const char * hgcontroller_spec[]
virtual bool write(DataType &value)
bool addInPort(const char *name, InPortBase &inport)
high gain joint controller component for OpenHRP
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
HGcontroller(RTC::Manager *manager)
Constructor.