0
$\begingroup$

Rosanswers logo

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!


Originally posted by Morefoam on ROS Answers with karma: 27 on 2016-07-07

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by janindu with karma: 849 on 2016-07-07

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.