Open mohdomama opened 3 years ago
I think there are valid use cases for both scenarios. Ideally, there is a parameter for the filter frame.
Hi, Thanks for the reply. Should I add a parameter for this?
Also, when doing filtering with filter_ground
as false
, the points outside the filter are not cleared. This issue is apparent when we have dynamic objects in the scene. The entire trail of the object comes as occupied.
I addressed this issue in the PR by marking the points outside the filter as pc_ground
which then get cleared in insertScan
function. Is this approach acceptable or should there be some other workaround for this?
Hi, With
filter_ground
asfalse
, the filtering done withpointcloud_min_z
andpointcloud_max_z
happens in themap
frame. I think the desired behavior would be to do this filtering inbase_link
frame.Note: When
filter_ground
istrue
, all filtering happens inbase_link
frame.https://github.com/OctoMap/octomap_mapping/blob/bd66bc1f024f6d77ec2ad175d15c82746063c301/octomap_server/src/OctomapServer.cpp#L330