ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Run slam without robot.

asked 2018-07-25 03:17:06 -0500 gravatar image

updated 2018-07-25 03:45:18 -0500

Hi I want to run slam as robot but I don't have any robot now. I just only have lidar sensor. So I want to make a virtual map and run slam in a virtual map by moving virtual robot like this.

And I want to visualize point cloud data in rviz. My point cloud data is like this. Can I visualize these point cloud data in rviz? or Can I create bag file by these point cloud data?

17.187 0.017 0.790 0.00
17.180 0.071 0.790 0.00
17.176 0.125 0.790 0.00
17.180 0.179 0.790 0.00
17.091 0.232 0.787 0.11
16.021 0.291 0.751 0.21
16.026 0.341 0.751 0.68
edit retag flag offensive close merge delete


Can you clarify the format of the file? What does each column represent?

If your file has:

1) the ranges or x/y coordinates of the scan from your lidar in the sensor's frame 2) a time stamp for each reading (I suppose that's not "technically" a requirement) 3) some odometry estimate ...

Jari gravatar image Jari  ( 2018-10-02 10:24:29 -0500 )edit

the you can just write anode that reads the file and publishes things to the correct topics (e.g. /scan, /odom, /tf, etc)

Jari gravatar image Jari  ( 2018-10-02 10:24:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-25 04:13:41 -0500


you can visualize Point cloud data in rviz. For this you just need to add right display. Please check this manual. For storing bag file please check this tutorial.

For crating a map see these tutorials.

P.S. Next time when you want to ask a question try to search for it first. All this links were found in first 5 search results....

edit flag offensive delete link more


I already searched all things that you comment, but I am noobs so I think I've got it all figured out. Turorial that you comment explain how to create bag file by turtlesim node, my question is how to create bag just using point cloud data that is already collected before, not using turtlesim node. gravatar image  ( 2018-07-25 04:59:54 -0500 )edit

you should just choose your topic you want to record like:

rosbag record -O subset /cmd_vel

Where you intead of cmd_vel write name of your topic.

destogl gravatar image destogl  ( 2018-07-25 05:45:06 -0500 )edit

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


Asked: 2018-07-25 03:17:06 -0500

Seen: 359 times

Last updated: Jul 25 '18