unilab.envs.mdp.actions.actions.RelativeJointPositionActionCfg

class unilab.envs.mdp.actions.actions.RelativeJointPositionActionCfg[source]

Bases: BaseActionCfg

Joint position targets relative to the current measured position.

target = current_joint_pos + action * scale. A fixed offset has no useful meaning for this transmission and is rejected during construction.

Parameters:

Methods

__init__(*, entity_name[, clip, scale, ...])

build(env)

Build the action term from this config.

Attributes

clip

Optional clipping bounds applied to processed actions (after scale and offset).

offset

preserve_order

scale

actuator_names

entity_name

Name of the entity in the scene that this action term controls.

build(env)[source]

Build the action term from this config.

Parameters:

env (ManagerBasedRlEnv)

Return type:

RelativeJointPositionAction

__init__(*, entity_name, clip=None, actuator_names, scale=1.0, offset=0.0, preserve_order=False)
Parameters:
clip: dict[str, tuple] | None = None

Optional clipping bounds applied to processed actions (after scale and offset). Dict maps actuator name regex patterns to (min, max) tuples, resolved the same way as scale and offset.

offset: float | dict[str, float] = 0.0
preserve_order: bool = False
scale: float | dict[str, float] = 1.0
actuator_names: tuple[str, ...] | list[str]
entity_name: str

Name of the entity in the scene that this action term controls.