Ask Your Question
0

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

2

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
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

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

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

Seen: 1,361 times

Last updated: May 02 '12