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:
CameraComponent
exposes theon_image()
event.MicrophoneComponent
exposes theon_audio()
event.SpeechRecognitionComponent
exposes theon_transcript()
event.ObjectDetectionComponent
exposes theon_object()
event.FaceRecognitionComponent
exposes theon_face()
,on_face_known()
&on_face_new()
events.TextToSpeechComponent
exposes thesay()
method.BrainComponent
exposespepper.brain.long_term_memory.LongTermMemory
to 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.
ContextComponent
exposespepper.framework.context.Context
to the application and overrides thesay()
method to work with theChat
class. It also exposes theon_chat_turn()
,on_chat_enter()
&on_chat_exit()
events.StatisticsComponent
displays realtime system statistics in the command line.SceneComponent
creates a 3D scatterplot of the visible space.DisplayComponent
shows 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