System service

System service is a program where Cruzr implements the basic functions and provides APIs for robotic applications. Divided by hardware components or software functions, Cruzr provides various system services. Robot applications can call the APIs of these system services to implement their complex functions.

Here are all the system services Cruzr currently offers:

Service name Service function
SpeechManager Speech service wake up, speech recognition, text-to-speech, and natural language processing
ServoManager Obtain servo equipment and control its rotation, etc.
MotionManager Perform motions and get poses
LocomotionManager Turn, move in straight lines or around corners
EmotionManager Use animation to express the robot's emotions
LightManager Obtain lighting equipment, control the switch on lighting equipment, change color, play lighting effects
OrchestrationManager Use locomotion, movement, lights, emotions, etc. to choreograph dances and make the robot dance
SensorManager Obtain sensor device data and listen sensor environmental data
NavigationManager Manage maps, positioning and navigation
DiagnosisManager Diagnose and listen faults of various components
PowerManager Listen power on and off, sleep and wake up, power and battery status
RechargingManager Automatic charging

These system services can be obtained in the following ways:

FooManager fooManager = robotContext.getSystemService(FooManager.SERVICE);

Take the speech service as an example:

SpeechManager speechManager = robotContext
        .getSystemService(SpeechManager.SERVICE);