PiCrawler / Modification Atlas
Modification Atlas
Find the layer, actual API, first steps and rollback for a desired change.
Where exactly do I change it?
34 of 34 modifications
New behavior 2 · User Python
Sensor-triggered actions without changing vendor code
First steps: Combine inputs and state; keep motion owned by one worker
Read / edit: Club behaviors/*.py → Picrawler.do_action/do_step
Vendor source change: No · hardware: No new hardware · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Working app, environment record and calibration reference
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Switch feature branch or known-good tag after stopping motion
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Walk slower / farther 0 · Runtime parameters
Different motion/response immediately
First steps: Set next command speed/repeats; measure actual travel
Read / edit: do_action(name, step=1, speed=40)
Vendor source change: No · hardware: No new hardware · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app and motion preset
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Discard the request/restart the app; posture does not automatically return
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Respond at 20cm 2 · User Python
Sensor-triggered actions without changing vendor code
First steps: Reject invalid readings and qualify stopping margin
Read / edit: Ultrasonic.read; app threshold_cm/hysteresis/freshness settings
Vendor source change: No · hardware: Stock ultrasonic · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Working app, environment record and calibration reference
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Switch feature branch or known-good tag after stopping motion
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
New pose / custom wave 3 · Custom poses and gaits
Original motion patterns and body poses
First steps: Deep-copy known-good stance; validate frame and transition
Read / edit: Club 4x3 pose/action data; add_action; do_step
Vendor source change: No · hardware: No new hardware · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Trajectory version, baseline stance and calibration hash
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reload known-good trajectory; recovery transition must be qualified
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Original gait 3 · Custom poses and gaits
Original motion patterns and body poses
First steps: Generate explicit phase-aware frame data
Read / edit: Club gait generator; MoveList.forward as reference
Vendor source change: Usually no · hardware: Measurement references · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Trajectory version, baseline stance and calibration hash
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reload known-good trajectory; recovery transition must be qualified
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Body translation / tilt 3 · Custom poses and gaits
Original motion patterns and body poses
First steps: Inspect differing baselines and frame signs before moving
Read / edit: MoveList.move_body_absolute; rotate_body_absolute_x/y
Vendor source change: No for helpers; custom transforms for general solver · hardware: No new hardware · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Trajectory version, baseline stance and calibration hash
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reload known-good trajectory; recovery transition must be qualified
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Sideways / diagonal walking 3 · Custom poses and gaits
Original motion patterns and body poses
First steps: Research geometry/support/clearance first; no stock side-walk API
Read / edit: New local trajectories plus measured hip/body transforms
Vendor source change: Not inherently · hardware: No new hardware initially · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Trajectory version, baseline stance and calibration hash
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reload known-good trajectory; recovery transition must be qualified
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Persistent recorded motion 2 · User Python
Sensor-triggered actions without changing vendor code
First steps: Save schema/units/source and calibration reference; memory registry is insufficient
Read / edit: Club JSON loader; add_action at deliberate initialization
Vendor source change: No · hardware: Storage budget · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Working app, environment record and calibration reference
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Switch feature branch or known-good tag after stopping motion
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Strict workspace truth 2 · User Python
Sensor-triggered actions without changing vendor code
First steps: Reject projection and malformed/nonfinite input before hardware
Read / edit: Application validator around coord2polar/polar2coord
Vendor source change: No initially; optional strict-mode fork · hardware: Supported test fixture · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Working app, environment record and calibration reference
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Switch feature branch or known-good tag after stopping motion
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Change IK equations or link lengths 5 · PiCrawler library
Changed coordinate interpretation and gait generation
First steps: Measure axes; test forward/inverse agreement and ordering
Read / edit: picrawler/picrawler.py: A/B/C, coord2polar, polar2coord, limit_angle
Vendor source change: Pinned fork or controlled override · hardware: Measured geometry; changed links if applicable · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Original source, exact import path, patches, offsets and tests
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Restore pinned original in separate environment/card; preserve offsets
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Change channel mapping / directions 5 · PiCrawler library
Changed coordinate interpretation and gait generation
First steps: Treat as hardware/calibration migration, not a casual remap
Read / edit: Picrawler.PIN_LIST, direction and constructor; Robot offset pipeline
Vendor source change: Custom constructor/subclass may suffice · hardware: Photographed harness · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Original source, exact import path, patches, offsets and tests
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Restore pinned original in separate environment/card; preserve offsets
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Fix tiny motions / faster cancellation 6 · Robot HAT Python and device boundary
Timing and electrical command conversion change
First steps: Use inert tests for final-target delivery/cancel accounting before supported bench tests
Read / edit: robot_hat/robot.py: Robot.servo_move
Vendor source change: Likely minimal pinned patch for inner loop · hardware: Supported fixture · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Source and package lock, board profile, config, wiring photos
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reinstall matched pinned driver on spare environment; restore config
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Different pulse width or PWM frequency 6 · Robot HAT Python and device boundary
Timing and electrical command conversion change
First steps: Verify servo specification and shared timer groups; all P0..P11 occupied
Read / edit: robot_hat/servo.py and pwm.py
Vendor source change: Only when actuator spec requires it · hardware: Reviewed replacement actuator if applicable · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Source and package lock, board profile, config, wiring photos
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reinstall matched pinned driver on spare environment; restore config
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
HAT MCU firmware behavior 6 · Robot HAT Python and device boundary
Timing and electrical command conversion change
First steps: Obtain official firmware sources/recovery path before design
Read / edit: Separate firmware/toolchain/bootloader, not established by Python repo
Vendor source change: Unresolved firmware work · hardware: Recoverable spare HAT recommended · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Source and package lock, board profile, config, wiring photos
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Reinstall matched pinned driver on spare environment; restore config
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Read a new I2C sensor 8 · Sensor and electronics expansion
New measurements and peripheral output
First steps: Check carrier voltage/pull-ups/address; arbitrate shared bus
Read / edit: User Python selected driver; robot_hat.I2C or reviewed SMBus interface
Vendor source change: No · hardware: Reviewed sensor carrier · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Connector/pin map, baseline bus list and electrical review
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Remove addition with power off and restore documented harness
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Add GPIO/analog input 8 · Sensor and electronics expansion
New measurements and peripheral output
First steps: Verify actual pin map and conditioned voltage; do not guess echo level
Read / edit: Pin; ADC(A0..A3); D2/D3 already used by sonar
Vendor source change: No · hardware: Reviewed sensor and conditioning · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Connector/pin map, baseline bus list and electrical review
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Remove addition with power off and restore documented harness
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Change camera orientation/resolution 1 · Calibration and configuration
Toe alignment, target interpretation, connectivity and startup behavior
First steps: Restart through qualified lifecycle; recalibrate perception transforms
Read / edit: Vilib.camera_start flips/size; app config; underlying Picamera2 mode
Vendor source change: No · hardware: Stock camera · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Original card/config candidates, permissions and source identity
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Restore the matched source/config backup with actuator outputs made safe
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Change color threshold 2 · User Python
Sensor-triggered actions without changing vendor code
First steps: Tune recorded images first; distinguish color name selection from HSV constant edits
Read / edit: App target selection; for HSV bounds inspect vilib/color_detection.py
Vendor source change: No for selection; owned detector for custom bounds · hardware: Stock camera · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Working app, environment record and calibration reference
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Switch feature branch or known-good tag after stopping motion
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Custom camera pipeline / model 4 · Application architecture
Coordinated sensing/control; bounded network and AI behavior
First steps: Benchmark runtime and lifecycle on recorded frames before live movement
Read / edit: One camera owner; OpenCV detector adapter; object_detect_set_model/labels when compatible
Vendor source change: No initially; fork only required Vilib limitation · hardware: Compatible assets/runtime · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app/schema, failure logs without credentials
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable feature or return to minimal single-owner program
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Correct recorder pacing/lifecycle 4 · Application architecture
Coordinated sensing/control; bounded network and AI behavior
First steps: Use fresh frames/timestamps; test flags, joins, file readability and disk full
Read / edit: Application VideoWriter/capture manager; vilib.py recorder is review reference
Vendor source change: Wrapper or selected Vilib fork if needed · hardware: Storage and codec · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app/schema, failure logs without credentials
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable feature or return to minimal single-owner program
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Browser controller 4 · Application architecture
Coordinated sensing/control; bounded network and AI behavior
First steps: One client lease, finite queue, expiry and explicit completion
Read / edit: Club HTTP/WebSocket server → command supervisor
Vendor source change: No · hardware: Trusted laptop/LAN · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app/schema, failure logs without credentials
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable feature or return to minimal single-owner program
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Remote video only 0 · Runtime parameters
Different motion/response immediately
First steps: Prefer tunnel/shared-network isolation; video is not motion API
Read / edit: Vilib.display(local=False,web=True); /mjpg port9000
Vendor source change: No · hardware: Trusted browser client · low risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app and motion preset
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Discard the request/restart the app; posture does not automatically return
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Autostart at boot 7 · Raspberry Pi and Linux
Headless services, video and compute behavior; boot must remain unarmed
First steps: Never construct crawler merely to show boot status; restart stays unarmed
Read / edit: Future systemd unit plus separate passive app and arm path
Vendor source change: No · hardware: Spare environment for validation · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Card image before migration, affected system files and current network profile privately
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable service/restore files or spare-card image; maintain local access
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Save calibration 1 · Calibration and configuration
Toe alignment, target interpretation, connectivity and startup behavior
First steps: Back up actual user/root/opt candidates before constructor
Read / edit: Robot.set_offset; effective Picrawler.OFFSET_FILE; matched terminal helper
Vendor source change: No · hardware: Calibration chart/support · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Original card/config candidates, permissions and source identity
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Restore the matched source/config backup with actuator outputs made safe
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Change networking / audio 7 · Raspberry Pi and Linux
Headless services, video and compute behavior; boot must remain unarmed
First steps: Copy affected settings privately; preserve local recovery access
Read / edit: Actual NetworkManager profile; boot overlay; ALSA routing and revision profile
Vendor source change: No unless driver issue · hardware: Revision-specific hardware · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Card image before migration, affected system files and current network profile privately
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable service/restore files or spare-card image; maintain local access
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Speak / announce detections 2 · User Python
Sensor-triggered actions without changing vendor code
First steps: Resolve absolute media/model paths and nonblocking output policy
Read / edit: Music/Piper worker and event cooldown
Vendor source change: No · hardware: Speaker; local model if TTS · low risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Working app, environment record and calibration reference
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Switch feature branch or known-good tag after stopping motion
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Listen / voice commands 8 · Sensor and electronics expansion
New measurements and peripheral output
First steps: Validate capture and false triggers before motion
Read / edit: USB mic → Vosk → deterministic parser → supervisor
Vendor source change: No · hardware: External microphone · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Connector/pin map, baseline bus list and electrical review
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Remove addition with power off and restore documented harness
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Use LLM / ChatGPT-style text control 4 · Application architecture
Coordinated sensing/control; bounded network and AI behavior
First steps: Text-first; never eval model code or raw coordinates
Read / edit: Provider adapter → validated typed plan → supervisor
Vendor source change: No · hardware: Cloud account or LAN model host · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app/schema, failure logs without credentials
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable feature or return to minimal single-owner program
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Connect Pico / ESP32 10 · Distributed robotics
New remote input/output and timestamped observations
First steps: Review exact board environment; one actuator owner
Read / edit: Pi Python transport + MCU PlatformIO src/main.cpp
Vendor source change: No · hardware: MCU and defined peripheral · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Both peer SHAs, board environment, protocol/schema and logs
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Return Pi to direct stock control; remove auxiliary peer safely
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
OLED / matrix display 8 · Sensor and electronics expansion
New measurements and peripheral output
First steps: Check actual controller/interface; large panel separately powered
Read / edit: Telemetry consumer → reviewed display driver/MCU renderer
Vendor source change: No · hardware: Display hardware/controller · moderate risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Connector/pin map, baseline bus list and electrical review
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Remove addition with power off and restore documented harness
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Use ROS 10 · Distributed robotics
New remote input/output and timestamped observations
First steps: Qualify environment, units, frames and cancellation semantics
Read / edit: Future rclpy bridge to same supervisor
Vendor source change: No inherently · hardware: Qualified ROS host · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Both peer SHAs, board environment, protocol/schema and logs
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Return Pi to direct stock control; remove auxiliary peer safely
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Map or localize 4 · Application architecture
Coordinated sensing/control; bounded network and AI behavior
First steps: Establish independent pose truth and failure/uncertainty record
Read / edit: Calibrated external observations + estimator; ROS optional
Vendor source change: No initially; major system research · hardware: Reference markers or qualified ranging/pose additions · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Known-good app/schema, failure logs without credentials
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Disable feature or return to minimal single-owner program
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Replace HAT 8 · Sensor and electronics expansion
New measurements and peripheral output
First steps: Audit power, calibration, initialization and preserved source before replacement
Read / edit: New PWM/power/ADC/GPIO/audio abstraction and mapping
Vendor source change: New adapter/fork likely · hardware: Reviewed replacement board and wiring · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Connector/pin map, baseline bus list and electrical review
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Remove addition with power off and restore documented harness
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Change mechanics 9 · Mechanical modification
Changed traction, packaging, clearance and loading
First steps: Keep original parts and qualify support/servo load
Read / edit: CAD, masses, measured clearances; source link geometry if changed
Vendor source change: No for mount; geometry changes affect IK · hardware: Fabricated lightweight part · high risk.
Code/data/hardware persists when deliberately saved; transient runtime state is not restored automatically. Restart: See layer policy; app restart for loaded code/config, OS reboot only when actual device/boot changes require it.
Back up: Photos, dimensions, masses, original parts and calibration baseline
Rollback: Use original files/parts and matched calibration; firmware recovery remains unresolved. Keep original parts and fasteners; restore with matched calibration
Verify: Inert validation first, then project-specific acceptance evidence with a dated specimen/source record.
Runtime controls & blocking boundaries
Illustrative API references, not instructions to paste into an unqualified robot. Even speed zero can move. Review the physical preflight first.
Walk slower
do_action("forward", step=1, speed=40)
speed: unitless 0..100 clamped by Robot; lower means slower, 0 still moves
Blocking across all generated frames. Change next segment; no simultaneous motion writer
Slower commanded interpolation, not a calibrated cm/s speed · not bench tested.
Walk backward / turn
do_action("backward" / "turn left" / "turn right", step, speed)
step: integer repeats; start with 1; no measured travel/degree unit
Blocking. Choose next completed segment
More repeats usually extend travel/turn; slip and phase prevent exact distance · not bench tested.
Turn farther with geometry
crawler.move_list.angle; do_action("turn left angle",1,speed)
angle defaults 30 degrees in helper geometry; admissible robot envelope not established
Property assignment immediate; action blocking. Set while idle before generating action
Geometry changes; angle is not measured world yaw · not bench tested.
Sit / stand
do_step("sit" / "stand", speed=40)
String names use cached frame sequences; speed 0..100
Blocking; stand may be multiple frames. Idle or explicit tested transition only
Active pose motion, neither motor disable nor emergency stop · not bench tested.
New pose
do_step(frame, speed=40, israise=True)
frame = 4 XYZ triplets; RF,LF,LR,RR; nominal mm
Blocking. Only serialized approved transitions
Requested feet move; israise alone does not reject all projected targets · not bench tested.
Lift one leg
do_single_leg(leg, coodinate, speed=40)
leg 0..3; spelling coodinate is upstream; XYZ nominal mm
Blocking through full angle pipeline. Supported tests; no parallel gait
Increase swing z from a proven negative value toward zero to lift toe; no universal safe XYZ box · not bench tested.
New wave / expression
add_action(name, frames), then do_action(name,1,speed)
frames = list of 4x3 arrays; name must come from club allowlist
Registration immediate; execution blocking. Register/replace only while idle
Original trajectory; registration disappears at process exit · not bench tested.
Read commanded coordinates
current_step_all_leg_value(); current_step_all_leg_angle()
nominal mm / degrees; deep-copy nested coordinate lists
Returns software state; not sensors. Read a coherent snapshot under owner control
No physical actuation; do not mutate aliased inner arrays · not bench tested.
Translate body
move_list.move_body_absolute(x,y,z), then do_step(frame)
x,y,z nominal mm; helper Z base -40; physical X/Y frame check pending
Helper computes data; do_step blocks. Approved stationary test
Changing foot/body relation shifts chassis; positive helper z makes feet more negative · not bench tested.
Rotate body
move_list.rotate_body_absolute_x(degree_x) / ..._y(degree_y)
degrees; no verified global roll/pitch naming or safe full range
Computation then blocking motion. Stationary small tests
Tilt-like body motion; not a full combined six-DOF solver · not bench tested.
20cm response
Ultrasonic(Pin("D2"),Pin("D3")).read(times=10); app threshold_cm=20
distance cm; -1 timeout, -2 edge failure; retries are not averaging
Read blocks during echo/retries. Separate sampling owner; stale data cannot approve movement
App decides what to do; stopping margin must include sensing + active segment + body extent · not bench tested.
Battery
robot_hat.device.get_battery_voltage()
approximate pack volts; A4 divider path
I2C acquisition. Schedule shared bus access
No actuation; not current/SOC/runtime; utils alias is deprecated · not bench tested.
Camera resolution / orientation
Vilib.camera_start(vflip=False,hflip=False,size=(640,480))
size pixels; flips booleans; mode support depends on installed camera
Starts thread but waits for readiness without timeout. Configure at startup; restart/lifecycle must be qualified
Image orientation changes steering sign and calibration; 60fps is requested not measured · not bench tested.
Headless preview
Vilib.display(local=False, web=True)
booleans; MJPEG at port9000 /mjpg
Starts background display/server. One camera owner
Video only; no stock browser motion control or authentication established · not bench tested.
Color target
Vilib.color_detect("red"); detect_obj_parameter["color_x" / "color_n"]
named HSV class; x pixels, count; width/height pixels
Detection enabled in capture loop. Selection can change between behavior segments
Blob target; latest-value fields need application freshness/consistency metadata · not bench tested.
Face-facing
Vilib.face_detect_switch(True); human_x/human_n fields
pixels/count; face detection not identity
Capture loop. App reselects target while motion owner stays serialized
Custom turn/greeting behavior · not bench tested.
QR actions
Vilib.qrcode_detect_switch(True); qr_data/qr_list fields
decoded strings/list; no trusted command semantics
Capture loop. Decode during capture; act only at command boundaries
Allowlist/debounce then behavior; do not pass payload to action-name eval · not bench tested.
Neural object / hand / pose
object_detect_switch; hands_detect_switch; pose_detect_switch
boolean switches; object model/labels, hands_joints/body_joints conditional
Model load may block; inference adds capture latency. Qualify runtime before movement
Detection/landmarks; no gesture_detect_switch and no automatic joint/body stabilization · not bench tested.
Snapshot / video
take_photo(name,path); rec_video_run/start/pause/stop
paths; recorder defaults XVID AVI 30fps 640x480, not measured capture rate
Snapshot writes file; recording worker; stop joins up to 3s. Capture manager avoids concurrent lifecycle calls
Media writes; stock recorder pacing/flag issues require review · not bench tested.
Sound and speech
Music.sound_play / sound_play_threading; music_set_volume; Piper.say
file paths; volume0..100; text and local model/network prerequisites
Playback semantics differ; use worker with bounded audio queue. Never let long speech monopolize motion supervisor
V4 output speaker; no confirmed onboard microphone · not bench tested.
State / sensitivity / stop
proposed club state machine and typed command supervisor
enums, age budgets, threshold/hysteresis; configured finite bounds
Application design, not a vendor STOP API. Stop state latches; motion remains owned by one worker
No generic stock immediate halt, measured yaw-turn command, or safe look/head-pan actuator · not bench tested.
Eleven modification layers
0 · Runtime parameters
Named actions, speed, repeat count, detection selection, range threshold and sound volume
Picrawler.do_action/do_step; Vilib detection switches; app thresholds
Persistence: Memory only unless application saves a preset. Restart: No reboot; serialize motion and change parameters between accepted segments
Back up: Known-good app and motion preset. Rollback: Discard the request/restart the app; posture does not automatically return
Risks: Unexpected motion, long blocking actions, stale sensing
1 · Calibration and configuration
Servo offsets, app defaults, image flips, network/audio and interpreter selection
Picrawler.OFFSET_FILE; Robot.set_offset; future config/robot.json; OS profiles
Persistence: Offsets and files persist; each subsystem has its own load point. Restart: App restart for loaded config; OS reboot only for relevant driver/overlay changes
Back up: Original card/config candidates, permissions and source identity. Rollback: Restore the matched source/config backup with actuator outputs made safe
Risks: Wrong effective-user home, corrupt list, silent default offsets, lost network
2 · User Python
New behavior and experiments consuming existing APIs
~/engineering-club-picrawler/src/club_crawler/ and behaviors/
Persistence: Committed app/data persist; process state does not. Restart: Restart only the app; no OS reboot normally
Back up: Working app, environment record and calibration reference. Rollback: Switch feature branch or known-good tag after stopping motion
Risks: Import shadowing, unsafe constructor, exception during movement
3 · Custom poses and gaits
Coordinate frames, gait phases, swing height, stride and expressive sequences
Picrawler.add_action; do_step; club trajectories; MoveList as reference
Persistence: add_action is memory-only; save reviewed JSON explicitly. Restart: Reload trajectory between actions; no reboot
Back up: Trajectory version, baseline stance and calibration hash. Rollback: Reload known-good trajectory; recovery transition must be qualified
Risks: IK projection, path collision, wrong leg order, support loss
4 · Application architecture
State machine, queue, watchdog, camera owner and telemetry
Club controller/supervisor/sensor/camera modules; proposed command protocol
Persistence: Code/config persist; active lease/queue must not survive restart. Restart: Application restart and deliberate re-arm
Back up: Known-good app/schema, failure logs without credentials. Rollback: Disable feature or return to minimal single-owner program
Risks: Two motion writers, queued stale commands, mistaken stop guarantee
5 · PiCrawler library
IK, strict workspace checking, action generation, channel/frame adapters
picrawler/picrawler.py: coord2polar, limit_angle, do_step, MoveList
Persistence: Pinned fork/patch persists only when installed/selected deliberately. Restart: Restart interpreter after replacement; no reboot normally
Back up: Original source, exact import path, patches, offsets and tests. Rollback: Restore pinned original in separate environment/card; preserve offsets
Risks: Wrong angle order, calibration incompatibility, new geometric bugs
6 · Robot HAT Python and device boundary
Interpolation, tiny-angle handling, cancellation hooks, PWM/ADC/GPIO behavior
robot_hat/robot.py; servo.py; pwm.py; modules.py; device.py
Persistence: Driver patch persists; MCU timer state is runtime; firmware is a different layer. Restart: Restart app for Python; some audio/kernel changes need OS restart
Back up: Source and package lock, board profile, config, wiring photos. Rollback: Reinstall matched pinned driver on spare environment; restore config
Risks: Shared timers disturb several legs; wrong pulse map; bus/voltage faults
7 · Raspberry Pi and Linux
Service lifecycle, permissions, storage, network and audio/camera stack
systemd units; interpreter/venv; NetworkManager profile; boot and ALSA config
Persistence: OS/config changes persist. Restart: Service restart for units/app; reboot for selected boot/device changes
Back up: Card image before migration, affected system files and current network profile privately. Rollback: Disable service/restore files or spare-card image; maintain local access
Risks: Boot loops reconstruct crawler; import/home mismatch; lost SSH
8 · Sensor and electronics expansion
Orientation, range coverage, contact/environment sensors and status displays
I2C bus1; ADC A0..A3; reviewed D0/D1; USB; SPI/UART after pin review
Persistence: Physical additions persist; drivers/config versioned separately. Restart: Power off for rewiring; driver/overlay may require restart
Back up: Connector/pin map, baseline bus list and electrical review. Rollback: Remove addition with power off and restore documented harness
Risks: Address/pull-up conflicts, 5V echo, shared power load; no free P0..P11
9 · Mechanical modification
Feet, lightweight mounts/trays/guards, cable routes and measured geometry
CAD and fabrication drawings; measured joint axes; bracket/foot test records
Persistence: Physical part remains until removed. Restart: Power off for mechanical work; requalification before movement
Back up: Photos, dimensions, masses, original parts and calibration baseline. Rollback: Keep original parts and fasteners; restore with matched calibration
Risks: CG change, greater servo moment, reduced clearance, wire snag
10 · Distributed robotics
Offboard compute, MCU acquisition, remote displays and ROS nodes
Pi Python + PlatformIO MCU C++; framed USB/UART/network protocol
Persistence: Firmware/code persist; sessions and actuator ownership must reset safely. Restart: Restart affected peer; hardware reset may drop USB; explicit re-arm
Back up: Both peer SHAs, board environment, protocol/schema and logs. Rollback: Return Pi to direct stock control; remove auxiliary peer safely
Risks: Clock drift, reconnect replay, multiple owners, hidden protocol stalls
Where do I edit?
Start with the behavior you want. A source path below is a reading/edit boundary, not permission to overwrite the undocumented installed Pi. Normal club work lives in ~/engineering-club-picrawler/; all named club modules are proposed, not delivered running software.
| I want to… | Recommended layer | File/API | Vendor modification needed? | Risk / first step |
|---|---|---|---|---|
| New behavior | 2 | Club behaviors/*.py → Picrawler.do_action/do_step | No | MODERATE: Combine inputs and state; keep motion owned by one worker |
| Walk slower / farther | 0 | do_action(name, step=1, speed=40) | No | MODERATE: Set next command speed/repeats; measure actual travel |
| Respond at 20cm | 2 | Ultrasonic.read; app threshold_cm/hysteresis/freshness settings | No | MODERATE: Reject invalid readings and qualify stopping margin |
| New pose / custom wave | 3 | Club 4x3 pose/action data; add_action; do_step | No | MODERATE: Deep-copy known-good stance; validate frame and transition |
| Original gait | 3 | Club gait generator; MoveList.forward as reference | Usually no | HIGH: Generate explicit phase-aware frame data |
| Body translation / tilt | 3 | MoveList.move_body_absolute; rotate_body_absolute_x/y | No for helpers; custom transforms for general solver | HIGH: Inspect differing baselines and frame signs before moving |
| Sideways / diagonal walking | 3 | New local trajectories plus measured hip/body transforms | Not inherently | HIGH: Research geometry/support/clearance first; no stock side-walk API |
| Persistent recorded motion | 2 | Club JSON loader; add_action at deliberate initialization | No | MODERATE: Save schema/units/source and calibration reference; memory registry is insufficient |
| Strict workspace truth | 2 | Application validator around coord2polar/polar2coord | No initially; optional strict-mode fork | HIGH: Reject projection and malformed/nonfinite input before hardware |
| Change IK equations or link lengths | 5 | picrawler/picrawler.py: A/B/C, coord2polar, polar2coord, limit_angle | Pinned fork or controlled override | HIGH: Measure axes; test forward/inverse agreement and ordering |
| Change channel mapping / directions | 5 | Picrawler.PIN_LIST, direction and constructor; Robot offset pipeline | Custom constructor/subclass may suffice | HIGH: Treat as hardware/calibration migration, not a casual remap |
| Fix tiny motions / faster cancellation | 6 | robot_hat/robot.py: Robot.servo_move | Likely minimal pinned patch for inner loop | HIGH: Use inert tests for final-target delivery/cancel accounting before supported bench tests |
| Different pulse width or PWM frequency | 6 | robot_hat/servo.py and pwm.py | Only when actuator spec requires it | HIGH: Verify servo specification and shared timer groups; all P0..P11 occupied |
| HAT MCU firmware behavior | 6 | Separate firmware/toolchain/bootloader, not established by Python repo | Unresolved firmware work | HIGH: Obtain official firmware sources/recovery path before design |
| Read a new I2C sensor | 8 | User Python selected driver; robot_hat.I2C or reviewed SMBus interface | No | MODERATE: Check carrier voltage/pull-ups/address; arbitrate shared bus |
| Add GPIO/analog input | 8 | Pin; ADC(A0..A3); D2/D3 already used by sonar | No | MODERATE: Verify actual pin map and conditioned voltage; do not guess echo level |
| Change camera orientation/resolution | 1 | Vilib.camera_start flips/size; app config; underlying Picamera2 mode | No | MODERATE: Restart through qualified lifecycle; recalibrate perception transforms |
| Change color threshold | 2 | App target selection; for HSV bounds inspect vilib/color_detection.py | No for selection; owned detector for custom bounds | MODERATE: Tune recorded images first; distinguish color name selection from HSV constant edits |
| Custom camera pipeline / model | 4 | One camera owner; OpenCV detector adapter; object_detect_set_model/labels when compatible | No initially; fork only required Vilib limitation | MODERATE: Benchmark runtime and lifecycle on recorded frames before live movement |
| Correct recorder pacing/lifecycle | 4 | Application VideoWriter/capture manager; vilib.py recorder is review reference | Wrapper or selected Vilib fork if needed | MODERATE: Use fresh frames/timestamps; test flags, joins, file readability and disk full |
| Browser controller | 4 | Club HTTP/WebSocket server → command supervisor | No | HIGH: One client lease, finite queue, expiry and explicit completion |
| Remote video only | 0 | Vilib.display(local=False,web=True); /mjpg port9000 | No | LOW: Prefer tunnel/shared-network isolation; video is not motion API |
| Autostart at boot | 7 | Future systemd unit plus separate passive app and arm path | No | HIGH: Never construct crawler merely to show boot status; restart stays unarmed |
| Save calibration | 1 | Robot.set_offset; effective Picrawler.OFFSET_FILE; matched terminal helper | No | HIGH: Back up actual user/root/opt candidates before constructor |
| Change networking / audio | 7 | Actual NetworkManager profile; boot overlay; ALSA routing and revision profile | No unless driver issue | MODERATE: Copy affected settings privately; preserve local recovery access |
| Speak / announce detections | 2 | Music/Piper worker and event cooldown | No | LOW: Resolve absolute media/model paths and nonblocking output policy |
| Listen / voice commands | 8 | USB mic → Vosk → deterministic parser → supervisor | No | MODERATE: Validate capture and false triggers before motion |
| Use LLM / ChatGPT-style text control | 4 | Provider adapter → validated typed plan → supervisor | No | HIGH: Text-first; never eval model code or raw coordinates |
| Connect Pico / ESP32 | 10 | Pi Python transport + MCU PlatformIO src/main.cpp | No | MODERATE: Review exact board environment; one actuator owner |
| OLED / matrix display | 8 | Telemetry consumer → reviewed display driver/MCU renderer | No | MODERATE: Check actual controller/interface; large panel separately powered |
| Use ROS | 10 | Future rclpy bridge to same supervisor | No inherently | HIGH: Qualify environment, units, frames and cancellation semantics |
| Map or localize | 4 | Calibrated external observations + estimator; ROS optional | No initially; major system research | HIGH: Establish independent pose truth and failure/uncertainty record |
| Replace HAT | 8 | New PWM/power/ADC/GPIO/audio abstraction and mapping | New adapter/fork likely | HIGH: Audit power, calibration, initialization and preserved source before replacement |
| Change mechanics | 9 | CAD, masses, measured clearances; source link geometry if changed | No for mount; geometry changes affect IK | HIGH: Keep original parts and qualify support/servo load |
Why the hierarchy matters
Write user application code first. Extract a club module when two behaviors actually reuse it. Wrap a library when you need validation, logging or a narrower interface. Subclass only when a clear extension hook exists; inherited initialization can still move the robot. Fork a vendor library for a reproducible low-level behavior change, with the exact original SHA and a small reviewed diff. Editing an installed site-packages/egg file is the last resort because it is easy to lose and hard for the next member to reproduce.
Do not pass a user/QR/model string directly to do_action: MoveList.__getitem__ builds an eval expression. A deterministic allowlist should select a known action name. Do not solve queue safety by calling sit from a second thread: that creates another motion writer. A timeout around a blocking call also does not cancel the underlying actuator loop.
The most plausible vendor patches are narrow and separately reviewable: final delivery of subdegree moves, cooperative interpolation cancellation, stricter workspace rejection, copy-safe state access, and camera/record lifecycle defects. Voice application completion accounting can be fixed in club architecture without forking the motion driver. Changing HAT firmware is a separate unresolved build/flash/recovery problem. Source evidence: pc-core, hat-robot, vi-core, pc-voice; detailed V1 source discrepancies remain authoritative.
Continue
Meeting checklist · Source library · Modification atlas · All project proposals