From 93fc8bc92d7653ef63332f49f27089072cfee3c1 Mon Sep 17 00:00:00 2001 From: ashivani <ashivani@aicrowd.com> Date: Wed, 4 Sep 2019 21:26:51 +0530 Subject: [PATCH] added multispeed-agentinfo --- docs/intro_observationbuilder.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/intro_observationbuilder.rst b/docs/intro_observationbuilder.rst index 0f80a5e8..fd03e264 100644 --- a/docs/intro_observationbuilder.rst +++ b/docs/intro_observationbuilder.rst @@ -351,7 +351,8 @@ Beyond the basic agent information we can also access more details about the age - Agent max speed :code:`agent.speed_data["speed"]` wich defines the traveling speed when the agent is moving. - Agent position fraction :code:``agent.speed_data["position_fraction"]` which is a number between 0 and 1 and indicates when the move to the next cell will occur. Each speed of an agent is 1 or a smaller fraction. At each :code:`env.step()` the agent moves at its fractional speed forwards and only changes to the next cell when the cumulated fractions are :code:`agent.speed_data["position_fraction"] >= 1.` - +- Agent can move at different speed which can be set up by modifying the agent.speed_data within the schedule_generator. For example refer this Link_ +.. _Link:https://gitlab.aicrowd.com/flatland/flatland/blob/master/flatland/envs/schedule_generators.py#L59 **Agent malfunction information** Similar to the speed data you can also access individual data about the malfunctions of an agent. All data is available through :code:`agent.malfunction_data` with: -- GitLab