- Ubuntu 22.04 or later
- Python 3.12
- GPU support (optional, for improved performance)
-
Set up Python Environment
# Install pyenv for Python version management curl https://pyenv.run | bash # Add to ~/.bashrc echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(pyenv init -)"' >> ~/.bashrc echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc # Install Python 3.12 pyenv install 3.12.0 pyenv global 3.12.0
-
Clone Repository
git clone <repository-url> cd robotics_workspace
-
Install Dependencies
pip install numpy>=2.0.0 pip install pybullet
-
PyBullet Configuration
- GUI Mode (default): Set
use_gui=True
in configuration - Headless Mode: Set
use_gui=False
for environments without display
- GUI Mode (default): Set
-
Robot Model Configuration
- URDF file location:
src/models/simple_biped_stable.urdf
- Default parameters in
walking_controller_fixed.py
:startup_time = 2.0 cycle_time = 1.2 step_height = 0.04 step_length = 0.08
- URDF file location:
-
Force Distribution
- Target force ratio: 0.85
- Minimum total force: 180N
- Adjust
force_scale
andtransition_scale
for smoother transitions
-
Stability Parameters
- Maximum pitch deviation: ±5°
- Force balance timeout: 10 seconds
- Emergency stop conditions in
walking_controller_fixed.py
-
Common Issues
a. Zero Ground Contact Forces
- Check URDF collision geometries
- Verify initial pose configuration
- Ensure proper ground plane setup
b. Force Distribution Issues
- Adjust COM position parameters
- Check force feedback gains
- Verify joint angle limits
c. Walking Stability Issues
- Reduce step length/height
- Increase stabilization time
- Adjust PID gains
-
Debugging Tools
- Use
debug_contact.py
for force visualization - Enable PyBullet debug lines with
p.addUserDebugLine()
- Monitor force ratios with
force_test.py
- Use
-
Key Metrics
- Force distribution ratio
- Total ground contact force
- Pitch angle
- Joint positions and velocities
-
Logging
- Default log location:
logs/
- CSV format for force data
- Performance metrics tracking
- Default log location:
-
Configuration Backup
- Save custom parameters
- Backup URDF modifications
- Store PID gain settings
-
Emergency Recovery
- Emergency stop procedure
- Reset to stable pose
- Force recalibration
For technical support or bug reports, please:
- Check the troubleshooting guide
- Review debug logs
- Submit detailed issue reports with:
- System configuration
- Error messages
- Reproduction steps