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

Incorrect point cloud scale with Gemini 2L #55

Open
danpprince opened this issue Aug 12, 2024 · 3 comments
Open

Incorrect point cloud scale with Gemini 2L #55

danpprince opened this issue Aug 12, 2024 · 3 comments

Comments

@danpprince
Copy link

The latest commit on main seems to give incorrect scale to point clouds with the Gemini 2L and the provided launch file, with the reported depth being about 1/4th the expected value.

Using the latest commit on main at the time of writing:

$ git rev-parse HEAD
455f00294373766b1f1ff3eb4173f55147cf0da2

Compiled with colcon build and running the provided launch file:

$ ros2 launch orbbec_camera gemini2L.launch.py 

I see the point cloud in rviz in the screenshot below. Measuring with the rviz focal point, the wall is about 17 cm away.
main 455f002 Screenshot from 2024-08-12 10-33-21

Using the latest tag v1.5.8, I created the screenshot below. Measuring with the focal point in rviz, I see the wall is about 70 cm away.

v1 5 8 Screenshot from 2024-08-12 10-31-38

The expected depth to the wall is 70 cm based on a tape measure.

I used the following Dockerfile to run this with ROS 2 Jazzy and Ubuntu Noble:

# Collect the arguments for the base ros image
ARG ROS_VERSION=jazzy
ARG UBUNTU_VERSION=noble

FROM ros:${ROS_VERSION}-ros-base-${UBUNTU_VERSION}

RUN apt-get update && apt-get upgrade -y

RUN apt update && apt install -y \
    libgflags-dev \
    nlohmann-json3-dev  \
    ros-${ROS_DISTRO}-desktop \
    ros-${ROS_DISTRO}-image-transport \
    ros-${ROS_DISTRO}-image-publisher \
    ros-${ROS_DISTRO}-camera-info-manager \
    ros-${ROS_DISTRO}-diagnostic-updater \
    ros-${ROS_DISTRO}-diagnostic-msgs

# Setup .bashrc
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/${username}/.bashrc
RUN echo "export ROS_WORKSPACE=/home/${username}/project" >> /home/${username}/.bashrc

ENTRYPOINT ["/bin/bash"]
@ZhouhaoZhang
Copy link

The same problem with depth image.

@danpprince
Copy link
Author

I did hear from Orbbec support, and they recommended to use the latest tag v1.5.8 instead of the default branch main. That does resolve the depth issue for me.

@jian-dong
Copy link
Contributor

The same problem with depth image.

Hi @danpprince,

Are you using the main branch? I have tested it currently, and the point cloud distance matches the expected results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants