irsim.lib.behavior.behavior_registry#

Attributes#

Functions#

register_behavior(kinematics, action)

decorator to register a method in the behavior registry

Module Contents#

irsim.lib.behavior.behavior_registry.behaviors_map: dict[tuple[str, str], Callable[Ellipsis, Any]]#
irsim.lib.behavior.behavior_registry.register_behavior(kinematics: str, action: str)[source]#

decorator to register a method in the behavior registry

Parameters:
  • kinematics – only support diff, omni, or acker

  • action – defined action for the kinematics

Returns:

A decorator that registers the target function under the (kinematics, action) key and returns the function unchanged.

Return type:

Callable