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

can I use SLAM for a virtual robot?

asked 2019-05-09 07:22:22 -0500

Syrine gravatar image

Hi, I'm working on a project in which I have to use SLAM and navigation for the robot. I want to know if it is possible to use SLAM for my virtual robot by moving in a Gazebo world , or is it mandatory to have the real robot (hardware) running around? Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-05-09 07:49:02 -0500

alsora gravatar image

updated 2019-05-09 07:51:00 -0500

You can definitely use Gazebo or any other simulator (e.g. Stage). The SLAM algorithm will be embedded into a node that requires streams of sensor data.

From the algorithm point of view there are no differences if these are coming from real sensors or "fake" ones from a simulator.

Here a tutorial with Gazebo and Gmapping SLAM algorithm

edit flag offensive delete link more



While this comment is in general true (ie: due to the decoupling afforded by ROS a SLAM node should not care about whether it receives input from "real" or "virtual" sensors), there is one thing I've observed when using SLAM in simulated environments: real world environments are messy and highly unstructured. SLAM algorithms typically like that (lots of features, high saliency). Simulated environments (ie: models) might be too clean for a particular algorithm to work.

This will not affect all algorithms in the same way, but it may be something to keep in mind.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-09 08:06:45 -0500 )edit

Yes, agree 100%. If the user wants to test laser-based SLAM algorithm, an alternative to "clean models" consists in using as ground truth a map obtained from a different SLAM run, such as these ones http://www2.informatik.uni-freiburg.d... or from the RADISH database

alsora gravatar image alsora  ( 2019-05-09 08:21:24 -0500 )edit

Hi, thank you all that is definitely helpful. And about gmapping on melodic, Since I'm a beginner I don't really know what it means to "build gmapping from source" as indicated in the following link any help?? thanks

Syrine gravatar image Syrine  ( 2019-05-09 08:27:42 -0500 )edit

It's poor practice to ask follow-up questions in comments under accepted answers, but see whether #q300480 helps.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-09 08:31:37 -0500 )edit

Question Tools

1 follower


Asked: 2019-05-09 07:22:22 -0500

Seen: 920 times

Last updated: May 09 '19