scanse / sweep-ros

Scanse Sweep ROS Driver and Node
MIT License
68 stars 62 forks source link

gmapping crashes when using sweep #14

Closed sevenbitbyte closed 7 years ago

sevenbitbyte commented 7 years ago

Gmapping does not work out of the box with the sweep. I setup a pipeline of sweep -> pointcloud_to_laserscan -> gmapping. Gmapping crashes as soon as the first scan comes in.

vitorboschi commented 7 years ago

I had this issue and it turned out that pointcloud_to_laserscan was generating a really dense scan by default. Gmapping couldn't get enough memory to process it and crashed. The solution I've found was to set a smaller value for angle_increment in pointcloud_to_laserscan, like 0.0174533 (1 degree).

sevenbitbyte commented 7 years ago

Oh great point, this seems to have been my issue. Clearly not a bug in sweep so closing this issue.

yubenjamin2 commented 6 years ago

Hi @sevenbitbyte do you remember what the crash was? Having a similar issue but was wondering if your gmapping crashing is similar to my scenario. (Tried the solution proposed by @vitorboschi but it didn't work.

Basically after it says "Registering first scan" the gmapping process just dies before it can even create the associated log file, which isn't helpful.

Thanks