added activity detection
This commit is contained in:
@@ -71,16 +71,18 @@ public:
|
||||
weight *= beaconEval.getProbability(p.state, observation);
|
||||
}
|
||||
|
||||
if (useStep) {
|
||||
weight *= stepEval.getProbability(p.state, observation.step);
|
||||
}
|
||||
// CONTROL!
|
||||
// if (useStep) {
|
||||
// weight *= stepEval.getProbability(p.state, observation.step);
|
||||
// }
|
||||
|
||||
if (useTurn) {
|
||||
weight *= turnEval.getProbability(p.state, observation.turn, true);
|
||||
// CONTROL!
|
||||
// if (useTurn) {
|
||||
// weight *= turnEval.getProbability(p.state, observation.turn, true);
|
||||
|
||||
//set
|
||||
p.state.angularHeadingChange = observation.turn->delta_heading;
|
||||
}
|
||||
// //set
|
||||
// p.state.angularHeadingChange = observation.turn->delta_heading;
|
||||
// }
|
||||
|
||||
// set and accumulate
|
||||
p.weight = weight;
|
||||
|
||||
Reference in New Issue
Block a user