Aldebaran documentation

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

Reacting to an event: bumper¶

<< return to C++ examples

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

Quick search

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

Table Of Contents

  • Site map
  • What’s new
  • NAO Documentation
  • Romeo Documentation
  • NAOqi Developer guide
    • Getting Started
    • Programming
      • Choregraphe User Guide
      • Python SDK
      • Working with NAOqi
      • C++ SDK
        • C++ Tutorial
        • 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
          • Capturing audio and video
          • Using OpenCV
          • Optimized access to images
          • 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
      • Simulators
      • QiMessaging JavaScript
      • Java SDK
    • NAOqi Framework
    • Managing my robot
  • Glossary
  • Legal notices
« previous | up | next »