- Timestamp:
- 02/06/10 05:32:01 (12 years ago)
- Location:
- rc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rc/emokey/puzzlebox_brainstorms.ekm
r32 r33 1 <EmoMappingModel mappingName="puzzlebox_brainstorms2.ekm" > 2 <EmoMapping enabled="1" name="drive_forward" keys="w" sendOnce="1" sendToFocus="0" targetApp="Puzzlebox Brainstorms - Client Interface" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="0" holdTime="20" triggerDelayTime="20" player="0"> 3 <EmoStateCondition> 4 <enabled value="1" /> 5 <action value="18" /> 6 <threshold type="double" value="0" /> 7 <actionRule value="2" /> 8 </EmoStateCondition> 1 <EmoMappingModel mappingName="puzzlebox_brainstorms.ekm" > 2 <EmoMapping enabled="1" name="drive_forward" keys="w" sendOnce="1" sendToFocus="1" targetApp="" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="1" holdTime="20" triggerDelayTime="20" player="0"> 9 3 <EmoStateCondition> 10 4 <enabled value="1" /> 11 5 <action value="20" /> 12 <threshold type="double" value="0 " />6 <threshold type="double" value="0.6" /> 13 7 <actionRule value="2" /> 14 8 </EmoStateCondition> 15 9 </EmoMapping> 16 <EmoMapping enabled="1" name=" turn_left" keys="a" sendOnce="1" sendToFocus="0" targetApp="Puzzlebox Brainstorms - Client Interface" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="0" holdTime="20" triggerDelayTime="20" player="0">10 <EmoMapping enabled="1" name="drive_left" keys="a" sendOnce="1" sendToFocus="1" targetApp="" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="1" holdTime="20" triggerDelayTime="20" player="0"> 17 11 <EmoStateCondition> 18 12 <enabled value="1" /> 19 13 <action value="22" /> 20 <threshold type="double" value="0 " />14 <threshold type="double" value="0.6" /> 21 15 <actionRule value="2" /> 22 16 </EmoStateCondition> 23 17 </EmoMapping> 24 <EmoMapping enabled="1" name="turn_right" keys="d" sendOnce="1" sendToFocus="0" targetApp="Puzzlebox Brainstorms - Client Interface" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="0" holdTime="20" triggerDelayTime="20" player="0"> 18 <EmoMapping enabled="1" name="drive_reverse" keys="s" sendOnce="1" sendToFocus="1" targetApp="" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="1" holdTime="20" triggerDelayTime="20" player="0"> 19 <EmoStateCondition> 20 <enabled value="1" /> 21 <action value="21" /> 22 <threshold type="double" value="0.6" /> 23 <actionRule value="2" /> 24 </EmoStateCondition> 25 </EmoMapping> 26 <EmoMapping enabled="1" name="drive_right" keys="d" sendOnce="1" sendToFocus="1" targetApp="" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="1" holdTime="20" triggerDelayTime="20" player="0"> 25 27 <EmoStateCondition> 26 28 <enabled value="1" /> 27 29 <action value="23" /> 28 <threshold type="double" value="0 " />30 <threshold type="double" value="0.6" /> 29 31 <actionRule value="2" /> 30 32 </EmoStateCondition> 31 33 </EmoMapping> 32 <EmoMapping enabled="1" name="drive_reverse" keys="s" sendOnce="1" sendToFocus="0" targetApp="Puzzlebox Brainstorms - Client Interface" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="0" holdTime="20" triggerDelayTime="20" player="0"> 33 <EmoStateCondition> 34 <enabled value="1" /> 35 <action value="21" /> 36 <threshold type="double" value="0" /> 37 <actionRule value="2" /> 38 </EmoStateCondition> 39 </EmoMapping> 40 <EmoMapping enabled="1" name="turn_left_in_reverse" keys="z" sendOnce="1" sendToFocus="0" targetApp="Puzzlebox Brainstorms - Client Interface" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="0" holdTime="20" triggerDelayTime="20" player="0"> 41 </EmoMapping> 42 <EmoMapping enabled="1" name="turn_right_in_reverse" keys="c" sendOnce="1" sendToFocus="0" targetApp="Puzzlebox Brainstorms - Client Interface" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="0" holdTime="20" triggerDelayTime="20" player="0"> 34 <EmoMapping enabled="1" name="turn_in_reverse" keys="c" sendOnce="1" sendToFocus="1" targetApp="" sendHotKeys="0" ctrlKey="0" altKey="0" shiftKey="0" winKey="0" hotKey="0" holdKey="1" holdTime="20" triggerDelayTime="20" player="0"> 43 35 <EmoStateCondition> 44 36 <enabled value="1" /> -
rc/puzzlebox_brainstorms_rc.py
r31 r33 9 9 # For more information please refer to http://www.gnu.org/copyleft/gpl.html 10 10 # 11 # Last Update: 2010.02.0 111 # Last Update: 2010.02.05 12 12 # 13 13 ##################################################################### … … 191 191 " certain speed for a certain duration" 192 192 193 left_power = -(power/3) 194 right_power = -power 195 196 self.drive(connection, left_power, right_power, duration) 197 198 199 ################################################################## 200 201 def turn_right_in_reverse(self, connection, power=80, duration=3): 202 203 "Turn the robot clockwise while backing up at a" 204 " certain speed for a certain duration" 205 193 206 left_power = -power 194 207 right_power = -(power/3) … … 199 212 ################################################################## 200 213 201 def turn_right_in_reverse(self, connection, power=80, duration=3):202 203 "Turn the robot clockwise while backing up at a"204 " certain speed for a certain duration"205 206 left_power = -(power/3)207 right_power = -power208 209 self.drive(connection, left_power, right_power, duration)210 211 212 ##################################################################213 214 214 def turn_left(self, connection, power=80, duration=2): 215 215 … … 298 298 # Functions 299 299 ##################################################################### 300 301 300 302 301 #####################################################################
Note: See TracChangeset
for help on using the changeset viewer.