Skip to content

Commit

Permalink
Added speaking button.
Browse files Browse the repository at this point in the history
  • Loading branch information
JosjaG committed Jun 18, 2021
1 parent 9f1e8e6 commit a5bfcc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/joystick_controls_node
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class JoystickControls(object):
self.base_command.linear.y = 0.4 * mapping['right_stick_horizontal']
if abs(mapping['left_stick_horizontal']) > 0.1: # angular base movement
self.base_command.angular.z = 0.6 * mapping['left_stick_horizontal']
if mapping['right_bumper']:
self.robot.speech.speak("Beep. Boop. Beep boop.")

if abs(mapping['right_stick_horizontal']) < 0.1 and abs(mapping['right_stick_vertical']) < 0.1 and abs(mapping['left_stick_horizontal']) < 0.1:
self.base_command = Twist()
Expand Down

0 comments on commit a5bfcc1

Please sign in to comment.