25 hello(
"Hello",
"The hello thing",
"World"),
30 this->properties()->addProperty( hello );
31 this->ports()->addPort( drport );
32 this->ports()->addPort( dwport );
33 this->addAttribute( input );
36 std::vector<double> init(10, 1.0);
43 std::vector<double> init(10, input.
get() );
45 input.
set( input.
get() + 1 );
46 if (input.
get() > 100 )
62 hello(
"Hello",
"The hello thing",
"World"),
67 this->properties()->addProperty( hello );
68 this->ports()->addPort( drport );
69 this->ports()->addPort( dwport );
70 this->addAttribute( input );
77 input.
set( input.
get() + 1 );
78 if (input.
get() > 100 )
87 if ( Logger::log().getLogLevel() < Logger::Info ) {
88 Logger::log().setLogLevel( Logger::Info );
90 <<
" manually raises LogLevel to 'Info' (5). See also file 'orocos.log'."<<endlog();
112 cout <<
endl<<
" This demo allows reporting of Components." <<
endl;
113 cout <<
" Use 'reportComponent(\"MyPeer\")' and/or 'reportComponent(\"MyPeer2\")'" <<endl;
114 cout <<
" Then invoke 'start()' and 'stop()'" <<endl;
115 cout <<
" Other methods (type 'this') are available as well."<<endl;
void setDataSample(const T &sample)
OutputPort< std::vector< double > > dwport
void loop()
Call this method from ORO_main() to process keyboard input and thus startup the TaskBrowser.
This component allows a text client to browse the peers of a peer RTT::TaskContext and execute comman...
InputPort< double > drport
Attribute< double > input
bool setActivity(base::ActivityInterface *new_act)
TestTaskContext(std::string name)
Attribute< double > input
WriteStatus write(const T &sample)
int ORO_main(int argc, char **argv)
basic_ostreams & endl(basic_ostreams &s)
InputPort< std::vector< double > > drport
virtual bool connectPorts(TaskContext *peer)
TestTaskContext2(std::string name)
OutputPort< double > dwport
virtual bool addPeer(TaskContext *peer, std::string alias="")
boost::shared_ptr< ServiceType > getProvider(const std::string &name)