-
Notifications
You must be signed in to change notification settings - Fork 32
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
Select start pose option #64
Comments
An image of what you mean would be helpful and detail about which node you're using. The paths of the field now (not row node) should start at one of the corners of the field, minus the headlands and the tool's radius. So there are different variant options. v1.X in F2C includes the ability to modify the But, I did think to myself someone might eventually want that feature, so I didn't do anything that prevents a contributor from adding in which
Yeah! Look at the path and take its first point |
Thanks for the reply, I am essentially using the demo, https://github.com/open-navigation/opennav_coverage/tree/iron/opennav_coverage_demo.
I mean through the python interface. All I see is
Am I supposed to use a compute message first? If so, then how do I run the computed path?
I tried rotating the input array, but no matter what is starts at the point with the lowest x value. |
You'd need to create the appropriate behavior tree to do that - that's the power of Nav2 to allow you to modify the navigation logic to enable something like Navigating for Coverage in the first place - but it should be straight forward for what you need. Have a sequence that is: Plan a route stored in You'll want to / need to extend it to your particular application desires - I'd love to add a new BT in that does what we discussed once you've put it together. I'm happy to merge that PR so that others can have that as well! |
I see. I'm not very familiar with behavior trees. I tried setting up 2 navigators.
|
Wait, it does almost work, but I get it doesnt seem to be processing the goal properly |
That generally look about right! Is the goal at either of those coordinates? Might be worth printing some out. What's the global frame and is that in your TF tree? Its possible that the I'm surprised that you could get |
Ya if I input any nonsense in that field I get 0,0. So its not working, thats just the default value. |
Got it - a new BT node for that should be easy. Here's an example: https://github.com/ros-navigation/navigation2/blob/main/nav2_behavior_tree/plugins/action/remove_passed_goals_action.cpp the "work" parts of it are different, but shows how to write the BT node and get/set the input and output ports with a path |
So I got it all working, although if the start point is too far, I get the following error. Any idea on how to fix it? I assume its a config thing on my side. |
I assume outside the bounds of the costmap? You just need to set that size appropriately for the field you’re in |
Thanks. I guess once the pull requests are merged we can close the issue |
These look great! Merged! Thanks for the contributions! |
I have done some visualization of the planned paths. It seems the path starts at an arbitrary point near the left of the polygon, (not the corner of the polygon where the bot is). Is there a way to control this? If not, is there a way to get the start pose before path execution starts so that we can navigate to it?
The text was updated successfully, but these errors were encountered: