Pioneer Module Mobile Appendix a, Example C Program Demonstrates Gripper and Speaker Functions

Models: Module Mobile

1 32
Download 32 pages 21.03 Kb
Page 24
Image 24

7.Appendix A

Example C Program Demonstrates Gripper and Speaker Functions

/* ################################################################

*gripper.c --- Saphira-based functions for controlling the gripper and speaker *#################################################################

**Copyright 1997 by Kurt Konolige

**

**The author hereby grants to SRI permission to use this software.

**The author also grants to SRI permission to distribute this software

**to schools for non-commercial educational use only.

**

**The author hereby grants to other individuals or organizations

**permission to use this software for non-commercial

**educational use only. This software may not be distributed to others

**except by SRI, under the conditions above.

**

**Other than these cases, no part of this software may be used or

**distributed without written permission of the author.

**

**Neither the author nor SRI make any representations about the

**suitability of this software for any purpose. It is provided

**"as is" without express or implied warranty.

**

**Kurt Konolige

**Senior Computer Scientist

**SRI International

**333 Ravenswood Avenue

**Menlo Park, CA 94025

**E-mail: konolige@ai.sri.com

**/

#include "saphira.h" /*

* New comm function --- writes two bytes as argument */

(continued)

20

Page 24
Image 24
Pioneer Module Mobile manual Appendix a, Example C Program Demonstrates Gripper and Speaker Functions