# Run the basic walking demonstration
python src/test_walking_controller.py
This demo shows:
- Initial stabilization
- Force distribution
- Walking pattern execution
# In walking_controller_fixed.py
use_gui = True # Enable visual simulation
# Enable force vectors
p.addUserDebugLine(...)
# Enable COM trajectory
p.addUserDebugPoints(...)
python src/test_stable_pose.py
Demonstrates:
- Force distribution
- COM adjustment
- Stability maintenance
python src/implement_walking.py
Shows:
- Walking pattern generation
- Smooth transitions
- Force-aware control
python src/force_test.py
Visualizes:
- Ground contact forces
- Force distribution
- Center of pressure
# In walking_controller_fixed.py
startup_time = 2.0 # Longer for smoother start
cycle_time = 1.2 # Slower for stability
step_height = 0.04 # Lower for safety
step_length = 0.08 # Shorter steps
target_ratio = 0.85 # Force distribution target
min_total_force = 180 # Minimum safe force
max_pitch = 5.0 # Maximum pitch deviation
force_timeout = 10.0 # Force calculation timeout
CONFIG = {
'use_gui': True,
'debug_lines': True,
'force_display': True
}
CONFIG = {
'use_gui': False,
'time_step': 1/240,
'max_force': 500
}
# Ensure environment is ready
python src/version_check.py
# Verify URDF loading
python src/debug_contact.py
# Run with default parameters
python src/test_walking_controller.py
# Expected output:
# - Force ratio: ~0.800
# - Total force: ~294.3N
# - Pitch: ~0.0°
python src/force_analysis.py --display_forces
python src/implement_walking.py --debug_view
- Check ground plane configuration
- Verify collision geometries
- Adjust initial pose
- Reduce step length
- Increase cycle time
- Adjust force parameters
python src/debug_contact.py --show_forces
python src/test_walking_controller.py --verbose
- Force ratio: 0.75-0.95
- Total force: >180N
- Pitch deviation: <5°
- Smooth transitions
- Stable walking
- Even force distribution
- Maximum step length: 0.1m
- Maximum step height: 0.05m
- Maximum velocity: 0.5m/s
- Emergency stop: Ctrl+C
- Reset pose: 'R' key
- Force recalibration: 'F' key