Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
2.0.10-Chris removed all noises
Browse files Browse the repository at this point in the history
  • Loading branch information
songqian2002 committed Nov 28, 2017
1 parent 0a2fc6b commit 1938cca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions ble-cpp/src/model/PoseRandomWalker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ namespace loc{
//std::cout << "predict: dTime=" << dTime << ", nSteps=" << nSteps << std::endl;

// Perturb variables in State
if(nSteps>0 || mProperty->doesUpdateWhenStopping() ){
state.orientationBias(state.orientationBias() + stateProperty->diffusionOrientationBias()*randomGenerator.nextGaussian()*dTime); // removed by Chris
if(nSteps>0 || mProperty->doesUpdateWhenStopping()){
state.orientationBias(state.orientationBias()); // removed by Chris + stateProperty->diffusionOrientationBias()*randomGenerator.nextGaussian()*dTime

state.rssiBias(randomGenerator.nextTruncatedGaussian(state.rssiBias(),
stateProperty->diffusionRssiBias()*dTime,
stateProperty->minRssiBias(),
Expand All @@ -88,10 +89,11 @@ namespace loc{
double nV = state.normalVelocity();
if(nSteps >0 || mProperty->doesUpdateWhenStopping()){
// double mean, double std, double min, double max
nV = randomGenerator.nextTruncatedGaussian(encoderInfo.getVelocity(), // used to be state.normalVelocity() // encoderInfo.getVelocity()
/*nV = randomGenerator.nextTruncatedGaussian(encoderInfo.getVelocity(), // used to be state.normalVelocity() // encoderInfo.getVelocity()
poseProperty->diffusionVelocity()*dTime,
poseProperty->minVelocity(),
poseProperty->maxVelocity());
poseProperty->maxVelocity());*/
nV = encoderInfo.getVelocity();
state.normalVelocity(nV);
}

Expand Down
4 changes: 2 additions & 2 deletions bleloc.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "bleloc"
s.version = "2.0.9-Yanda"
s.version = "2.0.10-Chris"
s.summary = "Localization library"
s.homepage = "https://github.com/realCabot/"
s.description = <<-DESC
Expand All @@ -9,7 +9,7 @@ This is a localization library for bluetooth le beacons.

s.license = "MIT"
s.author = "realCabot"
s.source = { :http => "http://github.com/RealCabot/blelocpp/releases/download/2.0.9-Yanda/bleloc.framework.zip" }
s.source = { :http => "http://github.com/RealCabot/blelocpp/releases/download/2.0.10-Chris/bleloc.framework.zip" }
s.preserve_path = "bleloc.framework"
s.vendored_frameworks = "bleloc.framework"
s.platforms = {:ios => "8.4"}
Expand Down

0 comments on commit 1938cca

Please sign in to comment.