Ask Your Question
0

Is it possible to overlay a 2D image over a pointcloud in RViz2

asked 2019-04-23 10:58:23 -0600

NN_SS gravatar image

Let's say I have a 2D image, taken from a video. Let's say I also have a Pointcloud, generated by a radar sensor. Would it be possible to project this 2D image over the Pointcloud, such that the Pointcloud acts like a 3D model (in which the points are vertices of said model) and the image acts as the texture for the model? If it is possible, is there anything online that could tell me how to do it?

EDIT: I also saw a question ( https://answers.ros.org/question/2185... ) and the top answer said something about being able to use an image to texture a Mesh object. Would it be possible to use the radar information I used to create a Pointcloud in order to create a Mesh? The radar data is represented as polar coordinates, which we then convert to cartesian to generate the Pointcloud)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-04-23 11:52:17 -0600

If you want to try to project a RGB video onto the point cloud, I used to do that with asus xtion which was providing a point cloud and rgb image stream. I was able to visualize video on the point cloud by adding Camera and choosing "Image Rendering" as overlay while also visualizing point cloud. If you dont have a video stream and you want to project a constant image, you can convert your image to sensor_msgs/Image as in here, then do the same thing. Hope this helps.

edit flag offensive delete link more

Comments

This sounds like what I want to do (I have a video stream and a set of radar data that is synced with the video) do you mind taking me through more specific steps, I'm kind of new to ROS/RViz.

Thank you so much for the quick response!

NN_SS gravatar imageNN_SS ( 2019-04-23 11:58:44 -0600 )edit
1

This is the configuration I was using, but its been a long time. I can't test it now since I don't have the hardware now but if you still need help and can share a bag file, I may check via it.

ozzdemir gravatar imageozzdemir ( 2019-04-23 12:16:45 -0600 )edit

I think I got it, thanks so much for the help!

NN_SS gravatar imageNN_SS ( 2019-04-23 13:06:42 -0600 )edit

You are welcome, don't forget to accept as answer.

ozzdemir gravatar imageozzdemir ( 2019-04-23 13:09:58 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-04-23 10:53:08 -0600

Seen: 325 times

Last updated: Apr 23 '19