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
00016
00017
00018
00019
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
00033
00034
00035