Add replanning objective and dual-lidar nav2 integration for ur5e_ridgeback#560
Add replanning objective and dual-lidar nav2 integration for ur5e_ridgeback#560
Conversation
|
interesting, so I verified that it is working. I took a video of the first try and just luckily picked a final goal it can never get to! ha. So it is definitely re-planning! so that leads to 4) should we somehow realize the goal is unachievable and notify the user, or should they be smart enough to just hit stop objective like I did. Watch below replan-2026-04-02_15.56.34.mp4 |
|
Agree with @bkanator on 1. |
|
https://docs.nav2.org/behavior_trees/trees/nav_to_pose_recovery.html says it should try 6 times, but doesn't say what constitutes failure without reading the tree |
|
|
After discussion, we are going to block this pr on https://github.com/PickNikRobotics/moveit_pro/issues/17813 and https://github.com/PickNikRobotics/moveit_pro/issues/17504 as the behavior is a little unintuitive for the user considering retries and replanning without UI feedback. |
|
Should remember to switch controller back to jtc at the end of this objective so it defaults to whole body planning |
|
@bgill92 can you update this? |
it is true that the objectives that need whole body do switch at the start (I believe also tele-op does this). I guess it's a question of what works via command line at the end of different objectives? unsure if we want a common state...... if we don't care about switching back then make a note to take that switch out of the end of the Navigate to Clicked Point objective as well. They should all work without it? so maybe it's just a thought exercise? |
|
Yeah, my question is about the switching back. Is that every objectives responsibility to switch when they are done or should every objective ensure they switch when they start? How do you know which controller you should end on? |
Yes, I think that makes sense. An Objective that requires nav makes sure to switch to the nav2 controllers when it starts. |
|
And then switch back to JTC when it exits? |
773ba97 to
8ee9d2b
Compare
a51ca25 to
efaa132
Compare
…gration for ur5e_ridgeback
efaa132 to
6777ec0
Compare
Summary
navigate_to_clicked_point_with_replanning.xmlobjective forur5e_ridgebackinhangar_sim.platform_velocity_controller_nav2at entry and switches back tojoint_trajectory_controllerat exit, so whole-body planning is the default state after navigation completes (matches the pattern in the siblingnavigate_to_clicked_point.xml).ur5e_ridgeback, routing each to a per-sensor Nav2 topic (/scan_front,/scan_rear) via the<sensor>-block feature added in PickNikRobotics/moveit_pro#18160.scan_to_scan_filter_chaininstances applyLaserScanAngularBoundsFilter(0.7854–3.9270 rad) to each scan independently, clipping chassis self-hits. Combined arcs give 360° coverage with no self-return overlap.scan_front scan_rearas observation sources.obstacle_max_range: 3.5,raytrace_max_range: 4.5— matches the 5 × 5 m rolling window diagonal with a 1 m clearing margin.obstacle_max_range: 8.0,raytrace_max_range: 10.0— keeps the global planner's horizon comfortably beyond the local window while staying within the sensor's high-confidence range.Dependencies
Requires PickNikRobotics/moveit_pro#18160 (per-sensor MuJoCo LiDAR topic configuration). Must merge first.
Test plan
/scan_frontand/scan_rearpublish from MuJoCo./scan_front_filteredand/scan_rear_filteredcombine to cover 360° with no chassis artifacts./scan_rear→ filter → Nav2) works independently.