Raytracing for a camera plugin in Gazebo [closed]

asked 2018-05-30 20:29:33 -0500

gordon gravatar image

updated 2018-05-30 20:31:59 -0500

I have a camera model in ROS Gazebo world. I created it by following the tutorials here. It generates images as expected. My next step is to divide the image into an M x M grid and do ray tracing for each cell and if it collides with an obstacle in the world at 'k' m from the camera and assign 0 to the cell and 1 if not. The function will be like, mbym_grid = RayTrace(image, k).

How would I go about implementing that function ? I took a look at logical camera plugin in Gazebo but it only returns the object list with pose in the frustrum. I want a ray traced image for each pixel at a plane 'k' m away. Is there an easier way to do that ? Any ROS package that offers a similar solution?

edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: http://answers.gazebosim.org by jayess
close date 2018-05-30 20:33:15.453632


As this is a Gazebo question, you'll probably get better answers (faster too) at the Gazebo Answers site linked above

jayess gravatar image jayess  ( 2018-05-30 20:34:12 -0500 )edit