icub-client
dummy.h
Go to the documentation of this file.
1 #ifndef DUMMY_H
2 #define DUMMY_H
3 
4 #include <iostream>
5 #include <yarp/os/all.h>
6 
7 #include "behavior.h"
8 
12 class Dummy: public Behavior
13 {
14 private:
15  static int n_instances;
16  int id;
17 
18 protected:
19  void run(const yarp::os::Bottle &/*args*/) {
20  yDebug() << "Dummy::run start " + behaviorName;
21  yarp::os::Time::delay(4);
22  yDebug() << "Dummy::run stop " + behaviorName;
23  }
24 
26  ;
27  }
28 
29 public:
30  Dummy(yarp::os::Mutex* mut, yarp::os::ResourceFinder &rf, icubclient::ICubClient* iCub, std::string behaviorName): Behavior(mut, rf, iCub, behaviorName) {
31  n_instances++;
32  id = n_instances;
33  }
34 
35  void configure() {
36  ;
37  }
38 };
39 
40 #endif
icubclient::ICubClient * iCub
Definition: behavior.h:20
Grants access to high level motor commands (grasp, touch, look, goto, etc) of the robot as well as it...
Definition: icubClient.h:66
Definition: dummy.h:12
void configure()
Definition: dummy.h:35
Dummy(yarp::os::Mutex *mut, yarp::os::ResourceFinder &rf, icubclient::ICubClient *iCub, std::string behaviorName)
Definition: dummy.h:30
std::string behaviorName
Definition: behavior.h:27
void run(const yarp::os::Bottle &)
Definition: dummy.h:19
yarp::os::ResourceFinder & rf
Definition: behavior.h:21
void close_extra_ports()
Definition: dummy.h:25