|
| def | __init__ (self) |
| |
| def | callback (self, msg_rgb, msg_depth) |
| |
| def | central_pixel_to_3d (self, depth) |
| |
| def | DEPRECATED_pixel_to_3d (self, u, v, depth, K, T) |
| |
| def | get_transformation (self, source_frame, target_frame, tf_cache_duration=2.0) |
| |
| def | run (self) |
| |
| def | transform_point (self, transformation, point_wrt_source) |
| |
Definition at line 18 of file deprojection_2D_to_3D.py.
◆ __init__()
| def deprojection_2D_to_3D.Deprojection.__init__ |
( |
|
self | ) |
|
◆ callback()
| def deprojection_2D_to_3D.Deprojection.callback |
( |
|
self, |
|
|
|
msg_rgb, |
|
|
|
msg_depth |
|
) |
| |
◆ central_pixel_to_3d()
| def deprojection_2D_to_3D.Deprojection.central_pixel_to_3d |
( |
|
self, |
|
|
|
depth |
|
) |
| |
Convert central pixel coordinates to 3D coordinates using camera intrinsics and extrinsics.
Note: the central pixel is assumed to be the one for which the laser gives the depth info.
Parameters:
- depth: Depth value of the pixel
Returns:
- Point in 3D space (x, y, z)
Definition at line 79 of file deprojection_2D_to_3D.py.
◆ DEPRECATED_pixel_to_3d()
| def deprojection_2D_to_3D.Deprojection.DEPRECATED_pixel_to_3d |
( |
|
self, |
|
|
|
u, |
|
|
|
v, |
|
|
|
depth, |
|
|
|
K, |
|
|
|
T |
|
) |
| |
Convert pixel coordinates to 3D coordinates using camera intrinsics and extrinsics.
Parameters:
- u, v: Pixel coordinates in the image
- depth: Depth value of the pixel
- K: Intrinsic camera matrix (3x3)
- T: Extrinsic camera matrix (4x4)
Returns:
- Point in 3D space (x, y, z)
Definition at line 116 of file deprojection_2D_to_3D.py.
◆ get_transformation()
| def deprojection_2D_to_3D.Deprojection.get_transformation |
( |
|
self, |
|
|
|
source_frame, |
|
|
|
target_frame, |
|
|
|
tf_cache_duration = 2.0 |
|
) |
| |
◆ run()
| def deprojection_2D_to_3D.Deprojection.run |
( |
|
self | ) |
|
◆ transform_point()
| def deprojection_2D_to_3D.Deprojection.transform_point |
( |
|
self, |
|
|
|
transformation, |
|
|
|
point_wrt_source |
|
) |
| |
◆ cv2_img
| deprojection_2D_to_3D.Deprojection.cv2_img |
◆ cx
| deprojection_2D_to_3D.Deprojection.cx |
◆ cy
| deprojection_2D_to_3D.Deprojection.cy |
◆ depth
| deprojection_2D_to_3D.Deprojection.depth |
◆ fx
| deprojection_2D_to_3D.Deprojection.fx |
◆ fy
| deprojection_2D_to_3D.Deprojection.fy |
◆ img_shape
| deprojection_2D_to_3D.Deprojection.img_shape |
◆ rate
| deprojection_2D_to_3D.Deprojection.rate |
| deprojection_2D_to_3D.Deprojection.T |
The documentation for this class was generated from the following file: