ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

question about projectpixelto3dray

asked 2012-09-17 00:06:59 -0500

Alberto Martín gravatar image

updated 2012-09-17 02:01:32 -0500

Lorenz gravatar image

Hi

I have a question about the function projectPixelTo3dRay, according to the API the return value is a 3d ray passing through (u,v).

But what does that mean? Why Z is 1? How I can calculate the point where it intersects the ray with the floor (Z = 0)?

Thanks

edit retag flag offensive close merge delete

Comments

Thanks domhege, but how I can transform between the camera system and the system floor? you know any example?

Alberto Martín gravatar image Alberto Martín  ( 2012-09-17 04:12:52 -0500 )edit

Use the tf library. Obviously someone, somewhere must compute this transformation, i.e. where is the camera relative to the floor.

dornhege gravatar image dornhege  ( 2012-09-17 05:00:32 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2012-09-17 02:39:42 -0500

dornhege gravatar image

I think those are camera coordinates, Z=0 does NOT equal floor. Z=0 should equal the origin of the pinhole camera model.

You will need to transform between the camera system and whatever system you have that defines where the floor is.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-09-17 00:06:59 -0500

Seen: 1,337 times

Last updated: Sep 17 '12