ros-navigation / docs.nav2.org

https://docs.nav2.org/

Home Page:https://docs.nav2.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First-Time Robot Setup Guide » Setting Up Sensors: costmap not publishing

makino-yyf202xz opened this issue · comments

commented

Found out that must set all node in one launch file in order to get costmap (instead of launch one by one as tutorial says). Am I the only one?

What version of ROS are you using? It might be a discovery issue if you're on Foxy or older. Does this happen every time or only sometimes?

commented

I'm using humble docker image within wsl2. Also even I start them all in once, only global costmap is published. It's been a while so I don't remember clearly, but I tried turtlebot sample and humble had such similar problem but foxy went well. And yes, this happens every time.

What is wsl2?

commented

WSL2 is kinda like a light virtual machine working on windows, provided by microsoft. In my situation I installed ubuntu 20.04 in window10(using this WSL2) and install docker into this ubuntu, then ran a humble image in it.

ah ok, I haven't had a windows machine in ~6 years so I'm not up with the lingo 😉

My first suggestion would be to try in a non-Dockerized environment. My suspicion is that you don't have the settings right so something in the ROS-y communications are being blocked by Docker's isolation. There should be no reason why adding them all to 1 launch file vs launching N launch files would matter, beyond not launching them in the dependency order and then delaying creating the necessary nodes for so long that other's timeout looking for that information -- or network discovery issues (which could be Docker's doing). But you should see clear error messages about timing out / cannot transform / etc if the issue was that it gave up trying. If you don't see any logs, its more likely that things aren't fully connected, which could be from Dockerization / multticast packets not making it around.

commented

Seems a complex enviroment could be a reason that cause this kind of problem. I switched to foxy since it showed a better performence as a not best solution. Hope someday humble can as good as foxy performing different kind of enviroment. Thank you for the explaination!