Public Member Functions | Protected Attributes
Motor Class Reference

#include <Motor.h>

Inheritance diagram for Motor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Motor (RTC::Manager *manager)
virtual RTC::ReturnCode_t onExecute (RTC::UniqueId ec_id)
 Callback function to execute periodically.
virtual RTC::ReturnCode_t onInitialize ()
 Callback function to initialize.
 ~Motor ()

Protected Attributes

TimedFloat m_in
InPort< TimedFloat > m_inIn
int m_motor_id
TimedLong m_out
OutPort< TimedLong > m_outOut

Detailed Description

Definition at line 29 of file Motor.h.


Constructor & Destructor Documentation

Motor::Motor ( RTC::Manager manager)

Definition at line 31 of file Motor.cpp.

Definition at line 41 of file Motor.cpp.


Member Function Documentation

RTC::ReturnCode_t Motor::onExecute ( RTC::UniqueId  exec_handle) [virtual]

Callback function to execute periodically.

This is a callback function that is executed when DataFlowComponentAction::on_execute is invoked.
As for actual periodic execution of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it. This function is invoked periodically as the first execution pass of Two-Pass Execution in Periodic Sampled Data Processing.

Parameters:
exec_handleID of the participant ExecutionContext
Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 107 of file Motor.cpp.

RTC::ReturnCode_t Motor::onInitialize ( void  ) [virtual]

Callback function to initialize.

This is a callback function that is executed when ComponentAction::on_initialize was invoked.
As for actual initialization of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it.

Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 46 of file Motor.cpp.


Member Data Documentation

TimedFloat Motor::m_in [protected]

Definition at line 93 of file Motor.h.

InPort<TimedFloat> Motor::m_inIn [protected]

Definition at line 94 of file Motor.h.

int Motor::m_motor_id [protected]

Definition at line 87 of file Motor.h.

TimedLong Motor::m_out [protected]

Definition at line 100 of file Motor.h.

OutPort<TimedLong> Motor::m_outOut [protected]

Definition at line 101 of file Motor.h.


The documentation for this class was generated from the following files:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:18