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

Costmap_2d : Local Costmap Freezes #1205

Open
charvi-077 opened this issue Jun 30, 2022 · 5 comments
Open

Costmap_2d : Local Costmap Freezes #1205

charvi-077 opened this issue Jun 30, 2022 · 5 comments

Comments

@charvi-077
Copy link

charvi-077 commented Jun 30, 2022

Hi all,

Ubuntu : 18.04 and 20.04 (testing on both)
Ros version : ROS1 Melodic and Noetic (testing on both)

I am working on generating the local costmap (rolling window) using 2d lidar data. For generating it I am only using oblacle layer plugin and inflation layer plugin. I have make sure to configure the tf properly for all the 2d lidars. But still at some time the costmap get freezes as shown in below gif.

costmap_freezes2

As shown in gif above, the lower right pixels and even in middle pixels got freezed and are not updating. In gif the coloured data is lidar data, and black is costmap data obstacle + inflation to differentiate between realtime costmap data and freezed data in costmap. Moreover, sometimes the full costmap gets freezes.

Ros params :
marking : true
clearing : true
inf_is_valid : true
obstacle_range: 15.0
raytrace_range: 20.0
combination_method: 0
track_unknown_space: false

So, I am unable to resolve the above issues, and would really appreciate if someone could suggest how to resolve it or related pointer to this issue.

@sun421-cloud
Copy link

hello, i also encounter this question, did you work out it?

@charvi-077
Copy link
Author

charvi-077 commented Aug 29, 2023

Hi @sun421-cloud ,
No its not resolved yet, but yeah I just did a workaround to rather reset the local costmap on every incoming 2d lidar scan data, so here I changed the obstacle layer plugin to reset the the costmap instead of raytracing free space. Note, this was just wrt our application of local costmaps and yeah this won't work for global costmaps ( for marking and clearing obstacle information globally).

@sun421-cloud
Copy link

Thank you very much for your answer, and may I know that you always clear the whole local costmap before updating every incoming 2d lidar scan data? Are your lidar datas 360 degrees? no shielding Angle?
In addition, I would like to ask how you adjust the shape of the local costmap? I'm currently using a square, and notice you're using a rectangle.

@AngeLoGa
Copy link

AngeLoGa commented Nov 8, 2023

Thank you very much for your answer, and may I know that you always clear the whole local costmap before updating every incoming 2d lidar scan data? Are your lidar datas 360 degrees? no shielding Angle? In addition, I would like to ask how you adjust the shape of the local costmap? I'm currently using a square, and notice you're using a rectangle.

This can be done using the parameters in the costmap2d package, please see the wiki (see here)

@sun421-cloud
Copy link

Thank you very much for your answer, and may I know that you always clear the whole local costmap before updating every incoming 2d lidar scan data? Are your lidar datas 360 degrees? no shielding Angle? In addition, I would like to ask how you adjust the shape of the local costmap? I'm currently using a square, and notice you're using a rectangle.

This can be done using the parameters in the costmap2d package, please see the wiki (see here)

ok, i get it, thanks!

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

No branches or pull requests

4 participants