isaaclab_contrib.mdp#
Actions#
Classes
|
Configuration for the thrust action term. |
|
Thrust action term that applies the processed actions as thrust commands. |
Thrust Action Configuration#
- class isaaclab_contrib.mdp.actions.thrust_actions_cfg.ThrustActionCfg[source]#
Bases:
ActionTermCfgConfiguration for the thrust action term.
See
ThrustActionfor more details.Attributes:
Name or regex expression of the asset that the action will be mapped to.
Scale factor for the action (float or dict of regex expressions).
Whether to visualize debug information.
Clip range for the action (dict of regex expressions).
Offset factor for the action (float or dict of regex expressions).
Whether to preserve the order of the asset names in the action output.
Whether to use default thrust (e.g.
- scale: float | dict[str, float]#
Scale factor for the action (float or dict of regex expressions). Defaults to 1.0.
- clip: dict[str, tuple] | None#
Clip range for the action (dict of regex expressions). Defaults to None.
- offset: float | dict[str, float]#
Offset factor for the action (float or dict of regex expressions). Defaults to 0.0.
Thrust Action Implementation#
- class isaaclab_contrib.mdp.actions.thrust_actions.ThrustAction[source]#
Bases:
ActionTermThrust action term that applies the processed actions as thrust commands. Actions are processed by applying an affine transformation (scaling and offset) and clipping.
Attributes:
The configuration of the action term.
Device on which to perform computations.
Whether to export the IO descriptor for the action term.
Whether the action term has a debug visualization implemented.
Number of environments.
Dimension of the action term.
The input/raw actions sent to the term.
The actions computed by the term after applying any processing.
The IO descriptor of the action term.
Methods:
__init__(cfg, env)Initialize the action term.
General serialization call.
set_debug_vis(debug_vis)Sets whether to visualize the action term data.
process_actions(actions)Process actions by applying scaling, offset, and clipping.
Apply the processed actions as thrust commands.
reset([env_ids])Reset the action term.
- cfg: thrust_actions_cfg.ThrustActionCfg#
The configuration of the action term.
- __init__(cfg: thrust_actions_cfg.ThrustActionCfg, env: ManagerBasedEnv) None[source]#
Initialize the action term.
- Parameters:
cfg – The configuration object.
env – The environment instance.
- property has_debug_vis_implementation: bool#
Whether the action term has a debug visualization implemented.
- set_debug_vis(debug_vis: bool) bool#
Sets whether to visualize the action term data. :param debug_vis: Whether to visualize the action term data.
- Returns:
Whether the debug visualization was successfully set. False if the action term does not support debug visualization.
- property raw_actions: torch.Tensor#
The input/raw actions sent to the term.
- property processed_actions: torch.Tensor#
The actions computed by the term after applying any processing.
- property IO_descriptor: GenericActionIODescriptor#
The IO descriptor of the action term.
- process_actions(actions: torch.Tensor)[source]#
Process actions by applying scaling, offset, and clipping.