-
SLAM seems to be working OK, drive around the office and make a map, nice! Next issue on the learning curve, Navigation:-/ Saved map as described Navigating and Mapping on the real ROBOT with,
ROS puts the new map in catkin_ws root. I can click on the map in files, it open in a viewer and see the new map. I then perform the next step which is,
but it opens the office map in ~/diffbot_navigation/maps. So, replace both office.pgm and office.yaml files with the new ones and it opens the new map. First tried an argument pointing to the new map but didn't work, for example,
actually opens one of the other maps in ~/diffbot_navigation/maps. So, need to figure out the args where to save and where to load... Ignoring that for the moment, launching
If I do nothing after awhile get the warning,
When I try 2D Nav Goal with either old or new office .pgm and .yaml we get the following errors reapeatedly:
So close, literally the last ROS CLI in DiffBot README.md!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The parameter for the map file is For navigation on the real robot you just need to provide the
Also make sure that you have a more or less accurate map of your environment (obtained from the SLAM algorithm). Otherwise you won't be able to localize correctly. This is the first step I always do after RViz launches with the map file. One of my first videos shows the navigation process after you saved your map. I hope it might be helpful.
I didn't encounter this issue so far (at least I didn't notice). If it doesn't happen too frequently I wouldn't bother, otherwise you might have to tune some parameters or get a faster hardware. According to this answer you should lower the resolution of your map. For this you should adapt Please let me know if the errors keep happening after you saved a clean map of your environment. There might be some other issue, e.g., updated ROS packages, maybe network issues (slow data transfer), etc.
As you noticed, there shouldn't be much missing until you can navigate your robot autonomously to a goal location :-) |
Beta Was this translation helpful? Give feedback.
The parameter for the map file is
map_file
(notmap
). You should also distinguish between simulation and the real robot setup. For simulation you should also provide the appropriate value for theworld_name
argument (matching simulated world to your mapped map).For navigation on the real robot you just need to provide the
map_file:=/absolute/path/to/your/map.yaml
argument todiffbot_hw.launch
. For example:Also make sure that you have a more or less accurate map of your environment (obtained from the SLAM algorithm). Otherwise you won't be able to localize correctly. This is the first step I alway…