Producer.cpp
Go to the documentation of this file.
00001 #include "Producer.hpp"
00002 
00003 using namespace cross_producer;
00004 
00005 Producer::Producer(std::string const& name, TaskCore::TaskState initial_state)
00006     : ProducerBase(name, initial_state) {}
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00015 // hooks defined by Orocos::RTT. See Producer.hpp for more detailed
00016 // documentation about them.
00017 
00018 // bool Producer::configureHook() { return true; }
00019 // bool Producer::startHook() { return true; }
00020 
00021 void Producer::updateHook()
00022 {
00023     static int i = 0;
00024     NotOrogenCompatible::Point2D point;
00025     point.x() = ++i;
00026     point.y() = ++i;
00027     _point.write(point);
00028     if (i == 20)
00029         exit(0);
00030 }
00031 
00032 // void Producer::errorHook() {}
00033 // void Producer::stopHook() {}
00034 // void Producer::cleanupHook() {}
00035 


orogen
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:29