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

Run slam without robot.

asked 2018-07-25 03:17:06 -0600

js.kim.aspl@gmail.com gravatar image

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

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.

https://www.youtube.com/watch?v=lajIP...

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

Comments

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 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

HI,

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

Comments

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.

js.kim.aspl@gmail.com gravatar image js.kim.aspl@gmail.com  ( 2018-07-25 04:59:54 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 818 times

Last updated: Jul 25 '18