Implement P controller for Limo robot navigation#5
Open
ryanrahman27 wants to merge 2 commits intoCL2-UWaterloo:mainfrom
Open
Implement P controller for Limo robot navigation#5ryanrahman27 wants to merge 2 commits intoCL2-UWaterloo:mainfrom
ryanrahman27 wants to merge 2 commits intoCL2-UWaterloo:mainfrom
Conversation
ryanrahman27
commented
Sep 25, 2025
- Added P controller C++ implementation in limo_control package
- Created launch files for simulation + controller integration
- Added headless launch files for local macOS compatibility (Gazebo GUI was not working on local machine)
- Updated app.sh for automatic task execution
- Added test scripts and documentation
- Completed assignment requirements: controller, launch files, automation
- Add P controller C++ implementation in limo_control package - Create launch files for simulation + controller integration - Add headless launch files for macOS compatibility - Update app.sh for automatic task execution - Add test scripts and documentation - Complete assignment requirements: controller, launch files, automation
…ases - Refactored p_controller.cpp to use two-stage approach: * Stage 1: Turn-in-place with zero linear velocity until aligned * Stage 2: Drive-to-goal with orientation trimming - Added new parameters: * kp_angular_trim: smaller gain for orientation corrections during driving * angular_tolerance: threshold (0.05 rad) for phase switching - Added in_drive_phase flag to track controller state - Improved logging to show phase transitions - Created comprehensive documentation: * CONTROLLER_IMPROVEMENTS.md: technical implementation details * STAGED_CONTROLLER_VERIFICATION.md: performance verification report - Added visualization script (plot_staged_controller.py) to analyze: * XY trajectory showing turn-then-drive behavior * Velocity profiles demonstrating zero linear velocity during turn * Error convergence with clear phase transition - Performance verified: 1.2s turn-in-place, 6.9s drive-to-goal - Addresses feedback on cross-track error reduction and predictable trajectories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.