-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added a write parameter for the Mock Global Path node #223
Conversation
8239982
to
12d2a21
Compare
I rebased this branch so that it only contains new commits that aren't already in other PR's that were squashed and merged into main. Also changed |
How much do you think the GPS position should change for us to want to generate a new global path? I am just wanting to set a default value for a gps_threshold param in the yaml file |
@jamenkaye any ideas? Some ideas that come to mind:
And just thought of this, is there a way to force update the path even if it stays the same? I guess saving the file would do this? |
Could we implement a service to run global_path_callback() on request, and request it from the command line with rosservice? Saving the csv file would also do it though. |
Ooh interesting idea, I think that could work. As long as it's not too complicated, since saving the file already works. Also would want to run some version of the callback without all the checks right |
63de7d6
to
5c15783
Compare
Should we skip adding another parameter, and just use interval_spacing as the threshold distance? |
I'm just worried if we use interval spacing directly then we could run into some trouble if right when we reach one global waypoint we go back a bit, which would cause the path to regenerate |
okay, sounds good, I will keep it in there |
This idea would make |
Sounds good! I made it 2 for now |
Sorry I'm a little late to the party! I wanted to focus on exams. I like the (Since the angles are all 60°, its an equilateral triangle so the spacing between waypoints is the same as the distance from the boat at the rightmost corner to the waypoint) I'm a little unclear on the context for this feature though. Are we still planning to manually send the global path in deployment, or is this an autonomous global pathfinding that just plots a straight line? If its the latter, that would seem a little silly considering we already have a fancy global pathfinding that uses weather data too. |
Aside from the mgp node, what I've made so far is a custom path builder, and an interpolation function that fills in any intervals (which are more than interval_spacing apart) with a straight, evenly spaced sub path. While I think everything I've built so far is just inteded for mocks, I think there could be a use case for what I made in deployment, if we want to specify more complicated paths than just start->end, for example. |
Ah makes sense, thanks for explaining! 👍 |
43e29bf
to
7569e61
Compare
Description
Linked to Issue 49 in Local Pathfinding.
The purpose was to add a parameter to determine whether the generate_path function in node_mock_global_path.py should write a generated path to a new csv file.
The added parameter is:
write
Verification
Resources