Exemplo n.º 1
0
 def d_pressed(self):
     motor_speed = self.get_general_motor_val()
     robotInterface.sendDriveCommand(2, motor_speed)
     if self.ENABLE_DEBUGGING:
         rospy.loginfo("d key pressed")
Exemplo n.º 2
0
 def keyReleaseEvent(self, event):
     if event.key() in (Qt.Key_W, Qt.Key_S, Qt.Key_A, Qt.Key_D):
         if not event.isAutoRepeat():
             rospy.loginfo("Key released")
             robotInterface.sendDriveCommand(0, 0)