Skip to content

Commit

Permalink
Rm imported GreedyESP depending on cholesky utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
keevindoherty committed Nov 8, 2024
1 parent 312ebaf commit 2977f0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 3 additions & 8 deletions examples/g2o_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pose_graph_utils import split_edges, read_g2o_file, plot_poses, rpm_to_mac, RelativePoseMeasurement, poses_ate_tran, poses_rpe_rot

# MAC requirements
from mac.solvers import MAC, NaiveGreedy, GreedyESP
from mac.solvers import MAC, NaiveGreedy
from mac.utils.graphs import Edge
from mac.utils.rounding import round_madow

Expand Down Expand Up @@ -272,6 +272,7 @@ def to_sesync_format(measurements):

# Make a GreedyEig Solver
if run_greedy:
from mac.solvers.greedy_esp import GreedyESP
greedy_esp = GreedyESP(odom_edges, lc_edges, num_poses, lazy=True)

#############################
Expand Down Expand Up @@ -334,14 +335,8 @@ def to_sesync_format(measurements):
# point solution every time.
madow_times.append(solve_time + (end - start) - rtime)

# Solve the relaxed maximum algebraic connectivity augmentation problem.
# Solve the greedy k-edge selection problem
if run_greedy:
# start = timer()
# greedy_eig_result, _ = greedy_eig.subset(num_lc)
# end = timer()
# greedy_eig_times.append(end - start)
# greedy_eig_results.append(greedy_eig_result)

num_lcs = [int(pct_lc * len(lc_measurements)) for pct_lc in percent_lc]
greedy_esp_results, _, greedy_esp_times = greedy_esp.subsets_lazy(num_lcs, verbose=True)
pass
Expand Down
1 change: 0 additions & 1 deletion mac/solvers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .mac import MAC
from .baseline import NaiveGreedy
from .greedy_esp import GreedyESP

0 comments on commit 2977f0d

Please sign in to comment.