Skip to content

Commit

Permalink
Fix runtime error for 3D pose graph vis, add back CG maxiter
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Aug 5, 2024
1 parent 2749541 commit abcf3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/pose_graph_g2o.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(
# Visualize 3D poses
elif isinstance(g2o.pose_vars[0], jaxls.SE3Var):
ax = plt.axes(projection="3d")
ax.set_box_aspect(1.0)
ax.set_box_aspect((1.0, 1.0, 1.0)) # type: ignore
ax.plot3D( # type: ignore
*(initial_vals.get_stacked_value(jaxls.SE3Var).translation().T),
c="r",
Expand Down
2 changes: 1 addition & 1 deletion src/jaxls/_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def ATA_function(x: jax.Array):
b=ATb,
x0=initial_x,
# https://en.wikipedia.org/wiki/Conjugate_gradient_method#Convergence_properties
# maxiter=len(initial_x),
maxiter=len(initial_x),
tol=cast(
float,
jnp.maximum(self.tolerance, self.inexact_step_eta / (iterations + 1)),
Expand Down

0 comments on commit abcf3e1

Please sign in to comment.