File tree 1 file changed +4
-4
lines changed
perception/autoware_probabilistic_occupancy_grid_map/lib/fusion_policy
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -202,17 +202,17 @@ struct dempsterShaferOccupancy
202
202
}
203
203
204
204
// calc conflict factor K
205
- double calcK (const dempsterShaferOccupancy & other)
205
+ double calcK (const dempsterShaferOccupancy & other) const
206
206
{
207
207
return (occupied * other.empty + empty * other.occupied );
208
208
}
209
209
// calc sum of occupied probability mass
210
- double calcOccupied (const dempsterShaferOccupancy & other)
210
+ double calcOccupied (const dempsterShaferOccupancy & other) const
211
211
{
212
212
return occupied * other.occupied + occupied * other.unknown + unknown * other.occupied ;
213
213
}
214
214
// calc sum of empty probability mass
215
- double calcEmpty (const dempsterShaferOccupancy & other)
215
+ double calcEmpty (const dempsterShaferOccupancy & other) const
216
216
{
217
217
return empty * other.empty + empty * other.unknown + unknown * other.empty ;
218
218
}
@@ -240,7 +240,7 @@ struct dempsterShaferOccupancy
240
240
}
241
241
242
242
// get occupancy probability via Pignistic Probability
243
- double getPignisticProbability () { return occupied + unknown / 2.0 ; }
243
+ double getPignisticProbability () const { return occupied + unknown / 2.0 ; }
244
244
};
245
245
246
246
/* *
You can’t perform that action at this time.
0 commit comments