Expand description
mBot2 reference sensor vocabulary.
The mBot2 is a programmable robot by Makeblock, retailing for around $50–$80 USD. It runs a CyberPi microcontroller with onboard light, sound, and motion sensors.
This module provides a ready-to-use SensorVocabulary implementation for the mBot2’s
six onboard sensor dimensions. It is the vocabulary used in the CCF reference demo —
the same robot that demonstrates emergent social behaviour through accumulated experience,
entirely on-device with no cloud or ML model required.
§Why this exists
The mBot2 demo is the existence proof for what ccf-core makes possible: a sub-$100 robot that develops genuine context-sensitive social behaviour. Not scripted. Not rule-based. The trust field accumulates through real interaction, and the robot’s responses emerge from what it has actually experienced in each environment.
This module ships as a concrete reference so you can see exactly what a production
SensorVocabulary implementation looks like. Your own hardware vocabulary follows
the same pattern — just swap in your sensor dimensions.
§See also
examples/mbot2.rs— full simulated CCF loop for the mBot2SensorVocabulary— the trait to implement for your own hardware
Structs§
- Mbot
Sensors - mBot2 sensor vocabulary — 6-dimensional context for the CyberPi microcontroller.
Enums§
- Brightness
Band - Ambient light level — quantised from the CyperPi light sensor.
- Motion
Context - Robot motion context — derived from wheel encoder state.
- Noise
Band - Ambient sound level — quantised from the CyberPi microphone.
- Orientation
- Robot orientation relative to its starting heading (IMU pitch/roll).
- Presence
Signature - Nearby presence signature — person or object detection.
- Time
Period - Time of day period — set by the host application or RTC.
Type Aliases§
- Mbot
Context Key - Type alias for the canonical mBot2 context key.