Skip to content

Commit e282df1

Browse files
committed
[Docs] Minor correction
1 parent 732d936 commit e282df1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

vmas/simulator/scenario.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,6 @@ def process_action(self, agent: Agent):
382382
383383
It has access to the world through the :class:`world` attribute
384384
385-
It can also be used for any other type of computation that has to happen after
386-
the input actions have been set but before the simulation step.
387-
388385
For example here you can manage additional actions before passing them to the dynamics.
389386
390387
Args:
@@ -397,7 +394,8 @@ def process_action(self, agent: Agent):
397394
>>> def process_action(self, agent):
398395
>>> # Clamp square to circle
399396
>>> agent.action.u = TorchUtils.clamp_with_norm(agent.action.u, agent.u_range)
400-
>>> # Can use a PID controller
397+
>>> # Can use a PID controller to turn velocity actions into forces
398+
>>> # (e.g., from vmas.simulator.controllers.velocity_controller)
401399
>>> agent.controller.process_force()
402400
>>> return
403401
"""

0 commit comments

Comments
 (0)