How khazit/crazyslam works
CrazySLAM is a Python SLAM library and Crazyflie support package. Its core workflow takes range readings and a motion update, updates an occupancy grid from the current pose, then refines the pose with a particle filter scoring sensor targets against that grid. The package also exposes keyboard control, Crazyflie discovery, and flight-data logging. The README documents the sensor and firmware context; examples are not inspected, so links from external callers into the SLAM API are left unverified.
Main entry points: slam.py SLAM agent · localization.py Particle filter · mapping.py Ray map update · control.py Keyboard control
Components 13
SLAM Core
- SLAM agent
crazyslam/slam.py - Occupancy grid
crazyslam/mapping.py - Ray map update
crazyslam/mapping.py - Particle filter
crazyslam/localization.py - Grid scoring helpers
crazyslam/mapping.py
Flight Integration
- Keyboard control
crazyslam/control.py - Device discovery
crazyslam/utils.py
Flight Records
- Flight logger
crazyslam/logging.py - Flight log files
Other components
- Operator
- Crazyflie
- Range readings
- Motion update
Connections 12
- Operator → Keyboard control: issues commands
crazyslam/control.py - Keyboard control → Crazyflie: commands motion
crazyslam/control.py - Device discovery → Crazyflie: scans interfaces
crazyslam/utils.py - Crazyflie → Flight logger: streams telemetry
crazyslam/logging.py - Flight logger → Flight log files: writes records
crazyslam/logging.py - Range readings → SLAM agent: supplies readings
- Motion update → SLAM agent: supplies update
- SLAM agent → Ray map update: updates map
crazyslam/slam.py - Ray map update → Occupancy grid: updates cells
crazyslam/mapping.py - SLAM agent → Particle filter: estimates state
crazyslam/slam.py - Particle filter → Grid scoring helpers: discretizes targets
crazyslam/localization.py - Particle filter → Occupancy grid: scores particles
crazyslam/localization.py