Using teb_local_planner with via_points and obstacle avoidance
I'm using ROS Kinetic on a real 2-wheel differential drive bot. I would like to use move_base with Global Planner and TebLocalPlanner to navigate through a set of waypoints.
For teb_local_planner
, I am publishing a set of points as nav_msgs/Path on the topic /via_points
. I have the default parameters of teb_local_planner set up with changes to include via_points, such as weight_viapoints = 5
and weight_obstacle = 50
. My goal is to use this combination of Global Planner and TEBLocalPlanner to navigate through a preferred set of viapoints, while being able to avoid obstacles. The problem I am facing is that it seems like the viapoints do not seem to affect the global planner at all, even when I apply higher values such as weight_viapoints = 50
. As explained in the tutorial, I do not want to set that too high as I still require some obstacle avoidance behaviour.
I'm able to echo the /via_points
topic and see the points are being published once. What am I missing? Is there any other approach to achieving waypoint navigation with obstacle avoidance?
Any help will be appreciated!
@croesmann could you have a look at this?
Create a waypoint based global planneroadmap_global_plannerr instead. And use DWA local planner.
This seems interesting, is there any documentation you have created for this that might help me follow it better? For example the msgs you use aren't part of the package you have linked. @Veera Ragav
Can you refer this video
In most use cases, via points are inherited from the global plan rather than sending them manually on topic /via-points. However, your use case should work as well, but there are still some open issues