PyDummy#

Another behavior that ignores collisions

Bases: Behavior

Dummy Behavior that ignore obstacles instead of avoiding them. Equivalent to the C++ class navground::core::DummyBehavior. Implemented to demonstrate that sub-classing Behavior works in Python

Registered properties:

  • dummy [bool] (deprecated synonyms: not_so_smart)

  • tired [bool]

State: none

Constructs a new instance.

Parameters:
  • kinematics – The kinematics of the agent.

  • radius – The radius of the agent.

Computes a control velocity towards a desired position

Users may override it to specialize a Behavior.

The base implementation returns a null vector.

Parameters:
  • point – The desired point in world-fixed frame

  • speed – The desired speed

  • time_step – The time step

Returns:

A velocity in world-fixed frame

Computes a control velocity towards a desired velocity

Users may override it to specialize a Behavior.

The base implementation returns a null vector.

Parameters:
  • velocity – The desired velocity in world-fixed frame

  • time_step – The time step

Returns:

A velocity in world-fixed frame