Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): add robust optimisation parameter to MROB backend #16

Merged
merged 2 commits into from
Nov 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions slam/backend/mrob_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ class MROBBackend(Backend):
poses_number: int
Number of poses in provided map
iterations_number: int
Number of iterations that will be produced by MROB-EF backend.
Number of iterations that will be produced by chosen MROB backend.
"""

def __init__(self, poses_number: int, iterations_number: int) -> None:
self._graph: mrob.FGraph = mrob.FGraph()
def __init__(
self,
poses_number: int,
iterations_number: int,
robust_type: int = mrob.QUADRATIC,
) -> None:
self._graph: mrob.FGraph = mrob.FGraph(robust_type)
self._poses_number: int = poses_number
self._iterations_number: int = iterations_number
self._planes: Dict[int, int] = {}
Expand Down