Skip to content

Commit bf9291d

Browse files
Add batch tutorial example
1 parent 1dce296 commit bf9291d

File tree

3 files changed

+901
-6
lines changed

3 files changed

+901
-6
lines changed

docs/source/tutorial.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ All the dependencies should get installed by this command and the package should
2424
2. Toy Problem - Traditional <./tutorial/traditional.ipynb>
2525
3. Toy Problem - Lie groups <./tutorial/lie_groups.ipynb>
2626
4. Specifying Jacobians <./tutorial/jacobians.ipynb>
27-
4. Composite States <./tutorial/composite.ipynb>
27+
4. Composite States <./tutorial/composite.ipynb>
28+
5. Batch Estimation <./tutorial/batch.ipynb>

docs/source/tutorial/batch.ipynb

+899
Large diffs are not rendered by default.

navlie/lib/models.py

-5
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,6 @@ def __init__(
524524

525525
def evaluate(self, x: CompositeState) -> np.ndarray:
526526
"""Evaluates the measurement model for the landmark state."""
527-
528-
# The pose is always assumed to be the first element
529-
# TODO: is there a better way to do this? The
530-
# Measurement class already hold on to the IDs of these two
531-
# states
532527
pose: MatrixLieGroupState = x.get_state_by_id(self._pose_state_id)
533528
landmark: VectorState = x.get_state_by_id(self._landmark_state_id)
534529

0 commit comments

Comments
 (0)