Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
436 task guidance node for autopilot #502
base: develop
Are you sure you want to change the base?
436 task guidance node for autopilot #502
Changes from 1 commit
917d5bf
cd4d076
7845070
7157c5c
d7dd424
cb2e138
0e8585a
6ab5edf
cd7f490
29c1ad3
07261ee
1fb8b90
d694e89
a007e80
05ff163
f44e105
9ca5b31
15fed69
46455e6
9e7d7ba
fc4780a
79a48b2
acc38cb
bc076c6
9b49170
2e9e1c8
d1987fa
ab21880
fa599fe
b695f1d
03bb8d3
992487d
a4700f8
6ad96af
a78dc87
1bfc2ee
e614471
d0061dc
aa27f9f
fd6db80
2f4cfa9
2d4cadf
8ba17ba
3160f92
afb0a89
845e362
62b1fd8
3b5c8d9
f748524
87309ba
13d1e6f
e6e3e9f
927b03a
3b80ce0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for this, consider using a dataclass instead of dictionary. FilterParams would be a fitting name for the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to also import the parameter classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a
before the log calls would remove the need for going into all the debug methods when it is not necessary. This means the same statement can be removed from inside the log methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The treshold should be a parameter. Add it to the config file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the initial state not just the same as the actual state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont feel like the comments add much here. What I meant was to use typehint for the
commands
input, a more fitting structure (like the state dataclass), and perhaps a quick description in the docstring.So something like this
Note that in this example I added surge velocity to the State dataclass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will require me to modify how I created the commands in the process_guidance method as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this could work
where the State class is modified to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you utilize Point for target (thus, generally for waypoints), this could be simplified to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I change this I might need to modify how waypoints are stored and processed, right now they are stored as a numpy array rather than points.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and it is probably better to just do it straight away since waypoints will be sent and received through a topic as Points in the full system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh I see.