-
Notifications
You must be signed in to change notification settings - Fork 728
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
Vga scale #951
base: rolling
Are you sure you want to change the base?
Vga scale #951
Conversation
Signed-off-by: CursedRock17 <mtglucas1@gmail.com> Revert "Initial Merging: Setting up ImageSaverNode" This reverts commit 4534c95. DisparityNode: replace full_dp parameter with sgbm_mode (ros-perception#945) Previously, only the SGBM and HH modes were allowed add invalid_depth param (ros-perception#943) Add option to set all invalid depth pixels to a specified value, typically the maximum range. * Updates convertDepth parameter name and optimizes use of the parameter. * Updates PointCloudXYZ, PointCloudXYZI, and PointCloudXYZRGB with new invalid_depth parameter Adding scale parameter to camera calibrator Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
@@ -343,6 +343,7 @@ def __init__(self, boards, flags=0, fisheye_flags = 0, pattern=Patterns.Chessboa | |||
self.pattern = pattern | |||
self.br = cv_bridge.CvBridge() | |||
self.camera_model = CAMERA_MODEL.PINHOLE | |||
self.declare_parameter('vga_scale', 0) |
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.
Calibrator
is not a ROS Node, this code is incorrect. You can check some failures in the CI
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 that's the case, I assume it's more practical to make the scale
, a class member opposed to a function param since it's not required and would break API
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
@@ -343,6 +343,7 @@ def __init__(self, boards, flags=0, fisheye_flags = 0, pattern=Patterns.Chessboa | |||
self.pattern = pattern | |||
self.br = cv_bridge.CvBridge() | |||
self.camera_model = CAMERA_MODEL.PINHOLE | |||
self.vga_scale = 0 |
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.
do we need a method to set this attribute ?
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.
Another method has been added, just a simple way to set the scale
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
Addresses issue #589 which asks to add a
parameter
to the camera calibrator. This allows the user to preset their desired calibration scale for more precision.