Test.cpp

Go to the documentation of this file.
00001 /*
00002  * This file is part of Micole Architecture
00003  *
00004  * Copyright (C) 2007 Micole partners
00005  *
00006  * Micole Architecture is free software: you can redistribute it 
00007  * and/or modify it under the terms of the GNU Lesser General 
00008  * Public License as published by the Free Software Foundation, 
00009  * either version 3 of the License, or (at your option) any 
00010  * later version.
00011  *
00012  * Micole Architecture is distributed in the hope that it will be 
00013  * useful, * but WITHOUT ANY WARRANTY; without even the implied 
00014  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00015  * PURPOSE.  See the GNU Lesser General Public License for more 
00016  * details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with Micole Architecture.  If not, see
00020  * <http://www.gnu.org/licenses/>.
00021  */
00022 
00023 //reachin in test
00024 
00025 // ugly patch against the inclusion loop problem...
00026 #include "stdafx.h"
00027 
00028 #include "RegistryAgent.h"
00029 #include "TimerAgent.h"
00030 #include "LoggerAgent.h"
00031 #include "ReachinMicoleApplication.h"
00032 #include "FF3DDeviceSenderAgent.h"
00033 #include "FF3DDeviceInputAgent.h"
00034 #include "FF3DDeviceOutputAgent.h"
00035 #include "FF3DGuidanceAgent.h"
00036 
00037 #include "KeyboardSenderAgent.h"
00038 
00039 #include "InputAgentExample.h"
00040 #include "PicobgAgent.h"
00041 
00042 #include "VTPlayerSenderAgent.h"
00043 #include "VTPlayerInputAgent.h"
00044 #include "VTPlayerOutputAgent.h"
00045 
00046 #include "MouseSenderAgent.h"
00047 #include "MouseInputAgent.h"
00048 
00049 #include "GuidanceAgent.h"
00050 
00051 #include <Vrml.h>
00052 #include <Display.h>
00053 #include <Scene.h>
00054 #include <Node.h>
00055 #include <Field.h>
00056 
00057 #include <iostream>
00058 
00059 using namespace Reachin;
00060 using namespace std;
00061 
00062 int main(int argc, char* argv[])
00063 {
00064         ReachinMicoleApplication * ama = ReachinMicoleApplication::getInstance();
00065         //ama->startNetwork();
00066 
00067         FF3DGuidanceAgent ga;
00068 
00069         ama->sendBusMessage("Set stiffness = 1.5;");
00070         ama->sendBusMessage("Set d = 0.02;");
00071 
00072         LoggerAgent la;
00073 
00074         //AbstractMicoleApplication * ama = AbstractMicoleApplication::getInstance();
00075         InputAgentExample ia;
00076 
00077         //FF3DDeviceInputAgent * ia = new PicobgAgent();
00078 
00079         //AdditionAgent a;
00080         //MultiplicationAgent m;
00081         //HelloAgent ha("Hello");
00082 
00083 /*      VTPlayerSenderAgent * vtsa = new VTPlayerSenderAgent();
00084         VTPlayerInputAgent * vtia = new VTPlayerInputAgent();
00085 
00086         VTPlayerOutputAgent * vtoa = new VTPlayerOutputAgent();*/
00087 
00088         KeyboardSenderAgent ksa;
00089 
00090         FF3DDeviceOutputAgent oa = FF3DDeviceOutputAgent();
00091 
00092         //ama->sendBusMessage("OUT FF3D : point=(0,0,0.01);");
00093         //ama->sendBusMessage("OUT FF3D : line=((0, 0, 0),(0.2, 0.2, 0.2));");
00094         //ama->sendBusMessage("OUT FF3D : plan=((0, 0, 0),(1, 3, 3));");
00095 
00096 //      Sleep(1000);
00097 
00098         /*while(1){
00099                 ama->sendBusMessage("Time");
00100         }*/
00101 
00102         FF3DDeviceSenderAgent sa = FF3DDeviceSenderAgent(8);
00103         MouseSenderAgent msa = MouseSenderAgent(); 
00104 
00105 
00106         //ama->sendBusMessage("OUT VTP : right=(0001000100010001);");
00107         //ama->sendBusMessage("OUT VTP : left=(0001000100010001,0010001000100010,0100010001000100,1000100010001000); dur=200;");
00108 
00109         //Sleep(1000);
00110 
00111         //ama->sendBusMessage("Net: OUT VTP : right=(0000000000001111,0000000011110000,0000111100000000,1111000000000000); dur=100;");
00112 
00113         GuidanceAgent gagent;
00114 
00115         //ama->sendIvyMessage("Net: Test network");
00116         ama->startScene();
00117 
00118         //Sleep(100000);
00119 }

Generated on Tue Oct 16 17:10:43 2007 for Micole by  doxygen 1.4.7