visualizers.viser_app.tasks.spot.spot_box#

Module Contents#

visualizers.viser_app.tasks.spot.spot_box.Z_AXIS#
visualizers.viser_app.tasks.spot.spot_box.RESET_OBJECT_POSE#
visualizers.viser_app.tasks.spot.spot_box.RADIUS_MIN = 1.0#
visualizers.viser_app.tasks.spot.spot_box.RADIUS_MAX = 2.0#
class visualizers.viser_app.tasks.spot.spot_box.SpotBoxConfig#

Bases: jacta.visualizers.viser_app.tasks.spot_base.SpotBaseConfig

Config for the spot box manipulation task. .. py:attribute:: default_command

type:

numpy.ndarray

goal_position: numpy.ndarray#
w_orientation: float = 15.0#
w_torso_proximity: float = 0.1#
w_gripper_proximity: float = 4.0#
orientation_threshold: float = 0.5#
class visualizers.viser_app.tasks.spot.spot_box.SpotBox#

Bases: jacta.visualizers.viser_app.tasks.spot_base.SpotBase[SpotBoxConfig]

Task getting Spot to move a box to a desired goal location. .. py:property:: nu

type:

int

Number of controls for this task.

property actuator_ctrlrange: numpy.ndarray#

Control bounds for this task.

Return type:

numpy.ndarray

reward(states: numpy.ndarray, sensors: numpy.ndarray, controls: numpy.ndarray, config: SpotBoxConfig, additional_info: dict[str, Any]) numpy.ndarray#

Reward function for the Spot box moving task.

Parameters:
  • states (numpy.ndarray) –

  • sensors (numpy.ndarray) –

  • controls (numpy.ndarray) –

  • config (SpotBoxConfig) –

  • additional_info (dict[str, Any]) –

Return type:

numpy.ndarray

reset() None#

Reset function for the spot box manipulation task .

Return type:

None