Gazebo | Ignition | Community
Ask Your Question

XML Element[sensor], child of element[model] not defined in SDF. Ignoring[sensor].

asked 2019-09-15 08:02:11 -0500

elemecro gravatar image

Hi, I am trying to publish laser data on a topic from gazebo so that I can visualize in RVIZ. Following is the sdf code. Can anyone let me know what I am doing wrong? Thanks in advance

 <?xml version='1.0'?>
<sdf version='1.4'>
  <model name="my_robot">
    <link name='chassis'>
      <pose>0 0 .1 0 0 0</pose>
      <collision name='collision'>
            <size>.4 .2 .1</size>

      <visual name='visual'>
            <size>.4 .2 .1</size>
       <collision name='caster_collision'>
        <pose>-0.15 0 -0.05 0 0 0</pose>


      <visual name='caster_visual'>
        <pose>-0.15 0 -0.05 0 0 0</pose>
  <pose>0.2 0 0.2 0 0 0</pose>
<joint name="hokuyo_joint" type="fixed">

<sensor name="head_hokuyo_sensor">
  <pose>0 0 0 0 0 0</pose>
      <!-- Noise parameters based on published spec for Hokuyo laser
           achieving "+-30mm" accuracy at range < 10m.  A mean of 0.0m and
           stddev of 0.01m will put 99.7% of samples within 0.03m of the true
           reading. -->
  <plugin name="gazebo_ros_head_hokuyo_controller" filename="">
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-19 05:36:53 -0500

kumpakri gravatar image

Look into this specification. First of all the sensor is child of link or joint. And you need to specify type of the sensor, which has to be one of the defined types (as you can see in the specification).

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-09-15 08:02:11 -0500

Seen: 2,307 times

Last updated: Sep 19 '19