7.10 Skill Playback
7.10 Skill Playback
7.10.1 Overview
The A3-Ultra skill playback section relies on the various resources imported through the resource management module, including motions, audio, and emoticons. Through the interfaces provided in this section, users can perform actions such as motion playback, audio playback, and emoticon playback.
Note: To obtain lists of these resources, use the Get Resource List interface provided by the resource management module.
7.10.2 Motion Play/Pause/Reset Interface
| Interface Name | pb:/aimdk.protocol.MotionCommandService/SendMotionCommand |
|---|---|
| Overview | Play the specified motion file |
| Interface Type | HTTP JSON RPC |
| URL | http://10.42.10.12:56444/rpc/aimdk.protocol.MotionCommandService/SendMotionCommand |
| Input | text
|
| Output | text
|
| Example Script | examples/skill_play/SendMotionCommand.py |
| Remarks |
|
7.10.3 Play Audio
| Interface Name | pb:/aimdk.protocol.HalAudioService/PlayFile |
|---|---|
| Overview | Play the specified audio file |
| Interface Type | HTTP JSON RPC |
| URL | http://10.42.10.10:56666/rpc/aimdk.protocol.HalAudioService/PlayFile |
| Input | Play a WAV file (recommended): text text
|
| Output | text
|
| Example Script | examples/skill_play/PlayFile.py |
| Remarks |
|
7.10.4 Stop Audio
| Interface Name | pb:/aimdk.protocol.HalAudioService/StopPlay |
|---|---|
| Overview | Stop the currently playing audio |
| Interface Type | HTTP JSON RPC |
| URL | http://10.42.10.10:56666/rpc/aimdk.protocol.HalAudioService/StopPlay |
| Input | text
|
| Output | text
|
| Example Script | examples/skill_play/StopPlay.py |
| Remarks |
|
7.10.5 Emoticon Playback
| Interface Name | /skill/pilot/face/play |
|---|---|
| Overview | Used to play emoticons |
| Interface Type | ros2 topic |
| Input | text
|
| Example Script | examples/skill_play/face_play.py |
| Remarks |
|
7.10.6 Skill Status Interface
| Interface Name | /skill/pilot/skill_status |
|---|---|
| Overview | Skill status interface |
| Interface Type | ros2 topic |
| Output | text
CoreState_Avatar = 6; // Avatar CoreState_Collecting = 9; // Data collection CoreState_MapBuilding = 13; // Mapping
BatteryState_DualBattery_NotCharging_LowPower = 7; BatteryState_DualBattery_Charging = 8; BatteryState_SingleBattery_NotCharging = 9; BatteryState_SingleBattery_Charging = 10; BatteryState_NoBattery_Charging = 11;
AutoChargingState_Navigating = 2; // Navigating AutoChargingState_NaviSuccess = 3; // Navigation succeeded AutoChargingState_NaviFailed = 4; // Navigation failed AutoChargingState_Plugging = 5; // Plugging in AutoChargingState_PlugSuccess = 6; // Plug-in succeeded AutoChargingState_PlugFailed = 7; // Plug-in failed AutoChargingState_Charging = 8; // Charging AutoChargingState_Unplugging = 9; // Unplugging AutoChargingState_UnplugSuccess = 10; // Unplug succeeded AutoChargingState_UnplugFailed = 11; // Unplug failed AutoChargingState_Finished = 12; // Autonomous charging flow completed AutoChargingState_Failed = 13; // Autonomous charging flow failed |
| Example Script | examples/skill_play/skill_status.py |
| Remarks |
|
7.10.7 Autonomous Charging Interface
| Interface Name | pb:/aimdk.protocol.SkillPilotService/AutoCharging |
|---|---|
| Overview | Autonomous charging interface |
| Interface Type | RPC |
| Input | text
AutoChargingCommand_STOP = 3; // Stop/end (while navigating: stop navigation and stay in place; while plugging in: complete plugging then unplug; while charging: unplug; while unplugging: no action) AutoChargingCommand_RESET = 4; // Reset after failure (call after Stop to restore autonomous charging to Idle; if not called, it automatically recovers after 10 seconds)
AutoChargingTrigger_AIMMASTER = 2; // AimMaster (manual click in app) AutoChargingTrigger_LOW_POWER = 3; // Automatically triggered by low battery AutoChargingTrigger_IDLE_TIMEOUT = 4; // Automatically triggered after a long idle timeout |
| Output | text
|
| Example Script | examples/skill_play/auto_charging.py |
| Remarks |
|
7.10.8 Dance Playback Interface
| Interface Name | pb:/aimdk.protocol.SkillPilotService/SkillPackage |
|---|---|
| Overview | Dance playback interface |
| Interface Type | rpc |
| Input | text
|
| Output | text |
| Example Script | examples/skill_play/dance_play.py |
| Remarks |
|