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 section, you will use the principles from Chapter 1, Preparing the BeagleBone Black, to issue voice commands to initiate movement.
You'll need to modify your voice recognition program so that it can run your Python program when it gets a voice command. You have 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 ...