fix(planning): stop robot properly when no active nav goal #118
Merged
fix(planning): stop robot properly when no active nav goal #118
Conversation
Contributor
xiaolefang-dm
commented
Apr 28, 2026
- stop publishing path on goal-reached,
- fix camera-frame distance check,
- remove poi_changed dependency,
- raise goal threshold to 0.5 m,
- clean up dead-band logic in cmd_vel
|
|
|
291d405 to
85cb9d6
Compare
|
target_pose is never cleared on arrival, so planning_node kept generating paths and the robot never stopped. Now publishes an empty path once within 0.3m of target_pose so cmd_vel_control stale-path protection kicks in. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d check target_pose is a camera-frame position (POI recorded as camera pose), but previously compared against robot control center which is 0.35m behind the camera, so dist_to_goal was always ~0.35m > 0.3m threshold. Now compare T[:3,3] (camera position) directly to target_pose. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
map_node already detects arrival (dist < 0.5m) and publishes poi_change, which clears target_pose in planning_node, which then publishes an empty path to stop the robot. The dist_to_goal guard here is unreachable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
85cb9d6 to
e0e6a09
Compare
|
dvorak0
requested changes
Apr 28, 2026
Removed redundant path publishing when target_pose is None or all trajectories are in collision.
|
|
|
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.