[ROS Q&A] 049 - How to navigate while avoiding obstacles

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • More ROS Learning Resources: goo.gl/DuTPtK
    Q: How to navigate while avoiding obstacles?
    Original question here: answers.ros.or...
    A: In order to do navigation using a laser for localization and obstacle avoidance, you need to do first a map of the environment you want to move through. For that you need to use the gmapping package. Launch the gmapping package, and then move the robot around using the keyboard or joystick so it can build the map.
    Once the map is done, you need to save it using the following command:
    rosrun map_server map_saver -f name_of_map
    Then you are ready to use that map for localization and sending the robot to different locations in the map, while avoiding obstacles. Kill the gmapping node and launch now the localization package (the amcl). Together with the amcl you need to launch the map_server (to use the map you created on the previous step) and the move_base (to make the robot move around while avoiding obstacles).
    RELATED LINKS:
    * ROS Development Studio: rds.theconstructsim.com
    * Robot Ignite Academy: www.robotigniteacademy.com
    --------Want to learn ROS really FAST and master the latest Robotics topics?----------
    ::Visit Robot Ignite Academy, the online Academy that teaches you ROS really FAST, from beginner to master, using only a web browser: goo.gl/LBT7EN
    Robot Ignite Academy is an integrated ROS learning platform which contains a series of online ROS tutorials tied to online simulations, giving you the tools and knowledge to understand and create any ROS based robotics development.
    ------Are you a ROS expert and want to develop FAST your next ROS project?-----------
    :: Then, use the ROS Development Studio (RDS) for your next project: goo.gl/EtFqmE
    With the ROS Development Studio, you will be able to:
    - Develop ROS programs for robots in a faster way, with an already setup IDE environment that includes autocomplete.
    - Test the programs in real time on the provided simulated robots. Use the provided simulations or upload your own. Quickly see the results of your programming.
    - Debug using graphical ROS tools.
    - Test what you have developed on RDS in the real robot (if you have it :wink:
    all of these are using ONLY a web browser without any installation and not limited by any operating system. DEVELOP FOR ROS USING WINDOWS, LINUX OR OSX.

КОМЕНТАРІ • 10

  • @abderrahmanesebaa7638
    @abderrahmanesebaa7638 4 роки тому +1

    Hello, thank you so much for the tutorials. they are very helpful. I have a question that I hope you can answer. How can I give the robot a destination point to go to using code instead of rviz gui ? Is there a specific message type for the coordinates that I should publish in a specific topic so that the robot can use these packages to get there ?

  • @techxplorerxxx
    @techxplorerxxx 3 роки тому +1

    what if a new obstacle is added to the map while moving towards the goal??Can we avoid that obstacle and move to the nav goal?

  • @kartikpujar4527
    @kartikpujar4527 3 роки тому +1

    what if the obstacle was in the environment and not in the map created using gmapping package. how to avoid obstacles in this scenario.

  • @moazalhady7895
    @moazalhady7895 5 років тому +6

    thank you very much it was helpful video but how can i avoid obstacles without a creating a map ?????

    • @krishnachaitanyadon
      @krishnachaitanyadon 3 роки тому

      You gotta run the localization node and set the 2D nav point in rviz. It should automatically avoid obstacles. AFAIK.

  • @SimbawaveEDI
    @SimbawaveEDI 6 років тому +2

    thanks for showing me about how easy to use ros and gmapping, rbase, and localization. previously i didn't get it all.
    at least now i'm confident to build my own bot using ros.
    just wondering, if the map is created by 1 bot, and later the map is saved as 2 files, how if i copy those 2 files map and paste those files to other robot?
    will the next robot have the same map like the first robot?

    • @TheConstruct
      @TheConstruct  6 років тому

      Yes you can do that and then the second robot will be able to navigate using the first robot map.

    • @SimbawaveEDI
      @SimbawaveEDI 6 років тому

      wow... thanks for this very fast reply. this is very motivating me

  • @kushanav
    @kushanav 6 років тому

    hi , thank you very much for the tutorial! I am trying to add a new RobotModel and LaserScan but cant seem to locate the add remove buttons in the Rviz editor in your remote ROS env. Can you please help?

    • @TheConstruct
      @TheConstruct  6 років тому

      Do a double click on the title bar of Rviz. You will see then that the Rviz accommodates to occupy the whole screen and shows all the buttons you mention. Let us know if that works for you