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

raytracing for occupancy grid map

asked 2012-05-01 08:19:57 -0500

Danielstar gravatar image

Hello: Can someone help me to get the ray-tracing code for occupancy grid map. I know its somewhere sitting may be in costmap or gmapping or a standalone node but I want to know exactly.

I am looking for something like:

void raycasting_occupancygridmap(robot pose, &range image);

This function should take the robot pose as input and return range image as output.

this function have the following information:

1. current grid map
2. sensor parameters (FOV, resolution and may be max range if needed)

looking forward for help.

Thanks in advance Daniel

edit retag flag offensive close merge delete

Comments

3

This looks an awful lot like you're asking us to do your homework for you.

ahendrix gravatar image ahendrix  ( 2012-05-01 08:40:57 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-05-02 04:49:03 -0500

DimitriProsser gravatar image

Have a look at the costmap_2d package if you'd like some help. The "costmap_2d.cpp" source file contains most of the raytracing source code used in populating the costmaps with observation data from laser scans and point clouds.

Your problem is very large, and is not something that we can directly help you with. Take a look at costmap_2d, and if you have any specific questions, feel free to ask for help with them, but this question is extremely broad for us to help you.

edit flag offensive delete link more

Comments

It's been too long since this answer, but I am also looking for something similar. The implementation of raytraceLine in costmap_2d.h (for Noetic) accepts starting x, y coordinates and ending x, y coordinates. The point of ray tracing as I understand is to find a range that would eventually give me the ending x, y coordinates (or vice versa). Thoughts?

shrini96 gravatar image shrini96  ( 2023-06-14 17:31:05 -0500 )edit
0

answered 2012-05-02 05:23:26 -0500

Mac gravatar image

See also the occupancy_grid_utils package. I agree with @ahendrix on this, though...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2012-05-01 08:19:57 -0500

Seen: 2,158 times

Last updated: May 02 '12