Revision 9a88eb2e scout/scoutsim/BehaviorGUI.py

View differences:

scout/scoutsim/BehaviorGUI.py
45 45
			behaviorLabel.SetLabel("  |  Current Behavior: "+scouts[name])
46 46
		else:
47 47
			processes[name].send_signal(signal.SIGSTOP)
48
			subprocess.Popen("rosrun libscout libscout "+name+" 8", shell=True) 
48
			subprocess.Popen("rosrun libscout libscout "+name+" 0", shell=True) 
49 49
			print "Scout "+name+" was paused."
50 50
			behaviorButton.SetLabel("Resume")
51 51
			behaviorLabel.SetLabel("  |  Current Behavior: Paused")
52 52
		return True
53 53
	if name in processes:
54 54
		processes[name].kill()
55
	processes[name] = subprocess.Popen("rosrun libscout libscout "+name+" "+str(GetBehaviors().index(behavior))+"", shell=True) 
55
	processes[name] = subprocess.Popen("rosrun libscout libscout "+name+" "+str(GetBehaviors().index(behavior)+1)+"", shell=True) 
56 56
	behaviorButton.SetValue(False)
57 57
	behaviorButton.SetLabel("Pause")
58 58
	print "Scout "+name+" was set to behavior: "+behavior
......
83 83
		super(GUI, self).__init__(parent, title=title, style=wx.DEFAULT_FRAME_STYLE ^ wx.RESIZE_BORDER, size=(600, 600))
84 84
		self.InitUI()
85 85
		self.Show()     
86
		self.AddScoutBox("scout1")     
86 87

  
87 88
	def InitUI(self):
88 89
		self.window = wx.ScrolledWindow(self, style=wx.VSCROLL)

Also available in: Unified diff