33 hello(
"Hello",
"The hello thing",
"World"),
34 cwport(
"cw_port",
'a'),
37 fwport(
"fw_port", 0.0),
43 drport(
"dr_port"), i(0)
45 this->properties()->addProperty( hello );
46 this->ports()->addPort( cwport );
47 this->ports()->addPort( swport );
48 this->ports()->addPort( iwport );
49 this->ports()->addPort( fwport );
50 this->ports()->addPort( dwport );
51 this->ports()->addPort( crport );
52 this->ports()->addPort( srport );
53 this->ports()->addPort( irport );
54 this->ports()->addPort( frport );
55 this->ports()->addPort( drport );
57 std::vector<double> init(10, 5.4528);
66 dwport.
write( std::vector<double>(10,i) );
75 if ( Logger::log().getLogLevel() < Logger::Info ) {
76 Logger::log().setLogLevel( Logger::Info );
78 <<
" manually raises LogLevel to 'Info' (5). See also file 'orocos.log'."<<endlog();
99 cout <<
endl<<
" This demo allows reporting of 3 Components at 100Hz, 200Hz and 50Hz." <<
endl;
100 cout <<
" Use 'reportComponent(\"MyPeer\")' and/or 'reportComponent(\"MyPeer2\")'" <<endl;
101 cout <<
" Then invoke 'start()' and 'stop()'" <<endl;
102 cout <<
" Other methods (type 'this') are available as well."<<endl;
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...
OutputPort< float > fwport
OutputPort< char > cwport
InputPort< float > frport
virtual bool connectPeers(TaskContext *peer)
int ORO_main(int argc, char **argv)
InputPort< short > srport
TestTaskContext(std::string name)
OutputPort< short > swport
WriteStatus write(const T &sample)
basic_ostreams & endl(basic_ostreams &s)
virtual bool setPeriod(Seconds s)
virtual bool addPeer(TaskContext *peer, std::string alias="")