Skip to content

Self-improving AI Employees for everyone

1.7 KB
Raw Blame

Motion Detection (motionDetection)

Field Value
Category android / sensors
Backend handler plugin server/nodes/android/motion_detection/__init__.py; dispatch via BaseNode.execute() -> shared AndroidServiceBase.invoke (@Operation("invoke"))
Tests server/tests/nodes/test_android.py
Skill (if any) server/skills/android_agent/motion-skill/SKILL.md
Direct agent tool connectable to any agent's input-tools

Purpose

Accelerometer and gyroscope readings; derived signals such as shake gestures and device orientation.

Backend service mapping

Field Value
SERVICE_ID_MAP[motionDetection] motion_detection
Default action current_motion

Parameters

Shared parameter set only.

Logic Flow (node-specific slice)

flowchart TD
  A[Dispatch] --> B[service_id = 'motion_detection']
  B --> C{action}
  C -- current_motion --> D[POST /api/motion_detection]
  C -- orientation --> D
  C -- shake_detect --> D
  D --> E[Flatten data: accelerometer, gyroscope,<br/>orientation, shake]

Edge cases & known limits

  • Experimental service - sensor availability varies by device. Missing sensors return success=false with a device-level error.
  • Shared edge cases only otherwise.

Related