source: level2/competencies/SamgarV1Modules/expressive-behaviours-uh/L2ExpressiveBehaviour.cpp @ 1706

Revision 460, 712 bytes checked in by KDucasse, 10 years ago (diff)
Line 
1#include <Windows.h>
2#include <iostream>
3#include "SamgarMainClass.h"
4
5using namespace std;
6using namespace yarp;
7
8int main(void)
9{
10        Network yarp;                   //name                                  //Category              //subcategory   
11        SamgarModule Behaviour( "BehaviourExpression",  "Behaviours",   "PhysicalDisplaySound", SamgarModule::run);
12        Behaviour.AddPortS("BehaviourOut");
13        Bottle ChosenBehaviour;
14
15        int userChoice=0;
16
17        while (userChoice<=6)
18        {
19                cout<<"Input Behaviour Choice\n";
20                cin>>userChoice;
21                cout<<"choice"<<userChoice;
22                ChosenBehaviour.clear();
23                ChosenBehaviour.addInt(userChoice);
24                Behaviour.SendBottleData("BehaviourOut",ChosenBehaviour);
25                //ChosenBehaviour.clear();
26
27                //Behaviour.SucceedFail(true,0);
28        }
29}
Note: See TracBrowser for help on using the repository browser.