NAO Software 1.14 documentation

Home | Site map | Search | Index
« previous | up | next »

Reacting to an event: bumper¶

<< return to examples index

NAOqi framework allows event-based programming: it is possible to define a callback function on an event. This callback function will be called each time the event is raised.

In this section, we will demonstrate how to implement a callback function on a simple event, raised when the right bumper is pressed.

  • Principle
  • Example code: Bumper module
« Moving NAO’s head | C++ Examples | Principle »

Quick search

Enter search terms or a module, class or function name.

Table Of Contents

  • Site map
  • Release notes - 1.14
  • ChangeLog
  • NAO
  • Software
  • Choregraphe User Guide
  • Programming Guide
    • NAOqi
    • Working with NAO
    • SDK
      • Cpp
        • C++ SDK Installation
        • C++ Tutorials
        • C++ Examples
          • Creating events
          • Say Hello World
          • Creating a simple remote module
          • Example: HelloWorld module
          • Creating a custom main
          • Moving NAO’s head
          • Reacting to an event: bumper
            • Principle
            • Example code: Bumper module
          • Example code: Bumper module
          • Principle
          • Control the LEDs
          • Fast getting and setting joint angles
          • Capturing audio and video
          • Using OpenCV
          • Optimized access to images
          • img2arv example
          • arv2avi example
          • Getting an image
          • Generic video module
          • Reacting to a vision event: face detected
          • Using ALVisualCompass
          • Sound playback
          • Speech based reaction
          • Sound based reaction
          • Reacting to an audio event: loud noise
          • Sound processing
        • C++ Tips and tricks
        • Debugging C/C++ on the robot
      • Python
      • .NET
      • Java
      • MatLab
      • Urbi
    • Examples
  • References
  • Glossary
  • Legal notices
« previous | up | next »