From d9ab7ba5d32055cd8f16f339396de7597e69fcb4 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Thu, 15 Oct 2026 16:23:45 +1000 Subject: [PATCH] fix: fig6_26 and fig6_27 pass lidar=True to PoseGraph, not laser= PoseGraph's argument has been called lidar since RTB 1.4.0; laser= raised TypeError so these two figure scripts could not run. The chapter 6 notebook already uses lidar=True. Co-Authored-By: Claude Sonnet 5.5 --- figures/code/chapter6/fig6_26.py | 2 +- figures/code/chapter6/fig6_27.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/figures/code/chapter6/fig6_26.py b/figures/code/chapter6/fig6_26.py index ac07dff..895c924 100755 --- a/figures/code/chapter6/fig6_26.py +++ b/figures/code/chapter6/fig6_26.py @@ -7,7 +7,7 @@ from spatialmath import SE2, SE3 from spatialmath.base import ICP2d -pg = PoseGraph('data/killian.g2o.zip', laser=True) +pg = PoseGraph('data/killian.g2o.zip', lidar=True) print(pg) print(pg.graph) diff --git a/figures/code/chapter6/fig6_27.py b/figures/code/chapter6/fig6_27.py index c1fc72f..077167b 100755 --- a/figures/code/chapter6/fig6_27.py +++ b/figures/code/chapter6/fig6_27.py @@ -7,7 +7,7 @@ from roboticstoolbox.mobile import * from spatialmath import SE2, SE3, base -pg = PoseGraph('data/killian.g2o.zip', laser=True) +pg = PoseGraph('data/killian.g2o.zip', lidar=True) print(pg) print(pg.graph)