Skip to content
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

Transform point cloud from ZED frame to World frame #16

Open
2 of 4 tasks
anhtuduong opened this issue May 13, 2023 · 0 comments
Open
2 of 4 tasks

Transform point cloud from ZED frame to World frame #16

anhtuduong opened this issue May 13, 2023 · 0 comments
Assignees

Comments

@anhtuduong
Copy link
Owner

anhtuduong commented May 13, 2023

Transformation

Point cloud taken from ZED camera is based on the camera's frame.
We need to transform every point cloud to world's frame as it is the base frame.

Current transformation from camera's frame to world's frame:

w_R_c = np.matrix([[0, -0.499, 0.866], [-1, 0, 0], [0, -0.866, -0.499]])
x_c = np.array([-0.9, 0.24, -0.35])
base_offset = np.array([0.5, 0.35, 1.75])
# Transform point cloud to world frame
def transform_pointcloud(point_cloud):
    """ @brief Transform point_cloud to world frame
        @param point_cloud (list): list of point_cloud
        @return point_cloud (list): list of point_cloud
    """
    point_cloud = np.array(point_cloud)
    for i in range(len(point_cloud)):
        point_cloud[i] = point_cloud[i].dot(w_R_c.T) + x_c + base_offset
    
    log.debug('point_cloud transformed')
    return point_cloud

Cleaning point cloud

Point cloud taken from ZED camera is included the point cloud of the surface of the table, as it extracts every pixels of the 2D bounding box.

The point is to filter all the point cloud that belong to the object, not the surface of the table.


Tasks:

  • Testing transformation to world frame on a single object
  • Testing clean point cloud for one object
  • Implement general method for transformation between frames
  • Implement general method for cleaning all point cloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant