Closed
Conversation
This reverts commit 2ba0153.
Contributor
Greptile SummaryThis PR reverts PR #923 to restore the original navigation stack architecture. The revert brings back the three-layer navigation system: Key changes restored:
The revert adds ~2000 lines of code across 26 files, restoring comprehensive test coverage and documentation. Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Navigator as BehaviorTreeNavigator
participant GoalValidator as Goal Validator
participant GlobalPlanner as AstarPlanner
participant LocalPlanner as HolonomicLocalPlanner
participant RecoveryServer
participant Robot
User->>Navigator: set_goal(PoseStamped)
Navigator->>Navigator: Transform to odom frame
Navigator->>Navigator: Set state to FOLLOWING_PATH
loop Control Loop (1Hz)
Navigator->>RecoveryServer: update_odom(latest_odom)
RecoveryServer->>RecoveryServer: Check if robot stuck
alt Robot is stuck
RecoveryServer-->>Navigator: stuck detected
Navigator->>Navigator: cancel_goal()
Navigator->>LocalPlanner: reset()
else Robot moving
Navigator->>GoalValidator: find_safe_goal(costmap, goal)
GoalValidator->>GoalValidator: Run BFS/spiral/voronoi/gradient
GoalValidator-->>Navigator: safe_goal_position
alt Safe goal found
Navigator->>GlobalPlanner: publish target(safe_goal)
GlobalPlanner->>GlobalPlanner: astar(costmap, goal, robot_pos)
GlobalPlanner->>GlobalPlanner: resample_path(path)
GlobalPlanner->>LocalPlanner: publish path
LocalPlanner->>LocalPlanner: compute_path_following(path)
LocalPlanner->>LocalPlanner: compute_obstacle_repulsion(costmap)
LocalPlanner->>LocalPlanner: transform to robot frame
LocalPlanner->>Robot: publish cmd_vel
Navigator->>LocalPlanner: check_goal_reached()
alt Goal reached
LocalPlanner-->>Navigator: true
Navigator->>User: publish goal_reached
Navigator->>Navigator: Set state to IDLE
Navigator->>LocalPlanner: reset()
end
else No safe goal
Navigator->>Navigator: cancel_goal()
end
end
end
|
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.
No description provided.