public Node(string ip, int port,int type) { this.type = type; this.ip = ip; this.port = port; thread = new Thread(new ThreadStart(beginNode)); end = false; nextIntimacyDistributionSpeaking = new Normal(4.0, 1.0); nextIntimacyDistributionListening = new Normal(5.0, 1.0); intimacyLengthDistribution = new Normal(1.0, 0.2); tracker = new FaceTrackerProxy(ip,port); tracker.setWholeBodyOn(false); }
public tracker(string ip, int port) { this.ip = ip; this.port = port; motion = new MotionProxy(ip, port); RobotPostureProxy pos = new RobotPostureProxy(ip, port); ArrayList stiff = new ArrayList(); stiff.Add(1.0F); stiff.Add(1.0F); ArrayList joint = new ArrayList(); joint.Add("Head"); motion.setStiffnesses(joint, stiff); pos.goToPosture("SitRelax", 0.6F); track = new FaceTrackerProxy(ip, port); track.setWholeBodyOn(false); track.startTracker(); Thread.Sleep(30000); track.stopTracker(); stiff.Clear(); stiff.Add(0.0F); stiff.Add(0.0F); motion.setStiffnesses(joint, stiff); }