> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Torque

> A class to represent 3D torque

```python theme={null}
from grid_types import Torque
```

A class to represent 3D torque.

Represents torque in 3D space with x, y, and z components.
Supports mathematical operations and conversions to/from various formats.

## Fields

<ResponseField name="x" type="float">
  x-component of torque (N⋅m)
</ResponseField>

<ResponseField name="y" type="float">
  y-component of torque (N⋅m)
</ResponseField>

<ResponseField name="z" type="float">
  z-component of torque (N⋅m)
</ResponseField>

## Constructor

```python Signature theme={null}
Torque(x: float, y: float, z: float)
```

## Methods

### `from_dict()`

```python Signature theme={null}
from_dict(data: dict) -> Torque
```

Deserialize from dictionary.

<ParamField body="data" required>
  Dictionary containing torque data
</ParamField>

**Returns:**

Torque: Reconstructed torque object

### `to_dict()`

```python Signature theme={null}
to_dict() -> dict
```

Serialize to dictionary for JSON transfer.

**Returns:**

dict: Dictionary representation of the torque


## Related topics

- [IsaacArm](/python-api/isaac-robots/isaacarm.md)
- [IsaacBimanual](/python-api/isaac-robots/isaacbimanual.md)
- [IsaacHumanoid](/python-api/isaac-robots/isaachumanoid.md)
- [IsaacLocomotion](/python-api/isaac-robots/isaaclocomotion.md)
- [IsaacMobileBimanual](/python-api/isaac-robots/isaacmobilebimanual.md)
