Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Beaglebone Robotics

You're reading from  Mastering Beaglebone Robotics

Product type Book
Published in Dec 2014
Publisher
ISBN-13 9781783988907
Pages 234 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Richard Grimmett Richard Grimmett
Profile icon Richard Grimmett

Table of Contents (18) Chapters

Mastering BeagleBone Robotics
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Preparing the BeagleBone Black Building a Basic Tracked Vehicle Adding Sensors to Your Tracked Vehicle Vision and Image Processing Building a Robot that Can Walk A Robot that Can Sail Using GPS for Navigation Measuring Wind Speed – Integrating Analog Sensors An Underwater Remotely Operated Vehicle A Quadcopter An Autonomous Quadcopter Index

Issuing voice commands to your quadruped


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 then type emacs continuous.c. The changes will occur in the same section as your other voice commands and will look like this:

The additions are pretty straightforward. Let's walk through them:

  • else if (strcmp(word, "FORWARD") == 0): This checks the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}