MOSS: a small, mostly 3D-printed litter-picking rover. Cleaner streets, one maker at a time.
Python
coordinator: the bump stream uses the bus's Bool class (dimos_lcm), pinned by the blueprint bench; the stack refused to build otherwise
metrox127bd13abb21
diff --git a/benches/bench_moss_blueprints_cold.py b/benches/bench_moss_blueprints_cold.pyindex 33d9355..abbb48d 100644--- a/benches/bench_moss_blueprints_cold.py+++ b/benches/bench_moss_blueprints_cold.py@@ -547,6 +547,10 @@ check("MossRecorder records odom, global_costmap, lidar, color_image, wrist_imag{"odom", "global_costmap", "lidar", "color_image", "wrist_image", "cmd_vel", "base_telemetry", "episode_marker"} <= ins)check("MossControlCoordinator has the base_telemetry and bump Outs, and no other stream of its own",set(MossControlCoordinator.__annotations__) == {"base_telemetry", "bump"}, f"{sorted(MossControlCoordinator.__annotations__)}")+import moss_dimos.blueprints as _bp_mod # noqa: E402+import moss_dimos.recovering_planner as _rp_mod # noqa: E402+check("the coordinator's bump carries the SAME Bool class as RecoveringPlanner's (dimOS refuses a blueprint otherwise)",+ _bp_mod.Bool is _rp_mod.Bool, f"{_bp_mod.Bool} vs {_rp_mod.Bool}")check("its start/stop overrides keep @rpc (else dimOS pickles the module to call them)",{"start", "stop"} <= set(MossControlCoordinator.rpcs))check("it runs in its own worker (dedicated_worker)", MossControlCoordinator.dedicated_worker is True)diff --git a/moss_dimos/blueprints.py b/moss_dimos/blueprints.pyindex bc2fc2c..ea96d16 100644--- a/moss_dimos/blueprints.py+++ b/moss_dimos/blueprints.py@@ -96,7 +96,7 @@ from dimos.msgs.std_msgs.String import Stringfrom dimos.utils.logging_config import setup_loggerfrom moss_dimos import robot_profile-from dimos.msgs.std_msgs.Bool import Bool+from dimos_lcm.std_msgs import Bool # the SAME Bool class as Explorer2 / RecoveringPlanner: one 'bump' stream type on the busfrom moss_dimos.moss_adapter import telemetry_payloadfrom moss_dimos.robot_profile import (MOSS_LIDAR_MISSING, MOSS_QTPY_MISSING,RobotProfile)