-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix type checks and typos #60
base: rolling
Are you sure you want to change the base?
Conversation
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.
Also is there any easy way of running the type checks in the CI?
@@ -23,7 +23,10 @@ | |||
from rclpy.duration import Duration | |||
from rclpy.executors import MultiThreadedExecutor | |||
from rclpy.node import Node | |||
from sensor_msgs.msg import CameraInfo, Image, PointCloud2, PointField | |||
from sensor_msgs.msg import CameraInfo |
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.
What style did you use? Because I am pretty sure it is okay to group imports in the ros2 one as long as they are in the correct order.
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 was isort with --profile google
as you suggested.
I dont know whats right, but I like this more than the brackets () method😅
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 really hate it... it is so verbose ...
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.
It is at least possible in the example: https://github.com/PyCQA/flake8-import-order/blob/master/tests/test_cases/complete_google.py
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.
from geometry_msgs.msg import Transform | ||
import numpy as np | ||
from rclpy.duration import Duration | ||
from rclpy.time import Time |
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.
What type check did you use? Was it static or during runtime? Because I am quite sure the time used here is the time message. And the rclpy time has a time source etc. and this is not compatible.
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.
Static.
The types from TF said its this one
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.
But here we put it into a message and the message has this type.
Dont know yet, but we could commit workspace settings for IDEs, that turn on Type checking. As Bitbots, we will discuss this on wednesday |
Ping @jaagut |
This PR fixes several type checker errors and typos in
ipm_image_node
ipm_library