Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local plan with 0 poses. #10

Open
veeraragav opened this issue Sep 18, 2018 · 3 comments
Open

Local plan with 0 poses. #10

veeraragav opened this issue Sep 18, 2018 · 3 comments

Comments

@veeraragav
Copy link

I followed the procedure in the documentation to use this planner with nav_core. The plugin was properly loaded. I get this error "computeVelocityCommands exception: Resulting plan has 0 poses in it.", when i give a goal.

@ghost
Copy link

ghost commented Jan 9, 2019

This can happen if DWB thinks the robot pose is too far from the plan generated by the global planner. You can try setting the prune_plan parameter to false to work around that.

Alternatively, if the costmap doesn't show free space around the path and current robot pose, you can get this issue as well, if I'm not mistaken.

@veeraragav
Copy link
Author

veeraragav commented Jan 23, 2019

The robot pose is with respect to map frame and the global plan is with respect to the odom frame. My robot's initial position is away from the map frame whic i set using the rviz. When i set the initial position of the robot in rviz, the robot's base link along with the odom frame moves there. Now i set the goal position. In this case the robot's pose is with respect to the map frame and the global plan coordinates are with respect to odom frame. In this case the distance calculated by this function getSquareDistance() becomes greater than the default prune distance which is 1m. It worked properly when i disabled prune_plan. How can i make it work without disabling the pruneplan?

@veeraragav
Copy link
Author

veeraragav commented Jan 23, 2019

I use this with nav_core using the adapter. The global_frame for local costmap is set to /odom. The possible solution could be switching it to /map. I had used obsctacle and inflation layer in the local costmap. Will changing it from /odom to /map cause any problem with the working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant