ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Adding noise to P3DX model

asked 2015-07-15 06:08:53 -0500

Alvaro Salcedo gravatar image

Hi Ros users:

I am trying to add gaussian noise to velocities of P3DX. The model that I am using is from this source I have modified this part of code:

  <!-- ground truth -->
        <plugin name="p3d_base_controller" filename="">
            <!-- initialize odometry for fake localization -->
            <xyzOffsets>0 0 0</xyzOffsets>
            <rpyOffsets>0 0 0</rpyOffsets>
    <velocityGaussianNoise>10 10 10</velocityGaussianNoise>

I change the part where it says "gaussiannoise nad velocityGaussianNoise" but it works in the same way.

Does anybody know how i can add gaussian noise to P3DX model??

Thank you so much.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-05 05:07:04 -0500

quentin gravatar image

Hi Alvaro,

Did you manage to do it? I digged into the code and normaly, changing the gaussianNoise should do something.

In fact, the value of gaussianNoise is added to the covariance matrix, all along the diagonal, but no effect on the value themselves.

And on top of that, though the noise/covariance are based on a random process (Box Muller transform to be exact), the values never evolve in time even in the covariance matrix.

If we could change the above source code it should be ok, but the source is not in my computer and I don't want to mess around...

Let me know if you found anything, Quentin

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-07-15 06:08:53 -0500

Seen: 891 times

Last updated: Aug 05 '16