POST/v1/brain/reason

Brain Reason

Send the current robot state (state_25) to the Zenith Brain and receive a thought_process and an action vector (action_16). Use this for real-time reasoning and motion planning.

Request body

state_25: object (sensor fusion, pose, goals)

Response

thought_process: string, action_16: number[] (normalized action vector)

Code sample
# Python (ROS2)
from zenith_sdk import ZenithBrain

brain = ZenithBrain()
state = robot.get_sensor_fusion()  # state_25
result = brain.reason(state)
action = result["action_16"]
thought = result["thought_process"]
# Apply action to motors
robot.execute(action)