Skip to content
Snippets Groups Projects
Commit d5188879 authored by Florian Polster's avatar Florian Polster
Browse files

more rotational diversity

parent 53b48d21
No related branches found
No related tags found
1 merge request!4Recent changes
......@@ -482,7 +482,7 @@ void SlamFilter::drift() {
// m_Alpha2 * fabs(distance));
float estRotToPose =
rotToPose + randomGauss(m_Alpha1 * fabs(poseRotation) +
rotToPose + randomGauss(m_Alpha1 * 0.5 * fabs(poseRotation) +
m_Alpha2 * fabs(distance));
float estDeltaRot =
......@@ -495,7 +495,9 @@ void SlamFilter::drift() {
float posY = pose.y() + estDist * sin(pose.theta() + estRotToPose) +
randomGauss(m_Alpha5 * fabs(estDeltaRot)) +
randomGauss(0.0004);
float theta = pose.theta() + estDeltaRot + randomGauss(0.00005);
float theta = pose.theta() + estDeltaRot +
randomGauss(2 * m_Alpha1 * fabs(poseRotation)) +
randomGauss(0.00005);
// save new pose
while (theta > M_PI) theta -= M_2PI;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment