-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Mypy nav2 simple commander #5059
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
Mypy nav2 simple commander #5059
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
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.
Thanks for this, I know this one is probably the most effort. There's a few instances where the server is short and not going to be spinning multiple times (get paths, smooth paths) where the changes would create dead code that I think can be reverted. I know it mimicks the style of other long-running tasks (follow path, navigate to pose) but these don't long-blocking tasks with timeouts on the spin
b6f8b5a
to
d982ba6
Compare
No worries, Steve. I am glad that I could help. |
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 also have this PR open that messes with the simple commander API (#5056). I change a few things like None / TaskEnum
for actions so we know what action we should be getting task completion or feedback for.
I also have getRoute(self, start, goal, use_start=False)
where start/goal can be either be int
or PoseStamped
.
Is there a good way around these?
d982ba6
to
e2bc291
Compare
|
…d to be mypy compatible. Signed-off-by: Leander Stephen D'Souza <[email protected]>
Signed-off-by: Leander Stephen D'Souza <[email protected]>
Signed-off-by: Leander Stephen D'Souza <[email protected]>
Signed-off-by: Leander Stephen D'Souza <[email protected]>
e2bc291
to
e2bec79
Compare
Sweet, thanks! |
Basic Info
Description of testing performed
ruff
-ruff check --select UP --fix --unsafe-fixes nav2_simple_commander
Description of contribution in a few bullet points
nav2_simple_commander
for strict mypy.Description of documentation updates required from your changes
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers: