aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator.utils.plotting Namespace Reference

Functions

 plot_convergence (HistoryCallback cb, plt.Axes ax, Results res=None, *, show_al_iters=False, legend_kwargs={})
 
plt.Rectangle plot_se2_pose (np.ndarray q, plt.Axes ax, alpha=0.5, fc="tab:blue")
 
list[plt.Axes] _axes_flatten_if_ndarray (axes)
 
tuple[plt.Figure, list[plt.Axes]] plot_controls_traj (times, us, ncols=2, axes=None, effort_limit=None, joint_names=None, rmodel=None, figsize=(6.4, 6.4), xlabel="Time (s)")
 
tuple[plt.Figure, list[plt.Axes]] plot_velocity_traj (times, vs, rmodel, axes=None, ncols=2, vel_limit=None, figsize=(6.4, 6.4), xlabel="Time (s)")
 

Function Documentation

◆ plot_convergence()

aligator.utils.plotting.plot_convergence ( HistoryCallback cb,
plt.Axes ax,
Results res = None,
* ,
show_al_iters = False,
legend_kwargs = {} )

Definition at line 7 of file plotting.py.

◆ plot_se2_pose()

plt.Rectangle aligator.utils.plotting.plot_se2_pose ( np.ndarray q,
plt.Axes ax,
alpha = 0.5,
fc = "tab:blue" )

Definition at line 48 of file plotting.py.

◆ _axes_flatten_if_ndarray()

list[plt.Axes] aligator.utils.plotting._axes_flatten_if_ndarray ( axes)
protected

Definition at line 64 of file plotting.py.

◆ plot_controls_traj()

tuple[plt.Figure, list[plt.Axes]] aligator.utils.plotting.plot_controls_traj ( times,
us,
ncols = 2,
axes = None,
effort_limit = None,
joint_names = None,
rmodel = None,
figsize = (6.4, 6.4),
xlabel = "Time (s)" )

Definition at line 72 of file plotting.py.

◆ plot_velocity_traj()

tuple[plt.Figure, list[plt.Axes]] aligator.utils.plotting.plot_velocity_traj ( times,
vs,
rmodel,
axes = None,
ncols = 2,
vel_limit = None,
figsize = (6.4, 6.4),
xlabel = "Time (s)" )

Definition at line 122 of file plotting.py.