Gazebo | Ignition | Community
Ask Your Question
1

Sensors colliding with collision box

asked 2015-10-19 04:15:58 -0500

Hi! I am having a problem with ray sensors and the collision box of the robot.

For instance, using the sonar plugin recently included:

        <sensor type="ray" name="sonar_${name}">
            <pose>${xyz} ${rpy}</pose>
            <update_rate>20</update_rate>
            <visualize>true</visualize>
            <ray>
                <scan>
                    <horizontal>
                        <samples>47</samples>
                        <resolution>1</resolution>
                        <min_angle>-0.38</min_angle>
                        <max_angle>0.38</max_angle>
                    </horizontal>
                    <vertical>
                        <samples>47</samples>
                        <resolution>1</resolution>
                        <min_angle>-0.38</min_angle>
                        <max_angle>0.38</max_angle>
                    </vertical>
                </scan>
                <range>
                    <min>0</min>
                    <max>6.45</max>
                    <resolution>0.0254</resolution>
                </range>
            </ray>
            <plugin name="sonar_${name}_plugin" filename="libgazebo_ros_range.so">
                <gaussianNoise>0.05</gaussianNoise>
                <alwaysOn>true</alwaysOn>
                <updateRate>20</updateRate>
                <topicName>sonar/${name}</topicName>
                <frameName>sonar_${name}_link</frameName>
                <minRange>0.1524</minRange>
                <maxRange>6.45</maxRange>
            </plugin>
        </sensor>

I get the problem that when the robot is moving fastly in the direction of the sonar, I get measurements corresponding to detecting the own collision mesh of the robot (even if the sensor is outside of the collision mesh). Using the Hokuyo simulation I get the same problem (at the end, they both are ray sensors.

Does anybody know how to overcome this problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-21 05:11:40 -0500

Have you tried changing the minimum Range values of the sensor and/or the plugin?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-10-19 04:15:58 -0500

Seen: 778 times

Last updated: Oct 21 '15