
Public Member Functions | |
| HelloWorld (std::string name) | |
Public Member Functions inherited from RTT::TaskContext | |
| bool | addAttribute (const std::string &name, T &attr) |
| bool | addAttribute (base::AttributeBase &a) |
| bool | addAttribute (base::AttributeBase &a) |
| bool | addAttribute (const std::string &name, T &attr) |
| bool | addConstant (const std::string &name, const T &attr) |
| bool | addConstant (const std::string &name, const T &attr) |
| base::InputPortInterface & | addEventPort (const std::string &name, base::InputPortInterface &port, SlotFunction callback=SlotFunction()) |
| base::InputPortInterface & | addEventPort (base::InputPortInterface &port, SlotFunction callback=SlotFunction()) |
| Operation< Signature > & | addOperation (Operation< Signature > &op) |
| Operation< Signature > & | addOperation (Operation< Signature > &op) |
| Operation< typename internal::GetSignature< Func >::Signature > & | addOperation (const std::string name, Func func, Service *serv, ExecutionThread et=ClientThread) |
| Operation< Signature > & | addOperation (const std::string name, Signature *func, ExecutionThread et=ClientThread) |
| Operation< typename internal::GetSignature< Func >::Signature > & | addOperation (const std::string name, Func func, Service *serv, ExecutionThread et=ClientThread) |
| Operation< Signature > & | addOperation (const std::string name, Signature *func, ExecutionThread et=ClientThread) |
| virtual bool | addPeer (TaskContext *peer, std::string alias="") |
| virtual bool | addPeer (TaskContext *peer, std::string alias="") |
| base::PortInterface & | addPort (const std::string &name, base::PortInterface &port) |
| base::PortInterface & | addPort (base::PortInterface &port) |
| Property< T > & | addProperty (const std::string &name, T &attr) |
| bool | addProperty (base::PropertyBase &pb) |
| Property< T > & | addProperty (const std::string &name, T &attr) |
| bool | addProperty (base::PropertyBase &pb) |
| ConfigurationInterface * | attributes () |
| ConfigurationInterface * | attributes () |
| virtual void | clear () |
| virtual bool | connectPeers (TaskContext *peer) |
| virtual bool | connectPeers (TaskContext *peer) |
| virtual bool | connectPorts (TaskContext *peer) |
| virtual bool | connectServices (TaskContext *peer) |
| virtual bool | connectServices (TaskContext *peer) |
| virtual void | disconnect () |
| virtual void | disconnect () |
| virtual void | disconnectPeers (const std::string &name) |
| virtual void | disconnectPeers (const std::string &name) |
| base::ActivityInterface * | getActivity () |
| T * | getActivity () |
| base::AttributeBase * | getAttribute (const std::string &name) const |
| base::AttributeBase * | getAttribute (const std::string &name) const |
| virtual const std::string & | getName () const |
| OperationInterfacePart * | getOperation (std::string name) |
| OperationInterfacePart * | getOperation (std::string name) |
| virtual TaskContext * | getPeer (const std::string &peer_name) const |
| virtual TaskContext * | getPeer (const std::string &peer_name) const |
| virtual PeerList | getPeerList () const |
| virtual PeerList | getPeerList () const |
| base::PortInterface * | getPort (const std::string &name) const |
| base::PropertyBase * | getProperty (const std::string &name) const |
| base::PropertyBase * | getProperty (const std::string &name) const |
| boost::shared_ptr< ServiceType > | getProvider (const std::string &name) |
| boost::shared_ptr< ServiceType > | getProvider (const std::string &name) |
| virtual bool | hasPeer (const std::string &peer_name) const |
| virtual bool | hasPeer (const std::string &peer_name) const |
| bool | loadService (const std::string &service_name) |
| bool | loadService (const std::string &service_name) |
| OperationInterface * | operations () |
| OperationInterface * | operations () |
| DataFlowInterface * | ports () |
| const DataFlowInterface * | ports () const |
| PropertyBag * | properties () |
| PropertyBag * | properties () |
| Service::shared_ptr | provides (const std::string &service_name) |
| Service::shared_ptr | provides () |
| Service::shared_ptr | provides () |
| Service::shared_ptr | provides (const std::string &service_name) |
| virtual bool | ready () |
| virtual void | removePeer (const std::string &name) |
| virtual void | removePeer (TaskContext *peer) |
| virtual void | removePeer (TaskContext *peer) |
| virtual void | removePeer (const std::string &name) |
| ServiceRequester::shared_ptr | requires (const std::string &service_name) |
| ServiceRequester::shared_ptr | requires (const std::string &service_name) |
| ServiceRequester::shared_ptr | requires () |
| ServiceRequester::shared_ptr | requires () |
| bool | setActivity (base::ActivityInterface *new_act) |
| virtual bool | start () |
| virtual bool | stop () |
| TaskContext (const std::string &name, TaskState initial_state=Stopped) | |
| virtual | ~TaskContext () |
Public Member Functions inherited from RTT::base::TaskCore | |
| virtual bool | activate () |
| virtual bool | activate () |
| virtual bool | cleanup () |
| virtual bool | cleanup () |
| virtual bool | configure () |
| virtual bool | configure () |
| const ExecutionEngine * | engine () const |
| ExecutionEngine * | engine () |
| virtual void | error () |
| virtual void | error () |
| virtual unsigned | getCpuAffinity () const |
| virtual unsigned | getCpuAffinity () const |
| unsigned int | getCycleCounter () const |
| unsigned int | getIOCounter () const |
| virtual Seconds | getPeriod () const |
| virtual Seconds | getPeriod () const |
| virtual TaskState | getTargetState () const |
| virtual TaskState | getTaskState () const |
| unsigned int | getTimeOutCounter () const |
| unsigned int | getTriggerCounter () const |
| virtual bool | inException () const |
| virtual bool | inException () const |
| virtual bool | inFatalError () const |
| virtual bool | inFatalError () const |
| virtual bool | inRunTimeError () const |
| virtual bool | inRunTimeError () const |
| virtual bool | isActive () const |
| virtual bool | isActive () const |
| virtual bool | isConfigured () const |
| virtual bool | isConfigured () const |
| virtual bool | isRunning () const |
| virtual bool | isRunning () const |
| virtual bool | recover () |
| virtual bool | recover () |
| virtual bool | setCpuAffinity (unsigned cpu) |
| virtual bool | setCpuAffinity (unsigned cpu) |
| virtual bool | setPeriod (Seconds s) |
| virtual bool | setPeriod (Seconds s) |
| TaskCore (TaskState initial_state=Stopped, const std::string &name=std::string()) | |
| virtual bool | trigger () |
| virtual bool | trigger () |
| virtual bool | update () |
| virtual bool | update () |
| virtual | ~TaskCore () |
Protected Member Functions | |
| std::string | mymethod () |
| bool | sayWorld (const std::string &word) |
| void | updateHook () |
Protected Member Functions inherited from RTT::TaskContext | |
| virtual void | dataOnPortCallback (base::PortInterface *port) |
| virtual bool | dataOnPortHook (base::PortInterface *port) |
| void | forceActivity (base::ActivityInterface *new_act) |
Protected Member Functions inherited from RTT::base::TaskCore | |
| virtual bool | breakUpdateHook () |
| virtual void | cleanupHook () |
| virtual bool | configureHook () |
| virtual void | errorHook () |
| virtual void | exception () |
| virtual void | exceptionHook () |
| virtual void | fatal () |
| virtual bool | startHook () |
| virtual void | stopHook () |
Protected Attributes | |
Name-Value parameters | |
| std::string | property |
| bool | flag |
| std::string | attribute |
| std::string | constant |
Input-Output ports | |
| RTT::OutputPort< std::string > | outport |
| RTT::InputPort< std::string > | bufferport |
Protected Attributes inherited from RTT::base::TaskCore | |
| ExecutionEngine * | ee |
| unsigned int | mCycleCounter |
| unsigned int | mIOCounter |
| std::string | mName |
| TaskState | mTaskState |
| unsigned int | mTimeOutCounter |
| unsigned int | mTriggerCounter |
| bool | mTriggerOnStart |
Additional Inherited Members | |
Public Types inherited from RTT::TaskContext | |
| typedef std::vector< std::string > | PeerList |
| typedef boost::function< void(base::PortInterface *)> | SlotFunction |
Public Types inherited from RTT::base::TaskCore | |
| enum | TaskState |
Public Attributes inherited from RTT::base::TaskCore | |
| Exception | |
| FatalError | |
| Init | |
| PreOperational | |
| Running | |
| RunTimeError | |
| Stopped | |
Every component inherits from the 'RTT::TaskContext' class. This base class allow a user to add a primitive to the interface and contain an RTT::ExecutionEngine which executes application code.
Definition at line 34 of file HelloWorld.cpp.
|
inline |
This example sets the interface up in the Constructor of the component.
Definition at line 118 of file HelloWorld.cpp.
|
inlineprotected |
An operation we want to add to our interface.
Definition at line 82 of file HelloWorld.cpp.
|
inlineprotected |
This one is executed in our own thread.
Definition at line 89 of file HelloWorld.cpp.
|
inlineprotectedvirtual |
Reimplemented from RTT::base::TaskCore.
Definition at line 96 of file HelloWorld.cpp.
|
protected |
Attributes are aliased to class variables.
Definition at line 56 of file HelloWorld.cpp.
|
protected |
This RTT::InputPort buffers incoming data.
Definition at line 76 of file HelloWorld.cpp.
|
protected |
Constants are aliased, but can only be changed from the component itself.
Definition at line 61 of file HelloWorld.cpp.
|
protected |
Attribute that you can toggle to influence what is printed in updateHook()
Definition at line 52 of file HelloWorld.cpp.
|
protected |
We publish our data through this RTT::OutputPort
Definition at line 72 of file HelloWorld.cpp.
|
protected |
Properties take a name, a value and a description and are suitable for XML.
Definition at line 46 of file HelloWorld.cpp.