> ## 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.

# Velocity

> A class to represent 3D velocity

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

A class to represent 3D velocity.

Represents velocity 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 velocity (m/s or rad/s)
</ResponseField>

<ResponseField name="y" type="float">
  y-component of velocity (m/s or rad/s)
</ResponseField>

<ResponseField name="z" type="float">
  z-component of velocity (m/s or rad/s)
</ResponseField>

## Constructor

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

## Properties

<ResponseField name="x_vel" type="float" />

<ResponseField name="y_vel" type="float" />

<ResponseField name="z_vel" type="float" />

## Methods

### `from_dict()`

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

Deserialize from dictionary.

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

**Returns:**

Velocity: Reconstructed velocity object

### `to_dict()`

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

Serialize to dictionary for JSON transfer.

**Returns:**

dict: Dictionary representation of the velocity


## Related topics

- [MDP Config](/simulation/isaac/session_configuration/mdp.md)
- [Customizing RL Training](/simulation/isaac/reinforcement-learning/customizing-training.md)
- [Overview](/simulation/isaac/teleoperation/overview.md)
- [Sensors](/simulation/isaac/sensors.md)
- [ROS2 Communication](/simulation/isaac/comms.md)
