Raytracing for a camera plugin in Gazebo
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?
Asked by gordon on 2018-05-30 20:29:33 UTC
Comments
As this is a Gazebo question, you'll probably get better answers (faster too) at the Gazebo Answers site linked above
Asked by jayess on 2018-05-30 20:34:12 UTC