Ask Your Question
0

How do I create and map pointcloud data?

asked 2016-07-07 16:37:33 -0500

Morefoam gravatar image

updated 2016-07-07 17:05:38 -0500

Hello, I'm new to ROS (did the basic/intermediate tutorials) and want to try and map pointcloud data.

My question: How do I generate pointcloud data (preferably without an actual camera/robot - a simulation) and map it (using rviz?)?

My thought process on the steps to do so (this is what I think I need to do - could be wrong):

1.) Create catkin workspace

2.) Create 3 nodes in my package (point cloud generating node, mapping node, display node)

3.) Send pcl data (Once generated) to mapping node (and map it somehow), then mapping data to display node (and display it somehow)

If you know of any good tutorials on how to do this, please link them. Or give me your own tips/guide.

Additional info:

Thanks for the help in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-07 20:54:52 -0500

janindu gravatar image

How do I generate point cloud data without actual cameras?

Well, I suppose you can use a randomized function to generate it but that wouldn't make sense if you are using that data for mapping. So I suggest you to use sample data available in the tutorials. In a real life scenario you will not have to have a node to produce point cloud data as that will be produced by the ROS driver for the camera / laser.

Then, you don't have to write a node to display it either. Rviz is a visualization tool. And it can visualize your results for you. At the end of the day, your mapping node will publish to a topic /map (similar to gmapping).

So all you have to do is get point cloud data (and odometer data would make mapping easier and more accurate) and publish it (rosbag play bagName.bag).

You said that you failed to execute gmapping with the sample data. I suggest you to look into it and see what's wrong before writing your own mapping (SLAM) algorithm.

Please edit your question / ask a new question with the issues you come across there.

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

1 follower

Stats

Asked: 2016-07-07 16:37:33 -0500

Seen: 1,313 times

Last updated: Jul 07 '16