PiCrawler / Technical Reference & Remaining Questions
Technical Reference & Remaining Questions
Detailed API/example atlases, limitations, unresolved evidence and dependency planning.
Python API map
The entries below resolve to real symbols in the pinned source. PUBLIC USER API means a user-oriented source/tutorial interface; it does not promise formal backward compatibility. ADVANCED API exposes lower-level behavior. INTERNAL IMPLEMENTATION is useful for reading/debugging and should not be treated as a stable application contract. Every physical consequence remains untested.
Public User Api
Picrawler.init
Signature: self, pin_list=PIN_LIST, init_angles=None. Implementation: picrawler/picrawler.py:14.
Inputs: Optional channel list and twelve initial angles. Units: channels / degrees. Returns: Picrawler object. Side effects: Resets MCU, initializes outputs and config.
Limits: Constructor can move robot; user/root path differs.
Illustrative call, not executed on hardware: crawler = Picrawler(). Any call constructing or commanding a crawler requires the recovery preflight.
Picrawler.do_action
Signature: self, motion_name, step=1, speed=50. Implementation: picrawler/picrawler.py:126.
Inputs: Named action, repeat count step, speed. Units: cycles / unitless speed 0..100. Returns: None. Side effects: Blocking multi-frame motion.
Limits: No distance guarantee; unknown names/eval lookup; speed zero moves.
Illustrative call, not executed on hardware: crawler.do_action('forward', step=1, speed=40). Any call constructing or commanding a crawler requires the recovery preflight.
Picrawler.do_step
Signature: self, _step, speed=50, israise=False. Implementation: picrawler/picrawler.py:171.
Inputs: Four leg XYZ triplets or stand/sit string, speed, israise. Units: nominal mm / unitless speed. Returns: None. Side effects: Converts feet to reordered angles and moves.
Limits: Silent workspace projection; israise checks later joint clamp only.
Illustrative call, not executed on hardware: crawler.do_step('sit', speed=40). Any call constructing or commanding a crawler requires the recovery preflight.
Picrawler.do_single_leg
Signature: self, leg, coodinate=[50, 50, -33], speed=50. Implementation: picrawler/picrawler.py:665.
Inputs: Zero-based leg 0..3 and coodinate triplet, speed. Units: nominal mm. Returns: None. Side effects: Replaces one local toe target and moves all-channel pipeline.
Limits: No contact feedback; returned coordinate structures can alias.
Illustrative call, not executed on hardware: crawler.do_single_leg(0, [60,0,-30], speed=40). Any call constructing or commanding a crawler requires the recovery preflight.
Picrawler.add_action
Signature: self, action_name, action_list. Implementation: picrawler/picrawler.py:198.
Inputs: Name and list of four-leg coordinate frames. Units: nominal mm. Returns: None. Side effects: Adds to in-memory custom registry.
Limits: Does not persist; application must validate action length/shape.
Illustrative call, not executed on hardware: crawler.add_action('club pose', frames). Any call constructing or commanding a crawler requires the recovery preflight.
Picrawler.current_step_all_leg_value
Signature: self. Implementation: picrawler/picrawler.py:674.
Inputs: No arguments. Units: nominal mm. Returns: Shallow outer-list copy. Side effects: None directly.
Limits: Inner triplets alias state; command state not measurement.
Illustrative call, not executed on hardware: coords = copy.deepcopy(crawler.current_step_all_leg_value()). Any call constructing or commanding a crawler requires the recovery preflight.
Picrawler.current_step_leg_value
Signature: self, leg. Implementation: picrawler/picrawler.py:671.
Inputs: Zero-based leg. Units: nominal mm. Returns: Copy of one triplet. Side effects: None directly.
Limits: Command state; no measured toe position.
Picrawler.current_step_all_leg_angle
Signature: self. Implementation: picrawler/picrawler.py:195.
Inputs: No arguments. Units: degrees. Returns: Copy of commanded array. Side effects: None directly.
Limits: Not actual joint feedback.
Picrawler.mix_step
Signature: self, basic_step, leg, coodinate=[50, 50, -33]. Implementation: picrawler/picrawler.py:677.
Inputs: Base pose, leg index, new triplet. Units: nominal mm. Returns: Shallowly copied replacement pose. Side effects: No hardware command itself.
Limits: Other triplets still alias.
ADC.read
Signature: self. Implementation: robot_hat/adc.py:39.
Inputs: None. Units: raw count 0..4095 nominal. Returns: Integer sample. Side effects: I2C read protocol.
Limits: No external overvoltage protection implied.
ADC.read_voltage
Signature: self. Implementation: robot_hat/adc.py:56.
Inputs: None. Units: volts nominal. Returns: Computed voltage. Side effects: ADC read.
Limits: Reference/rounding not calibrated accuracy.
Ultrasonic.read
Signature: self, times=10. Implementation: robot_hat/modules.py:52.
Inputs: Retry count times. Units: centimetres. Returns: Distance or negative failure. Side effects: Trigger/echo activity.
Limits: Retries -1, returns -2 immediately; not averaging.
doctor
Signature: fix_mode=False. Implementation: robot_hat/doctor.py:380.
Inputs: fix_mode only affects report hints. Units: none. Returns: Check result dictionary. Side effects: Diagnostics including I2C probing.
Limits: Version-dependent; not a gait bench test.
Music.music_play
Signature: self, filename, loops=1, start=0.0, volume=None. Implementation: robot_hat/music.py:200.
Inputs: Audio file. Units: path. Returns: None; playback is a side effect. Side effects: Starts music.
Limits: CWD, codec/audio route required.
Music.music_set_volume
Signature: self, value. Implementation: robot_hat/music.py:218.
Inputs: Volume. Units: 0..100. Returns: None. Side effects: Changes mixer.
Limits: Not microphone gain.
Music.sound_play
Signature: self, filename, volume=None. Implementation: robot_hat/music.py:170.
Inputs: Path, optional volume. Units: path / 0..100. Returns: None; playback is a side effect. Side effects: Sound output.
Limits: Blocks according to driver; audio setup needed.
Music.music_stop
Signature: self. Implementation: robot_hat/music.py:228.
Inputs: None. Units: none. Returns: None. Side effects: Stops music.
Limits: Does not stop locomotion.
Vilib.camera_start
Signature: vflip=False, hflip=False, size=None. Implementation: vilib/vilib.py:379.
Inputs: vflip,hflip, optional size. Units: pixels / booleans. Returns: None. Side effects: Starts capture thread.
Limits: Ready wait has no timeout; does not prove requested FPS.
Vilib.camera_close
Signature: ``. Implementation: vilib/vilib.py:391.
Inputs: None. Units: none. Returns: None. Side effects: Stops camera.
Limits: Restart lifecycle requires testing.
Vilib.display
Signature: local=True, web=True. Implementation: vilib/vilib.py:397.
Inputs: local/web flags. Units: booleans. Returns: None. Side effects: Starts optional GUI/web display.
Limits: Headless use local=False; port9000 no auth established.
Vilib.take_photo
Signature: photo_name, path=DEFAULLT_PICTURES_PATH. Implementation: vilib/vilib.py:446.
Inputs: Name, path. Units: filesystem path. Returns: Boolean image-save status from cv2.imwrite, or False. Side effects: Writes image.
Limits: Permissions/storage required.
Vilib.color_detect
Signature: color='red'. Implementation: vilib/vilib.py:541.
Inputs: Color name. Units: named HSV class. Returns: None. Side effects: Enables blob detection.
Limits: Lighting and selected thresholds matter.
Vilib.face_detect_switch
Signature: flag=False. Implementation: vilib/vilib.py:575.
Inputs: flag. Units: boolean. Returns: None. Side effects: Enables cascade.
Limits: Detection, not recognition.
Vilib.qrcode_detect_switch
Signature: flag=False. Implementation: vilib/vilib.py:630.
Inputs: flag. Units: boolean. Returns: None. Side effects: Enables pyzbar.
Limits: Payload is data, not trusted robot command.
Vilib.object_detect_switch
Signature: flag=False. Implementation: vilib/vilib.py:777.
Inputs: flag. Units: boolean. Returns: None. Side effects: Loads/enables model path.
Limits: TFLite/model/runtime gates.
Vilib.image_classify_switch
Signature: flag=False. Implementation: vilib/vilib.py:747.
Inputs: flag. Units: boolean. Returns: None. Side effects: Loads/enables classifier.
Limits: Global classification, not object location.
Vilib.hands_detect_switch
Signature: flag=False. Implementation: vilib/vilib.py:808.
Inputs: flag. Units: boolean. Returns: None. Side effects: Enables MediaPipe landmarks.
Limits: Python/runtime gate; no gesture_detect_switch API.
Vilib.pose_detect_switch
Signature: flag=False. Implementation: vilib/vilib.py:822.
Inputs: flag. Units: boolean. Returns: None. Side effects: Enables human pose.
Limits: Not robot orientation.
Vilib.traffic_detect_switch
Signature: flag=False. Implementation: vilib/vilib.py:602.
Inputs: flag. Units: boolean. Returns: None. Side effects: Enables sign model.
Limits: Assets/runtime required.
Vilib.rec_video_run
Signature: ``. Implementation: vilib/vilib.py:513.
Inputs: None. Units: none. Returns: None. Side effects: Starts recording thread.
Limits: Actual recorder format/storage needs validation.
Vilib.rec_video_start
Signature: ``. Implementation: vilib/vilib.py:522.
Inputs: None. Units: none. Returns: None. Side effects: Changes recorder state.
Limits: Camera required.
Vilib.rec_video_pause
Signature: ``. Implementation: vilib/vilib.py:527.
Inputs: None. Units: none. Returns: None. Side effects: Pauses recording.
Limits: No robot stop.
Vilib.rec_video_stop
Signature: ``. Implementation: vilib/vilib.py:531.
Inputs: None. Units: none. Returns: None. Side effects: Stops recording.
Limits: Not evidence of a correctly saved file.
Vosk.listen
Signature: self, stream=False, device=None, samplerate=None. Implementation: sunfounder_voice_assistant/stt/vosk.py:259.
Inputs: Streaming option. Units: audio/text. Returns: Recognition result. Side effects: Audio capture.
Limits: Requires selected microphone and cached/downloadable model.
Vosk.wait_until_heard
Signature: self, wake_words=None, print_callback=lambda x: print(f'heard: \x1b[K{x}', end='\r', flush=True). Implementation: sunfounder_voice_assistant/stt/vosk.py:149.
Inputs: Wake word options. Units: text. Returns: Matched wake result. Side effects: Audio listening.
Limits: No stock V4 mic.
Vosk.init
Signature: self. Implementation: sunfounder_voice_assistant/stt/vosk.py:78.
Inputs: None. Units: none. Returns: None. Side effects: Loads/downloads language model.
Limits: Effective-user model cache.
Piper.say
Signature: self, text: str, stream: bool=True. Implementation: sunfounder_voice_assistant/tts/piper.py:259.
Inputs: Text. Units: text/audio. Returns: None. Side effects: Synthesizes and plays speech.
Limits: Requires voice model; not guaranteed latency.
Illustrative call, not executed on hardware: tts.say("ready"). Any call constructing or commanding a crawler requires the recovery preflight.
Music.note
Signature: self, note, natural=False. Source: robot_hat/music.py. Inputs: Note name or MIDI-like index, natural flag. Units: Hz result. Returns: Float frequency. Side effects: No sound by itself. Limits: Key-signature adjustment applies unless natural=True.
Music.beat
Signature: self, beat. Source: robot_hat/music.py. Inputs: Beat duration/index. Units: seconds result. Returns: Float delay. Side effects: No sound by itself. Limits: Depends on selected tempo/note unit.
Music.play_tone_for
Signature: self, freq, duration. Source: robot_hat/music.py. Inputs: Frequency and requested duration. Units: Hz / seconds. Returns: None. Side effects: Generates PCM and plays through PyAudio. Limits: Not HAT PWM/buzzer control; waveform padding/duration and cleanup require bench review.
Advanced Api
Picrawler.coord2polar
Signature: self, coord. Implementation: picrawler/picrawler.py:42.
Inputs: One XYZ triplet. Units: nominal mm -> degrees. Returns: [alpha,beta,gamma]. Side effects: Appends to coord_temp.
Limits: Clamps/rescales without full reach rejection; reorder before forward/servo use.
Picrawler.polar2coord
Signature: self, angles. Implementation: picrawler/picrawler.py:80.
Inputs: Triplet in servo order. Units: degrees -> nominal mm. Returns: XYZ triplet. Side effects: No hardware.
Limits: Labels differ from inverse return; assumes nominal geometry.
Picrawler.set_angle
Signature: self, angles_list, speed=50, israise=False. Implementation: picrawler/picrawler.py:144.
Inputs: Four triplets in servo order. Units: degrees. Returns: Flattened limited angle list. Side effects: Moves and updates state.
Limits: Offsets/final servo clamp can change target further.
Picrawler.limit_angle
Signature: self, angles. Implementation: picrawler/picrawler.py:102.
Inputs: One servo-order triplet. Units: degrees. Returns: clampFlag, triplet. Side effects: No hardware.
Limits: Knee/hip naming locally confusing after reorder.
Picrawler.MoveList.move_body_absolute
Signature: self, x, y, z. Implementation: picrawler/picrawler.py:630.
Inputs: x,y,z displacement. Units: nominal mm. Returns: Coordinate array / helper coordinates. Side effects: Computes target data; no motion by itself.
Limits: Not a general global-frame body controller; joint limits still apply.
Picrawler.MoveList.rotate_body_absolute_x
Signature: self, degree_x. Implementation: picrawler/picrawler.py:614.
Inputs: degree_x. Units: degrees. Returns: Coordinate array / helper coordinates. Side effects: Computes target data; no motion by itself.
Limits: Not a general global-frame body controller; joint limits still apply.
Picrawler.MoveList.rotate_body_absolute_y
Signature: self, degree_y. Implementation: picrawler/picrawler.py:621.
Inputs: degree_y. Units: degrees. Returns: Coordinate array / helper coordinates. Side effects: Computes target data; no motion by itself.
Limits: Not a general global-frame body controller; joint limits still apply.
Picrawler.MoveList.turn_angle_coord
Signature: self, angle. Implementation: picrawler/picrawler.py:289.
Inputs: angle. Units: degrees. Returns: Coordinate array / helper coordinates. Side effects: Computes target data; no motion by itself.
Limits: Not a general global-frame body controller; joint limits still apply.
Robot.set_offset
Signature: self, offset_list. Implementation: robot_hat/robot.py:235.
Inputs: Twelve offsets. Units: degrees. Returns: None. Side effects: Writes persistent key, updates offsets.
Limits: Clamps ±20; exact path from effective source/user.
Robot.servo_move
Signature: self, targets, speed=50, bpm=None. Implementation: robot_hat/robot.py:131.
Inputs: Twelve target angles, speed or bpm. Units: degrees / unitless speed / beats per minute. Returns: None. Side effects: Blocking interpolation.
Limits: Subdegree moves can drop; no joint readback.
Robot.servo_write_all
Signature: self, angles. Implementation: robot_hat/robot.py:118.
Inputs: Angle list. Units: degrees. Returns: None. Side effects: Direct outputs with directions/origin/offset.
Limits: No interpolation or collision model.
Robot.reset
Signature: self, list=None. Implementation: robot_hat/robot.py:252.
Inputs: Optional angle list. Units: degrees. Returns: None. Side effects: Moves to reference.
Limits: Not emergency disable; may move suddenly.
Servo.angle
Signature: self, angle. Implementation: robot_hat/servo.py:25.
Inputs: Desired angle. Units: degrees. Returns: None. Side effects: Writes pulse-width command.
Limits: Final -90..90 clamp; 500..2500 us mapping is source configuration.
PWM.freq
Signature: self, freq=None. Implementation: robot_hat/pwm.py:73.
Inputs: Optional frequency. Units: Hz. Returns: Cached frequency on getter. Side effects: Changes shared timer.
Limits: Can alter other servos sharing timer.
PWM.pulse_width
Signature: self, pulse_width=None. Implementation: robot_hat/pwm.py:153.
Inputs: Optional timer count. Units: timer counts. Returns: Cached pulse count on getter. Side effects: Writes MCU register.
Limits: Raw counts are not degrees.
Pin.value
Signature: self, value: bool=None. Implementation: robot_hat/pin.py:273.
Inputs: Optional output state. Units: logical 0/1. Returns: Input state or write result. Side effects: GPIO read/write.
Limits: Pin construction claims/configures GPIO.
get_battery_voltage
Signature: ``. Implementation: robot_hat/device.py:179.
Inputs: None. Units: volts. Returns: Approximate pack voltage. Side effects: ADC acquisition.
Limits: Not SOC/health/servo-current sensing.
reset_mcu
Signature: ``. Implementation: robot_hat/device.py:165.
Inputs: None. Units: none. Returns: None. Side effects: Pulses MCU reset GPIO5.
Limits: Active reset; preserve/stop motion before diagnostics.
doctor_fix
Signature: ``. Implementation: robot_hat/doctor.py:449.
Inputs: None. Units: none. Returns: Before/after/fixes/reboot record. Side effects: Configuration/runtime writes.
Limits: Only after preserved state and reviewed diagnosis.
Internal Implementation
Picrawler.cali_helper_web
Signature: self, leg, pos, enter. Implementation: picrawler/picrawler.py:202.
Inputs: Leg selection, pos string, enter flag. Units: UI leg 1..4 / coordinate increment. Returns: None expected. Side effects: Moves, potentially saves offsets.
Limits: Confirmed None-copy defect; not a web-server entry point.
VoiceActiveCrawler.parse_response
Signature: self, text. Implementation: examples/voice_active_crawler.py:84.
Inputs: Text with ACTIONS marker. Units: text. Returns: Speech response text. Side effects: Queues tokens.
Limits: Not validated JSON; unknown tokens not executed.
VoiceActiveCrawler._wait_actions_done
Signature: self. Implementation: examples/voice_active_crawler.py:133.
Inputs: None. Units: none. Returns: None. Side effects: Waits for empty queue.
Limits: Confirmed does not wait for active command completion.
Example program atlas
This catalogs all 23 Python files directly under the current official PiCrawler examples directory, plus the control CLI. There are 22 programs, one support module and one CLI adapter. Examples are source-inspected, not advertised as hardware-tested. Run from the correct working directory for relative audio paths. README filenames/numbering are not authoritative when they differ from the tree.
Terminal toe calibration
examples/0_calibration.py — PROGRAM, FOUNDATION. Demonstrates Chart-guided adjustment, IK and persistence.
Input: leg/key input. Output: Moved reference pose and persisted offsets. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Controls can move on import; preserve config first. Physical function: NOT_TESTED.
Single-leg editor
examples/10_do_single_leg.py — PROGRAM, FOUNDATION. Demonstrates Index/XYZ changes.
Input: 1..4/WASDRF. Output: Toe commands. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Shallow command state; inspect local frame directions. Physical function: NOT_TESTED.
Record/play custom steps
examples/11_record_new_step.py — PROGRAM, FOUNDATION. Demonstrates Deep copy and playback.
Input: keys/space/P. Output: In-memory frame list. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Not file persistence; bounded workspace needed. Physical function: NOT_TESTED.
Twist/body motion
examples/12_twist.py — PROGRAM, FOUNDATION. Demonstrates Generated asymmetric Z targets.
Input: script loops. Output: Body motion/music. Hardware: hw-servos, hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Can request projected coordinates; avoid first recovery test. Physical function: NOT_TESTED.
Scripted expressive motions
examples/13_emotional_robot.py — PROGRAM, FOUNDATION. Demonstrates Composite coordinate behavior functions.
Input: scripted sequence. Output: Expressive poses. Hardware: hw-servos, hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: No emotion recognition; some target coordinates can clamp. Physical function: NOT_TESTED.
Example-level action gallery
examples/14_preset_actions.py — PROGRAM, FOUNDATION. Demonstrates Functions and named sequences.
Input: menu selection. Output: Poses/actions. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Not identical to library MoveList properties. Physical function: NOT_TESTED.
Speech input
examples/15_stt.py — PROGRAM, FOUNDATION. Demonstrates Vosk STT.
Input: microphone audio. Output: Printed recognized text. Hardware: hw-mic-candidate. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: False; microphone required: True.
Review: Mic not confirmed; model download may need network. Physical function: NOT_TESTED.
Speech output
examples/16_tts.py — PROGRAM, FOUNDATION. Demonstrates Piper or Espeak.
Input: typed text. Output: Synthesized speech. Hardware: hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: False; microphone required: False.
Review: Model/audio provisioning. Physical function: NOT_TESTED.
Online LLM adapter test
examples/17_online_llm_test.py — PROGRAM, ADVANCED. Demonstrates Provider requests.
Input: typed text/API credentials. Output: Provider response. Hardware: No actuator/sensor requirement for this program. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: REQUIRED_CLOUD_PROVIDER; camera required: False; microphone required: False.
Review: Network/key/model required; no robot action proof. Physical function: NOT_TESTED.
GPT voice action wrapper
examples/18_voice_active_crawler_gpt.py — PROGRAM, ADVANCED. Demonstrates STT/LLM/TTS/action queue.
Input: voice/keyboard. Output: Speech and named actions. Hardware: hw-mic-candidate, hw-camera, hw-speaker, hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: CONDITIONAL_HEADLESS; GUI required: False; GUI optional: False; network: REQUIRED_CLOUD_PROVIDER; camera required: True; microphone required: True.
Review: Cloud credential, camera option and queue-completion issue. Physical function: NOT_TESTED.
Doubao voice action wrapper
examples/19_voice_active_crawler_doubao.py — PROGRAM, ADVANCED. Demonstrates Cloud provider plus voice/action.
Input: voice/keyboard. Output: Speech and actions. Hardware: hw-mic-candidate, hw-camera, hw-speaker, hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: CONDITIONAL_HEADLESS; GUI required: False; GUI optional: False; network: REQUIRED_CLOUD_PROVIDER; camera required: True; microphone required: True.
Review: Configured endpoint/key; image enabled by default; no safety supervisor. Physical function: NOT_TESTED.
Basic movement
examples/1_move.py — PROGRAM, FOUNDATION. Demonstrates Action calls and repeat/speed.
Input: script sequence. Output: Locomotion poses. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Clear area and cutoff; blocking movement. Physical function: NOT_TESTED.
Ollama voice action wrapper
examples/20_voice_active_crawler_ollama.py — PROGRAM, ADVANCED. Demonstrates Local/LAN provider plus audio.
Input: voice/keyboard. Output: Speech and actions. Hardware: hw-mic-candidate, hw-speaker, hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: CONDITIONAL_HEADLESS; GUI required: False; GUI optional: False; network: LOCAL_OR_LAN_PROVIDER_AND_FIRST_MODEL_DOWNLOAD; camera required: False; microphone required: True.
Review: Pi model performance unmeasured; LAN failure possible. Physical function: NOT_TESTED.
Keyboard teleoperation
examples/2_keyboard_control.py — PROGRAM, FOUNDATION. Demonstrates Input-to-action mapping.
Input: WASD keys. Output: Gait calls. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: No independent deadman or hard stop. Physical function: NOT_TESTED.
Sound effects
examples/3_sound_effect.py — PROGRAM, FOUNDATION. Demonstrates File playback and mixer.
Input: selection/script. Output: Audio. Hardware: hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Audio routing and relative paths. Physical function: NOT_TESTED.
Reactive obstacle avoidance
examples/4_avoid.py — PROGRAM, FOUNDATION. Demonstrates Validity, median filter and threshold.
Input: range samples. Output: Turn/forward decision. Hardware: hw-servos, hw-sonar, hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Scalar forward sensing before blocking action. Physical function: NOT_TESTED.
Camera/vision controls
examples/5_display.py — PROGRAM, INTERMEDIATE. Demonstrates Color, face, QR and capture.
Input: interactive keys. Output: Detections/photos and web stream. Hardware: hw-camera. Libraries/imports are listed exactly in examples.json.
Execution: CONDITIONAL_HEADLESS_WITH_TTY; GUI required: False; GUI optional: True; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: True; microphone required: False.
Review: getlogin/GUI contexts require review; no motion controller. Physical function: NOT_TESTED.
Video recorder
examples/6_record_video.py — PROGRAM, INTERMEDIATE. Demonstrates Recorder state transitions.
Input: Q/E keys. Output: Video file. Hardware: hw-camera. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: True; microphone required: False.
Review: Space/permissions and clean close. Physical function: NOT_TESTED.
Red-target following
examples/7_bull_fight.py — PROGRAM, INTERMEDIATE. Demonstrates Detection-to-steering behavior.
Input: color_x/color_n. Output: Robot turns/advances. Hardware: hw-camera, hw-servos, hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: True; microphone required: False.
Review: Threshold/frame-width mismatch; no sonar stop. Physical function: NOT_TESTED.
Keyboard color treasure game
examples/8_treasure_hunt.py — PROGRAM, INTERMEDIATE. Demonstrates Threads and target-size success.
Input: keys/color blob width. Output: Motion and spoken target. Hardware: hw-camera, hw-servos, hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: INTERACTIVE_TTY; GUI required: False; GUI optional: False; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: True; microphone required: False.
Review: Not autonomous QR navigation. Physical function: NOT_TESTED.
Custom coordinate pose
examples/9_do_step.py — PROGRAM, FOUNDATION. Demonstrates One-frame coordinates.
Input: scripted triplets. Output: Pose changes. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Some target coordinates can clamp. Physical function: NOT_TESTED.
Servo neutral utility
examples/servo_zeroing.py — PROGRAM, FOUNDATION. Demonstrates Mechanical indexing reference.
Input: script run. Output: Neutral commands. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CORE_BEHAVIOR; camera required: False; microphone required: False.
Review: Do not use as passive assembled-robot diagnostic. Physical function: NOT_TESTED.
Voice control support module
examples/voice_active_crawler.py — SUPPORT_MODULE, ADVANCED. Demonstrates Lifecycle/action dispatcher.
Input: base-class hooks. Output: Queued action execution. Hardware: hw-servos. Libraries/imports are listed exactly in examples.json.
Execution: SUPPORT_MODULE; GUI required: False; GUI optional: False; network: BROWSER_OPTIONAL_OR_MODEL_DOWNLOAD; camera required: False; microphone required: True.
Review: No complete standalone launch configuration. Physical function: NOT_TESTED.
OpenClaw CLI adapter
picrawler-control/scripts/pc.py — CLI_ADAPTER, INTERMEDIATE. Demonstrates Bounded action-name CLI and faulty calibration shortcut.
Input: Subcommands and options. Output: Motion, scalar range, audio or calibration error. Hardware: hw-servos, hw-sonar, hw-speaker. Libraries/imports are listed exactly in examples.json.
Execution: CONDITIONAL_HEADLESS; GUI required: False; GUI optional: False; network: NONE_FOR_CLI; AGENT_NETWORK_SEPARATE; camera required: False; microphone required: False.
Review: Calibration command does not match API; step/speed limits require review. Physical function: NOT_TESTED.
Limitations and failure modes
Inexpensive hobby robotics has design tradeoffs, not just defects. This atlas separates mechanics, electrical loading, sensing, compute, software/control, network and vision. Source-confirmed defects are explicitly identified; physical symptoms are diagnostic possibilities rather than claims that this specimen has them.
No actual joint-angle feedback (CONTROL)
Why: Commanded arrays are software history. Possible symptom: Stall/slip can look like a completed pose. Consequence: Cannot close a measured joint loop.
Mitigation: Independent motion measurements or feedback actuators. New hardware may be required: True. All current physical function remains NOT_TESTED.
No established foot contact (SENSING)
Why: Stock wiring has no contact sensors. Possible symptom: Unexpected loss of support. Consequence: Planned polygon may not match real contact.
Mitigation: Measure/contact sensing plus controller changes. New hardware may be required: True. All current physical function remains NOT_TESTED.
No stock IMU (SENSING)
Why: No established mounted orientation sensor. Possible symptom: Tip/roll not directly detected. Consequence: No stock body stabilization.
Mitigation: IMU telemetry first; bounded feedback later. New hardware may be required: True. All current physical function remains NOT_TESTED.
Gear backlash/compliance (MECHANICAL)
Why: Geared hobby joints and load. Possible symptom: Direction/load-dependent endpoint error. Consequence: Pose accuracy and repeatability limited.
Mitigation: Measure hysteresis, reduce load, improve mechanism. New hardware may be required: False. All current physical function remains NOT_TESTED.
Surface-dependent slipping (MECHANICAL)
Why: Feet/contact friction. Possible symptom: Stride differs on floor types. Consequence: Gait cycles cannot be reliable odometry.
Mitigation: Surface tests and external state estimation. New hardware may be required: False. All current physical function remains NOT_TESTED.
Unqualified payload/CG envelope (MECHANICAL)
Why: No specimen load test. Possible symptom: Falls/heating under additions. Consequence: No numerical payload rating.
Mitigation: Measure mass/CG and qualify additions. New hardware may be required: False. All current physical function remains NOT_TESTED.
Shared Pi/actuator power budget (ELECTRICAL)
Why: V4 documented 5 V3 A versus real simultaneous load. Possible symptom: Brownouts/resets. Consequence: Compute and motion compete.
Mitigation: Measured budget, pacing and reviewed supply redesign. New hardware may be required: True. All current physical function remains NOT_TESTED.
One forward range (SENSING)
Why: Single acoustic direction. Possible symptom: Side/rear/edge obstacles missed. Consequence: Not a map or whole-body safety sensor.
Mitigation: Additional sensing and conservative behavior. New hardware may be required: True. All current physical function remains NOT_TESTED.
Timeout/polling validity (SENSING)
Why: Linux edge polling and acoustic conditions. Possible symptom: -1/-2 or unstable range. Consequence: Nonpositive results must remain invalid.
Mitigation: Timestamp validity/filtering and target tests. New hardware may be required: False. All current physical function remains NOT_TESTED.
Blocking motion calls (CONTROL)
Why: Looped interpolation. Possible symptom: Stop/observation delayed. Consequence: No guaranteed immediate network stop.
Mitigation: Single motion owner, bounded frames/cancellation design. New hardware may be required: False. All current physical function remains NOT_TESTED.
Silent coordinate projection (SOFTWARE)
Why: Radial/u clamps precede limited angle check. Possible symptom: Requested and reconstructed foot differ. Consequence: israise not full workspace enforcement.
Mitigation: Independent workspace/shape/finite checks. New hardware may be required: False. All current physical function remains NOT_TESTED.
Shallow coordinate copies (SOFTWARE)
Why: Only outer list copied. Possible symptom: Caller edits internal coordinate. Consequence: State can change without a command.
Mitigation: Deep-copy owned trajectories. New hardware may be required: False. All current physical function remains NOT_TESTED.
Subdegree move suppression (CONTROL)
Why: Integer maximum delta truncation. Possible symptom: No writes for <1degree change. Consequence: Small feedback corrections may be ignored.
Mitigation: Minimal upstream patch after matched tests. New hardware may be required: False. All current physical function remains NOT_TESTED.
Faulty web/CLI calibration path (SOFTWARE)
Why: Signature mismatch and None-copy. Possible symptom: TypeError. Consequence: Not a recovery server.
Mitigation: Use matched terminal helper; future tested patch. New hardware may be required: False. All current physical function remains NOT_TESTED.
Queue empty != completed action (CONTROL)
Why: No active-task completion accounting. Possible symptom: Overlapping lifecycle requests possible. Consequence: Intent actions not serialized reliably.
Mitigation: Explicit completion and one movement owner. New hardware may be required: False. All current physical function remains NOT_TESTED.
Optional runtime Python gate (VISION)
Why: Installer skips MediaPipe/TFLite on3.13+. Possible symptom: Advanced import/features missing. Consequence: Basic preview does not prove neural capabilities.
Mitigation: Spare-card tested environment; preserve old. New hardware may be required: False. All current physical function remains NOT_TESTED.
Unbounded camera readiness wait (VISION)
Why: Thread failure leaves flag false. Possible symptom: App hangs on camera_start. Consequence: Need startup timeout/errors.
Mitigation: Bounded wrapper and recovery policy. New hardware may be required: False. All current physical function remains NOT_TESTED.
Absolute target threshold mismatch (VISION)
Why: 100/220 band vs default640width. Possible symptom: Biased steering. Consequence: Example not benchmarked target follower.
Mitigation: Normalize thresholds and measure frame. New hardware may be required: False. All current physical function remains NOT_TESTED.
No confirmed microphone (SENSING)
Why: V4 audio output without onboard input. Possible symptom: Voice initialization fails. Consequence: STT cannot hear stock hardware.
Mitigation: Compatible USB microphone after power review. New hardware may be required: True. All current physical function remains NOT_TESTED.
Wi-Fi availability/latency (NETWORKING)
Why: Shared LAN/radio/client isolation. Possible symptom: Disconnect, stale commands/video. Consequence: Not an actuator clock or hard cutoff.
Mitigation: Deadman, freshness, local supervision. New hardware may be required: False. All current physical function remains NOT_TESTED.
Limited concurrent model headroom (COMPUTE)
Why: 4GB shared with OS/vision/audio. Possible symptom: Latency/memory pressure. Consequence: No validated model speed.
Mitigation: Measure small models or LAN-host inference. New hardware may be required: False. All current physical function remains NOT_TESTED.
Historical installation unresolved (SOFTWARE)
Why: Eggs/checkouts may disagree. Possible symptom: Same versionlabel behaves differently. Consequence: Updates can erase the undocumented fix.
Mitigation: Capture exact files/paths/SHAs/config and image. New hardware may be required: False. All current physical function remains NOT_TESTED.
The largest mechanical limits are joint backlash/load/traction, with no measured specimen payload envelope. The largest sensing limit is missing contact/orientation/joint feedback together with only narrow forward range. The largest control limit is open-loop blocked action execution. The largest electrical uncertainty is the real shared power budget under motion. The largest recovery uncertainty is the exact installed source/configuration that fixed the historical import error.
Open questions
A cloud source audit can establish how the current official code is structured. It cannot inspect the old card or prove that the specimen still boots. Questions are grouped by the evidence needed, with null answers and UNKNOWN state. Research-only follow-ups are distinguished from physical/card/bench work.
Can Answer Through Research
| ID | Question | Resolution |
|---|---|---|
| unknown-vision-ports | Gesture API and exact runtime compatibility | Current gesture reference absent; qualify a future port with pinned runtime |
Can Answer Through Research After Label
| ID | Question | Resolution |
|---|---|---|
| unknown-servo-spec | Exact servo torque/current datasheet | Read all servo labels first; no guessed currents |
Requires Bench And Carrier Review
| ID | Question | Resolution |
|---|---|---|
| unknown-bus-levels | Sonar echo/expansion pull-up voltage | Review actual carrier and measure before new wiring |
Requires Bench Test
| ID | Question | Resolution |
|---|---|---|
| unknown-boot | Current boot/SSH/HAT communication | Controlled recovery sequence |
| unknown-camera-function | Capture/stream and optional models | Separate enumeration/capture/detection checks |
| unknown-audio | Playback/capture/routing | Separate audio enumeration/playback/STT tests |
| unknown-battery | Battery health and load sag | Inspected pack and controlled measured loads |
| unknown-servo-health | Individual joint health/assembly | Supported initialization and slow verified movement |
Requires Physical Visual Inspection
| ID | Question | Resolution |
|---|---|---|
| unknown-hat-silkscreen | V4 visually confirmed by club owner, reported October 25, 2026 | MCU marking and electrical revision still need inspection |
| unknown-mcu | MCU part and board electrical revision | Read marking and consult manufacturer ordering table |
| unknown-camera | Installed sensor/module/ribbon | Photograph marking; later camera enumeration |
| unknown-frames | Physical local X/Y arrows and root-axis mounting | Verify official coordinate figure plus measured small toe increments |
Requires Sd Card Inspection
| ID | Question | Resolution |
|---|---|---|
| unknown-os | Current OS/kernel/Python | Capture release/kernel/interpreter per execution context |
| unknown-packages | Installed distributions/files and import paths | Capture pip/site metadata and installed source hashes |
| unknown-git | Checkout SHAs/local edits/stashes | Inspect every known directory, preserve whole source |
| unknown-old | picrawler_old origin and role | Compare remote/HEAD/diffs/timestamps without deleting |
| unknown-fix | What resolved the historical Robot error | Compare egg exports/dependencies/shadowing and checkouts |
| unknown-offsets | Current saved calibration and selected path | Find user/root candidates, copy before constructors |
| unknown-startup | Autostart services/network config | Capture relevant service definitions privately |
Build shared outputs once
The machine-readable edges in project-relationships.json are directed prerequisite → consumer. Recovery/calibration is an external mandatory gate rather than a counted project. The graph is acyclic; related-project links include reverse discoverability links and must not be interpreted as prerequisites.
| Shared output | Consumers it unlocks | Evidence contract |
|---|---|---|
| Reviewed poses and workspace | Recorder, body experiments, turn study and gait lab | Frame order/units, transition acceptance and baseline identity |
| Range reliability | Standoff, telemetry, reactive explorer | Validity/error/read-time characterization |
| Bounded behavior supervisor | Tracker, QR, browser, voice and intent planner | One owner, explicit completion, no-new-motion fault state |
| Telemetry/logger | Browser, IMU, MCU bridge, performance, replay and ROS | Stable timestamp/unit/validity/commanded-state contract |
| Camera manager and normalized tracker | Person-following, patrol and visual interaction | Freshness, target loss and frame orientation/runtime record |
| IMU recorder | Gait comparison, orientation feedback and localization | Bias/frame/sync and raw/estimated distinction |
| Framed MCU transport | Sensor acquisition, input node, display station | Peer sessions, bounded packets and dropout/restart evidence |
| Calibrated marker observations + ROS bridge | Known-course localization research | Extrinsics/units/time/error and no fictitious odometry |
The web read-only status endpoint, command supervisor and telemetry writer are reusable infrastructure, not extra public flagship projects. Each later guide should consume those outputs explicitly instead of copying the same network/control loop. A project's prerequisite project IDs are authoritative for scope planning; experiments can be selected inside the shared lab without a new public route.
Exact prerequisite list
p2-pose-studio: Recovered/calibrated robot baseline only.
p2-leg-workspace: p2-pose-studio
p2-body-motion: p2-pose-studio
p2-gait-lab: p2-leg-workspace, p2-turn-study
p2-turn-study: p2-pose-studio
p2-motion-recorder: p2-pose-studio
p2-dance-engine: p2-motion-recorder, p2-body-motion
p2-terrain-gait: p2-gait-lab, p2-feet-study
p2-feet-study: p2-turn-study
p2-range-lab: Recovered/calibrated robot baseline only.
p2-obstacle-explorer: p2-range-lab
p2-approach-stop: p2-range-lab
p2-wall-distance: p2-range-lab, p2-approach-stop
p2-light-seeker: p2-obstacle-explorer
p2-environment-transect: p2-qr-hunt, p2-telemetry-station
p2-color-hunter: p2-range-lab, p2-obstacle-explorer
p2-qr-hunt: p2-obstacle-explorer
p2-face-facing: p2-pose-studio
p2-object-follower: p2-color-hunter, p2-vision-performance
p2-gesture-control: p2-pose-studio, p2-vision-performance
p2-event-camera: p2-telemetry-station
p2-patrol-camera: p2-web-console, p2-event-camera, p2-qr-hunt
p2-marker-localization: p2-vision-performance, p2-turn-study
p2-vision-game: p2-pose-studio
p2-web-console: p2-obstacle-explorer, p2-telemetry-station
p2-mission-replay: p2-telemetry-station, p2-motion-recorder
p2-network-benchmark: p2-web-console
p2-boot-service: p2-telemetry-station
p2-telemetry-station: p2-range-lab
p2-power-study: p2-telemetry-station, p2-turn-study
p2-vision-performance: p2-telemetry-station
p2-fault-injection: p2-obstacle-explorer, p2-telemetry-station
p2-spoken-status: p2-pose-studio
p2-voice-control: p2-spoken-status, p2-obstacle-explorer
p2-llm-planner: p2-fault-injection, p2-obstacle-explorer
p2-imu-recorder: p2-telemetry-station, p2-gait-lab
p2-tof-coverage: p2-range-lab, p2-obstacle-explorer
p2-status-oled: p2-telemetry-station, p2-sensor-mount
p2-remote-matrix: p2-telemetry-station, p2-esp32-node
p2-pi-pico: p2-telemetry-station
p2-esp32-node: p2-telemetry-station, p2-obstacle-explorer
p2-touch-console: p2-web-console
p2-sensor-mount: p2-pose-studio
p2-ros-bridge: p2-telemetry-station, p2-fault-injection
p2-orientation-feedback: p2-imu-recorder, p2-fault-injection, p2-body-motion
p2-known-course: p2-marker-localization, p2-ros-bridge, p2-imu-recorder
p2-feedback-actuators: p2-leg-workspace, p2-imu-recorder, p2-fault-injection
Continue
Meeting checklist · Source library · Modification atlas · All project proposals