16 "implementation_id",
"SampleComponent",
17 "type_name",
"SampleComponent",
18 "description",
"null component",
19 "version", HRPSYS_PACKAGE_VERSION,
21 "category",
"example",
22 "activity_type",
"DataFlowComponent",
25 "lang_type",
"compile",
27 "conf.default.debugLevel",
"0",
35 m_qCurrentIn(
"qCurrent", m_qCurrent),
37 m_SampleComponentPort(
"SampleComponentService"),
44 std::cerr <<
"SampleComponent::SampleComponent()" << std::endl;
49 std::cerr <<
"SampleComponent::~SampleComponent()" << std::endl;
56 std::cerr <<
m_profile.instance_name <<
": onInitialize()" << std::endl;
108 std::cerr <<
m_profile.instance_name<<
": onActivated(" << ec_id <<
")" << std::endl;
114 std::cerr <<
m_profile.instance_name<<
": onDeactivated(" << ec_id <<
")" << std::endl;
136 for (
unsigned int i = 0;
i <
m_qCurrent.data.length();
i++ ){
142 if (
m_q.data.length() > 9 ) {
143 m_q.data[9] = output;
194 RTC::Create<SampleComponent>,
195 RTC::Delete<SampleComponent>);
ComponentProfile m_profile
png_infop png_charpp int png_charpp profile
bool resetOffset(double dir)
void SampleComponentInit(RTC::Manager *manager)
SampleComponent_impl m_service0
RTC::CorbaPort m_SampleComponentPort
bool addOutPort(const char *name, OutPortBase &outport)
ExecutionContextHandle_t UniqueId
virtual ~SampleComponent()
Destructor.
virtual RTC::ReturnCode_t onInitialize()
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
TimedDoubleSeq m_qCurrent
bool addPort(PortBase &port)
virtual bool write(DataType &value)
OutPort< TimedDoubleSeq > m_qOut
InPort< TimedDoubleSeq > m_qCurrentIn
bool addInPort(const char *name, InPortBase &inport)
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
SampleComponent(RTC::Manager *manager)
Constructor.
void sample(SampleComponent *i_sample)
output(gif_dest_ptr dinfo, int code)
bool registerProvider(const char *instance_name, const char *type_name, PortableServer::RefCountServantBase &provider)
static const char * nullcomponent_spec[]