ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to avoid planner jumping between 2 possible path.

asked 2022-06-14 03:51:51 -0600

stu00608 gravatar image

Hi everyone, recently I'm using Navigation2 release 1.1.0 with Galactic built from source in Ubuntu18.04.

I'm using Smac 2D Planner and TEB controller in my navigation stack, they are run in 10Hz. The localization is provided by another node, all running in a real robot.

To describe my question, here is the video.

Youtube

You can see there are 2 symmetric pathes generated by global planner (both Navfn and Smac 2D). It will cause the robot stuck at the intersection. How can I be sure that it will keep the path as long as there are no blocked space.

If there is any missing information please let me know. Really want some help on it. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-06-14 18:10:33 -0600

Replan at a reduced rate or check out one of the other provided behavior trees Nav2 provides (or create your own!).

But the specific problem of path oscillation was the motivation behind this particular behavior tree: https://github.com/ros-planning/navig... which includes both time-based replanning at a reduced rate and event-based replanning due to critical collisions.

edit flag offensive delete link more

Comments

Actually I didn't modify any behavior tree node in nav2 for this task! I'll give it a try, thank you for your reply!

stu00608 gravatar image stu00608  ( 2022-06-15 02:33:37 -0600 )edit

Hi Steve, I've tried some features in behavior tree, that solves my problem! But I realized that I wrote a wrong version of release that I'm using, it's 1.0.12 . There are less bt nodes than humble. Is there any plan to backport those functionalities back to galactic?

stu00608 gravatar image stu00608  ( 2022-07-05 22:10:32 -0600 )edit

Some are able to be, but not all. Additionally, Galactic is EOL in 4 months, so its nearly out of support anyhow.

stevemacenski gravatar image stevemacenski  ( 2022-07-06 17:18:38 -0600 )edit

Then I think I should consider to upgrade the distro, thanks for your response!

stu00608 gravatar image stu00608  ( 2022-07-07 01:23:57 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-06-14 03:51:51 -0600

Seen: 233 times

Last updated: Jun 14 '22