turtlebot / turtlebot4

Turtlebot4 common packages.
Apache License 2.0
106 stars 46 forks source link

Add tutorial for Navigating While Mapping (SLAM) #242

Open abhinavsagar opened 1 year ago

abhinavsagar commented 1 year ago

It would be helpful to have a tutorial for Navigating While Mapping (SLAM) like the one on the nav2 documentation using turtlebot3 https://navigation.ros.org/tutorials/docs/navigation2_with_slam.html.

MikeDegany commented 1 year ago

I did something similar and it worked:

Run Nav2: ros2 launch turtlebot4_navigation nav2.launch.py namespace:=/<namespace1>

Run SLAM: ros2 launch turtlebot4_navigation slam.launch.py namespace:=/<namespace1>

See the map on Rviz: ros2 launch turtlebot4_viz view_robot.launch.py namespace:=/<namespace1>

hilary-luo commented 1 year ago

I agree that this is a nice to have. If someone wants to take this on feel free to create a PR on https://github.com/turtlebot/turtlebot4-user-manual, following the format of the existing tutorials. At this time it isn't a planned priority.

halimimaha commented 9 months ago

@MikeDegany @hilary-luo please i have a question, those steps is for one robot, if i have 2 or 3 robots how can i launch it ?

thanks in advance

hilary-luo commented 9 months ago

@halimimaha Your multiple robots need to be namespaced separately and therefore you will run each launch file required for navigation for each namespace for each of your robots. That being said, it is a very uncommon use case to need to actively map with multiple robots at the same time so I would suggest making sure that you understand what each of these launch files does and that it lines up with what you are trying to do.

halimimaha commented 9 months ago

@hilary-luo I already have namespace the robots but the problem is that the ros domain id seems saturated, I cannot launch more than one robot in the same ros domain id :/

hilary-luo commented 9 months ago

@halimimaha Please open your own troubleshooting ticket to continue this discussion. I am not sure what you mean by saturated (what symptoms you are seeing) and would need to further understand the details to assist.

ajjaya18 commented 8 months ago

Hi, can you Help me with turtlebot4 with generating a map?

ajjaya18 commented 8 months ago

"When I try to map in the world 'depot', my Turtlebot 4 doesn't recognize the objects in the world, but I don't understand why this is happening because in the tutorial, there's already a pre-made map of the 'depot' world, and I want to do the same, but it's not working. Any ideas why this is happening?"

ajjaya18 commented 8 months ago

@hilary-luo

hilary-luo commented 8 months ago

@ajjaya18 Please open your own ticket with all of the details about your system / setup. The info you have provided here isn't enough to really help you off of. Include the system info that it asks for as well as the specific commands you are running, the terminal outputs you get and images of what you are seeing in rviz if it is relevant. I assume that you are already going through the tutorial for generating a map.

ajjaya18 commented 8 months ago

Captura de pantalla de 2024-03-07 11-23-03 Captura de pantalla de 2024-03-07 11-22-41 Captura de pantalla de 2024-03-07 11-22-30 Captura de pantalla de 2024-03-07 11-22-20 Captura de pantalla de 2024-03-07 11-22-19 Captura de pantalla de 2024-03-07 11-22-17 Captura de pantalla de 2024-03-07 11-21-16 Captura de pantalla de 2024-03-07 11-20-46 Captura de pantalla de 2024-03-07 11-20-39 Captura de pantalla de 2024-03-07 11-20-38

ajjaya18 commented 8 months ago

ros2 launch turtlebot4_viz view_robot.launch.py, I run this command in the terminal Captura de pantalla de 2024-03-07 11-22-30 "Another thing, as you can see in the images, my robot doesn't recognize my depot world items, and I don't understand what I'm missing because there is already a depot map in the files that are in the tutorial. If you can help me, it would be of great help because also, look in rviz, it doesn't create anything on the map, and then I don't know what the error could be."

ajjaya18 commented 8 months ago

@hilary-luo help me, please

ajjaya18 commented 8 months ago

I use ros galactic

hilary-luo commented 8 months ago

@ajjaya18 please open your own ticket and fill the information out there.