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
Lidar points to image #67
Comments
Hi @Sarxell , the way to project lidar 3d coordinates to a camera is as follows: First you must transform the points from the lidar coordinate frame to the camera coordinate frame. For that you need to transformation from the camera to the lidar (cameraTlidar). You can get it using a
So if you do this: P[camera] = cameraTlidar x P[lidar] you get the points in the camera reference frame (notice the camera reference frame is the camera_rgb_optical_frame in ROS). After that you can project to the image by using the intrinsic matrix K [u,v,w]T = K x P[camera] xpix = u/w Some of lidar points may indeed be outside the image max width and height, because they are not visible in the image. More info: and an example: Hope it helps, |
So, the transformation is to the camera_rgb_optical_frame to the lidar? I was doing the matrix from the camera_link... This T is the cameraTlidar or is it another transformation? |
On Mon, Feb 21, 2022, 15:28 SaraPombinho ***@***.***> wrote:
So, the transformation is to the camera_rgb_optical_frame to the lidar? I
was doing the matrix from the camera_link...
Yes the optical frame is the one with the z forward.
And I have a question
In here:
[u,v,w]T = K x P[camera]
This T is the cameraTlidar or is it another transformation?
Here T means transposed ...
… —
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWTHVTUXR2DQTHS2N4NIM3U4JK2VANCNFSM5O45NDYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I forgot! I will try it that way |
I changed the cameraTlidar to the correct frames and it worked! Thank you! |
Great!
…On Mon, Feb 21, 2022, 16:58 SaraPombinho ***@***.***> wrote:
I changed the cameraTlidar to the correct frames and it worked! Thank you!
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWTHVV4CEDDDPSSF5NWNJDU4JVLPANCNFSM5O45NDYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Good night @miguelriemoliveira and @danifpdra ,
I am having a problem understanding how to pass the lidar points to the image. Right now, I found my extrinsic and intrinsic values, the intrinsic from the camera_info and the extrinsic from the urdf.
It gave me this values:
I also found the coordinates from the lidar, the way we made in class 10:
When I multiply these values I get values in the order of the 2000, 2300 most of the time...
(my camera has a width of 1280 and height of 720)
I already tried thinking that it's from the middle and subtracting -1280/2 and -720/2 but I still got no results
I can also have the extrinsic matrix wrong but I don't know
Probably I'm thinking this wrong but I cannot figure it out
The text was updated successfully, but these errors were encountered: