Making your mobile platform truly mobile by issuing voice commands
Prepare for lift off
You should now have a mobile platform that you can program to move in any number of ways. Unfortunately, you still have your LAN cable connected, so the platform isn't completely mobile. And once you have begun the program, you can't alter the behavior of your program. In this task, you will use the principles from Chapter 2, Programming the BeagleBone Black, to issue voice commands to initiate movement.
Engage thrusters
You'll need to modify your voice recognition program, so it will run your Python program when it gets a voice command. If you feel rusty on how this works, review Chapter 2, Programming the BeagleBone Black. You are going to make a simple modification to the continuous.c
program in /home/ubuntu/pocketsphinx-0.8/src/programs
. To do this, type: cd /home/ubuntu/pocketsphinx-0.8/src/programs
and then type emacs continuous.c
. The changes will come in the same section as your other voice commands...