MOSS: a small, mostly 3D-printed litter-picking rover. Cleaner streets, one maker at a time.
Python
mission: the pick point default from the scanner's axis in the CAD scene (0.215 -0.094), and the camera's mount on the same origin in the launch
metrox7a5ff45717c2
diff --git a/benches/bench_moss_mission_cold.py b/benches/bench_moss_mission_cold.pyindex 70abd57..a09121a 100644--- a/benches/bench_moss_mission_cold.py+++ b/benches/bench_moss_mission_cold.py@@ -85,7 +85,7 @@ class Clock:return self.t-PICK = (0.209, -0.098)+PICK = M.PICK_XY_DEFAULT# ── A. geometry ──print("A. geometry")diff --git a/docs/litter.md b/docs/litter.mdindex 45346b7..cf1eab7 100644--- a/docs/litter.md+++ b/docs/litter.md@@ -68,10 +68,13 @@ bench drives it on a fake robot; the module around it reads `objects`,**The pick point** is where the cycle's `pick` pose puts the tool, inbase_link (the lidar's floor projection): `MOSS_PICK_XY_M`, default-`0.209 -0.098` (the cycle's tool point less the lidar's carriage in the-CAD scene). The whole final approach rests on it; a tape measure from the-lidar's axis to the arm's pan axis on the rover is the number to set-before a run. `MOSS_STANDOFF_M` (0.6) and `MOSS_PICK_TOL_M` (0.02) are the+`0.215 -0.094` (the cycle's tool point `0.345 -0.010` less the scanner's+axis `0.130 0.084`, both in the CAD scene's chassis coordinates). The+camera's mount must use the same origin: with base_link at the scanner,+`MOSS_CAMERA_XYZ_M="0.026 -0.084 0.075"` (the CAD nose position less the+scanner's axis; the profile's default is the CAD nose position itself). The+whole final approach rests on these; a tape measure from the lidar's axis+to the arm's pan axis on the rover is the number to set before a run. `MOSS_STANDOFF_M` (0.6) and `MOSS_PICK_TOL_M` (0.02) are theother two knobs. `MOSS_MISSION_AUTOSTART=0` leaves the first `explore_cmd`to the cockpit.diff --git a/moss_dimos/mission.py b/moss_dimos/mission.pyindex 1ec84d2..1c3898e 100644--- a/moss_dimos/mission.py+++ b/moss_dimos/mission.py@@ -37,8 +37,9 @@ States and what they publish:The pick point is where the cycle's `pick` pose puts the tool, inbase_link (the lidar's floor projection): PICK_XY_M, from the CAD scene by-default (the lidar's carriage as base_link) and set from a tape measure on-the robot with MOSS_PICK_XY_M. The whole final approach depends on it.+default (the tool point less the scanner's axis) and set from a tape+measure on the robot with MOSS_PICK_XY_M. The whole final approach depends+on it, and the camera's mount must share the origin (MOSS_CAMERA_XYZ_M)."""from __future__ import annotations@@ -56,7 +57,7 @@ from pathlib import PathROOT = Path(__file__).resolve().parent.parentPICK_XY_ENV = "MOSS_PICK_XY_M"-PICK_XY_DEFAULT = (0.209, -0.098) # the cycle's pick tool point less the lidar carriage, CAD scene; to measure+PICK_XY_DEFAULT = (0.215, -0.094) # the cycle's pick tool point (0.345, -0.010) less the scanner's axis (0.130, 0.084), CAD scene; to measureSTANDOFF_ENV = "MOSS_STANDOFF_M"STANDOFF_DEFAULT = 0.6TOL_ENV = "MOSS_PICK_TOL_M"