//run a behavior on the robot private void RunBehavior(string behaviorName) { MotionProxy.wakeUp(); AudioProxy.setOutputVolume(Properties.Settings.Default.AudioOutputVolume); CurrentlyRunningLabel.Content = "Currently Running: " + behaviorName; int ID = BehaviorManagerProxy.post.runBehavior(behaviorName); LogBehavior(behaviorName); RemoveStiffness = behaviorName != "contingency/introduction"; CurrentlyRunningLabel.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new BehaviorWaiterDelegate(WaitForBehaviorToFinish), ID); }