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

There are some issues with dynamic object culling #60

Open
SSSSSSStar opened this issue Mar 24, 2023 · 1 comment
Open

There are some issues with dynamic object culling #60

SSSSSSStar opened this issue Mar 24, 2023 · 1 comment

Comments

@SSSSSSStar
Copy link

As mentioned in the paper, it uses semantic information to perform dynamic object removal during the map update phase, and provides a formula for the semantic consistency penalty function. However, I cannot find the relevant code for dynamic object removal in the code. Could you please tell me which files are included?

@jbehley
Copy link
Member

jbehley commented Mar 12, 2024

A bit late, but maybe it helps someone else. Sorry :/

The dynamic object removal is only implicitly happening by putting a penalty on the association in the computation of the Jacobian:

// use semantic information during ICP
float data_label = texture(semantic_data, texCoords).x * 255.0;
float data_label_prob = texture(semantic_data, texCoords).w;
float model_label = texture(semantic_model, idx).x * 255.0;
if( model_label == car.w || model_label == bicycle.w ||
model_label == bus.w || model_label == motorcycle.w||
model_label == truck.w|| model_label == other_vehicle.w||
model_label == person.w||
model_label == bicyclist.w || model_label == motorcyclist.w)
{
if(round(data_label) != round(model_label))
weight *= (1 - data_label_prob);
else
weight *= data_label_prob;
}

And the actual integration of this into the map building (to remove conflicting labels) is happening here:

if(round(data_label) != round(model_label))
{
if( model_label == car.w || model_label == bicycle.w ||
model_label == bus.w || model_label == motorcycle.w||
model_label == truck.w|| model_label == other_vehicle.w||
model_label == person.w||
model_label == bicyclist.w || model_label == motorcyclist.w)
penalty = 1.0;
}

The penalty term then reduces the confidence and surfels below a certain confidence are then removed.

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

2 participants