Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global costmap being cleared #152

Closed
lucasb-eyer opened this issue Nov 21, 2014 · 24 comments
Closed

Global costmap being cleared #152

lucasb-eyer opened this issue Nov 21, 2014 · 24 comments

Comments

@lucasb-eyer
Copy link
Member

Probably I'm doing something wrong, but during backtrack behaviour the global costmap gets emptied somehow.

goodplan

nocost

What you see in slightly darker gray is the costmap coming from the no-go map.

Output of the last time it happened:

[ INFO] [1416593474.709253931]: Got new plan
[ WARN] [1416593474.714531285]: DWA planner failed to produce path.
[ WARN] [1416593474.809003186]: Clearing costmap to unstuck robot (3.000000m).
[ INFO] [1416593475.209599130]: Got new plan
[ WARN] [1416593475.215077867]: DWA planner failed to produce path.
[ WARN] [1416593475.309008566]: Clearing costmap to unstuck robot (1.840000m).
[ INFO] [1416593475.709013111]: Got new plan
[ WARN] [1416593475.714326009]: DWA planner failed to produce path.
[ERROR] [1416593475.809008000]: Aborting because a valid control could not be found. Even after executing all re
covery behaviors
[INFO] [WallTime: 1416593475.822154] State machine transitioning 'NAVIGATION':'planner_failure'-->'RECOVER_NAVIG
ATION'
[INFO] [WallTime: 1416593475.823415] State machine starting in initial state 'CLEAR_COSTMAPS' with userdata: 
        ['goal', 'n_nav_fails']
[ INFO] [1416593480.954840476]: Requesting the map...
[ INFO] [1416593481.259107806]: Resizing costmap to 800 X 1400 at 0.020000 m/pix
[ INFO] [1416593481.356322228]: Received a 800 X 1400 map at 0.020000 m/pix
[ INFO] [1416593481.373878552]: Requesting the map...
[ INFO] [1416593481.576694367]: Resizing costmap to 800 X 1400 at 0.020000 m/pix
[ INFO] [1416593481.675289357]: Received a 800 X 1400 map at 0.020000 m/pix
[INFO] [WallTime: 1416593481.908846] Waiting for services...
[INFO] [WallTime: 1416593481.922603] Done
[INFO] [WallTime: 1416593481.928399] State machine transitioning 'CLEAR_COSTMAPS':'do_other_recovery'-->'BACKTRA
CK'
[INFO] [WallTime: 1416593481.933768] State machine transitioning 'BACKTRACK':'failure'-->'NAV_HELP'
@bfalacerda
Copy link
Contributor

its the clear costmaps recovery that also clears the global costmap. I guess it should be reloaded aftewards but it isn't all the time because of the loading global costmap issue move_base has. Does this happen all the time? I'll remove the clearance from the navigation recovery, this is pretty bad...

@lucasb-eyer
Copy link
Member Author

Twice for now, will watch if it happens the next times too.

@bfalacerda
Copy link
Contributor

anyway, it's clearly a bad idea having it in, at least until we are sure that move_base global costmap loading is working. i'm removing it now

@lucasb-eyer
Copy link
Member Author

I think it's not (only?) the clearing. If I start the system with a no-go map, only the no-go map is used to create a costmap, and I get what you see in above pictures. If I start it without the costmap, the real map is correctly used to create a no-go map.

@bfalacerda
Copy link
Contributor

every time you start it its not loaded?

@bfalacerda
Copy link
Contributor

our no-go map is usually overlaying the original map so maybe there's an issue with the dual static map layer that we weren't aware of. From what I see your no-go only has the "no-go" obstacles right?

@lucasb-eyer
Copy link
Member Author

Yeah, basically a frame around the building. It worked a few days ago as far as I can remember.

@bfalacerda
Copy link
Contributor

this requires a deeper look into the issue then

@bfalacerda
Copy link
Contributor

it never loads or is it only once in a while?

@lucasb-eyer
Copy link
Member Author

I restarted it three times with no-go map off and three times with no-go map on. All the times no-go map was on, the global-costmap only had a halo around the no-go map; all the times no-go map was off, the global-costmap had a halo around the real map.

@bfalacerda
Copy link
Contributor

all the times no-go map was off, the global-costmap had a halo around the real map.

Is this really what you wanted to say? If so I'm confused

@lucasb-eyer
Copy link
Member Author

I think so. More clearly:

  • with_nogo=true -> costmap only around nogo map, not around real map, like screenshots above.
  • with_nogo=false -> costmap around real map.

@bfalacerda
Copy link
Contributor

ah ok, i misunderstood what you meant with "halo around"

I'll look into it, the easy, non system intrusive fix for now is making your nogo map the nogo areas overlaying the map

@bfalacerda
Copy link
Contributor

i dont really know when/if i'll have time for this before the marathon starts...

@lucasb-eyer
Copy link
Member Author

Looking into it a bit myself, otherwise I'll workaround

@bfalacerda
Copy link
Contributor

you said you remember it working before. were there any changes done to our move base stuff?

@lucasb-eyer
Copy link
Member Author

I really don't know when it was last working because I never actively looked for it anymore after I've last verified it worked sometimes last week.

More debugging: It's the inflation layer, which is only using the /cost_map, not the /map. Why, I don't know yet.

@bfalacerda
Copy link
Contributor

http://wiki.ros.org/hydro/Migration#Navigation_-_Costmap2D

I followed this when we migrated to hydro. Not sure of why I did it like that anyomre

@bfalacerda
Copy link
Contributor

the lack of inflation layer for the map probably explains why the global planner finds plans through tiny holes in the map though

@lucasb-eyer
Copy link
Member Author

I looked through all tutorials and it looks like the inflation layer should just work on the fully "rendered"/combined costmap, and not on an individual layer, so something is weird. I guess I'll work around for now since time is running out.

@nilsbore
Copy link
Member

Wasn't this exactly what @Jailander provided a fix for?

@bfalacerda
Copy link
Contributor

i'll open an issue for later

@bfalacerda
Copy link
Contributor

i dont recall anyone looking at costmap stuff lately but i might have missed it

@bfalacerda
Copy link
Contributor

closing this, we have an open issue here:

strands-project/strands_movebase#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants