plotting
Trajectory visualization and plotting utilities.
Important
THIS MODULE IS IN MAJOR NEED OF REFACTORING AND SHOULD NOT BE USED.
The plotting module is currently undergoing significant restructuring and should be considered unstable. The API is subject to change without notice. Use at your own risk.
This module provides visualization utilities for trajectory optimization results. It includes functions for plotting state trajectories, control inputs, constraint violations, and creating animations of the optimization process.
qdcm(q: np.ndarray) -> np.ndarray
¶
Convert a quaternion to a direction cosine matrix (DCM).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
q
|
ndarray
|
Quaternion array [w, x, y, z] where w is the scalar part |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
3x3 rotation matrix (direction cosine matrix) |