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

find_object_3d can not get the distance of target object. #106

Open
onlooker82 opened this issue Dec 23, 2020 · 3 comments
Open

find_object_3d can not get the distance of target object. #106

onlooker82 opened this issue Dec 23, 2020 · 3 comments

Comments

@onlooker82
Copy link

Dear Matlabbe

I'm trying to use the find_object_3d to get the distance of target object.
The target object can be found, but the distance can't be measured.

Log always show the warning:
image

The rqt_image_view:
image
and
image

find object gui:
image

My PC OS is ubuntu 16.04 and ROS kinetic.
RGBD camera is realsense L515, particularly, this RGBD camera color width and height is 1280720 but depth width and height is 640480.
It seems that if the target object is not in the upper left corner of the image, will get the below error:
image
image

Could u help to see this problem?
Thanks very much.

@onlooker82
Copy link
Author

Hi,

The find_object_3d.launch file I'm using:
image
image

@matlabbe
Copy link
Member

The depth image is not registered to color image. With realsense cameras (not sure for L515), you should have a topic called aligned_depth_to_color, use that one for depth.

@onlooker82
Copy link
Author

The depth image is not registered to color image. With realsense cameras (not sure for L515), you should have a topic called aligned_depth_to_color, use that one for depth.

Dear matlabbe
It works! thx very much!

And below is the correct source topic with L515:
image

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

2 participants