Gazebo | Ignition | Community
Ask Your Question

Ray sensor pose tag does not work as expected

asked 2020-08-07 14:59:55 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.


I'm using Gazebo version 9.13.2, and when I add a ray sensor to a link (model) if I set the sensor pose to 0's, in the simulation the ray is located in other position as can be seen in the attached figure.

image description

This is the code I'm using

<link name="base_link">
 <sensor name="laser" type="ray">
        <!-- Main properties -->
        <pose> 0 0 0  0 0 0 </pose> <!-- This does not work well 0 0.2 0.1  0 0 0 -->
        <!-- Set descriptions specific to camera sensors -->


is this the correct behavior? This does not happen with other sensors


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-08-08 20:32:42 -0500

caioaamaral gravatar image

Check the base_link <link> tag. Maybe your mesh has the origin not at the geometric center, but at the corner (happens with solidworks stl files). Use the same coordinates that is under the intertial <origin> tag.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-08-07 14:59:55 -0500

Seen: 341 times

Last updated: Aug 08 '20