pepper.framework.component package¶
Component¶
Applications are made out of several instances of AbstractComponent,
which expose various methods and events to applications. They’re summarized below:
CameraComponentexposes theon_image()event.MicrophoneComponentexposes theon_audio()event.SpeechRecognitionComponentexposes theon_transcript()event.ObjectDetectionComponentexposes theon_object()event.FaceRecognitionComponentexposes theon_face(),on_face_known()&on_face_new()events.TextToSpeechComponentexposes thesay()method.BrainComponentexposespepper.brain.long_term_memory.LongTermMemoryto the application.
Some Components are more complex and require other components to work. They will raise a pepper.framework.abstract.component.ComponentDependencyError if dependencies are not met.
ContextComponentexposespepper.framework.context.Contextto the application and overrides thesay()method to work with theChatclass. It also exposes theon_chat_turn(),on_chat_enter()&on_chat_exit()events.StatisticsComponentdisplays realtime system statistics in the command line.SceneComponentcreates a 3D scatterplot of the visible space.DisplayComponentshows the live camera feedback and the 3D view of the current space, including the objects that are observed.
- pepper.framework.component.brain module
- pepper.framework.component.camera module
- pepper.framework.component.context module
- pepper.framework.component.explore module
- pepper.framework.component.face_detection module
- pepper.framework.component.microphone module
- pepper.framework.component.object_detection module
- pepper.framework.component.scene module
- pepper.framework.component.speech_recognition module
- pepper.framework.component.statistics module
- pepper.framework.component.text_to_speech module