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

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 https://github.com/RafBerkvens/ua_ros... I have modified this part of code:

  <!-- ground truth -->
    <gazebo>
        <plugin name="p3d_base_controller" filename="libgazebo_ros_p3d.so">
            <alwaysOn>true</alwaysOn>
            <updateRate>100.0</updateRate>
            <bodyName>base_link</bodyName>
            <topicName>${ns}/base_pose_ground_truth</topicName>
             <gaussianNoise>0.01</gaussianNoise>
            <frameName>map</frameName>
            <!-- initialize odometry for fake localization -->
            <xyzOffsets>0 0 0</xyzOffsets>
            <rpyOffsets>0 0 0</rpyOffsets>
    <velocityGaussianNoise>10 10 10</velocityGaussianNoise>
        </plugin>
    </gazebo>

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
0

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

Stats

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

Seen: 885 times

Last updated: Aug 05 '16