reset_task
Starts a new robot simulation episode, optionally selecting suite, task, and initial layout, and returns run ID, task details, images, robot state, and step info.
Instructions
Start a new FakeSim episode. All three arguments are optional: omit them all to use the server's default scene (usually task 0 of the suite with initial layout 0), which is the most common use. To switch tasks, use list_tasks first: without arguments it lists the suites, with suite it gives the task_index and instruction of every task in that suite; then pass the chosen suite / task_index. init_state_index picks another object layout of the same task. If the server was started with --lock-task (task_locked is true in get_session_info), passing any of these arguments returns a task_locked error. If an episode is already running, returns already_running; call stop_episode first. Returns run (short run ID), task (suite, task_index, name, instruction, init_state_index), images (agentview and robot0_eye_in_hand: two separate PNGs), state (eef_pos_m is the end-effector XYZ position in meters; eef_rpy_rad.roll_x, pitch_y and yaw_z are the orientation about the robot base X/Y/Z axes in radians; gripper.command is the open/close target and gripper.opening_m the gripper opening in meters), step (simulation steps used) and steps_left (simulation steps left in this episode).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suite | No | Switch to another suite; omit to keep the current one. See list_tasks (without arguments) for the suites. | |
| task_index | No | Which task of the suite; omit to use the server's default scene (task 0 when switching suites). See list_tasks with suite for the options. | |
| init_state_index | No | Which initial layout of the task; 0 if omitted. Must be below the task's n_init_states. |