Robotics StackExchange | Archived questions

Attaching A Sensor To An Animated Actor

Hi all, Is there a way to attach a sensor to an animated actor? For example, in Gazebo 8 there is the ability to have animated collada files. This is a great new feature.

Using this tutorial, can I attach a sensor to the actor (for example, on his foot or waist)? Then as the actor moves, the sensor also moves.

I can add a sensor in a URDF. I can add a sensor to a model link in a world file. How can I do this to an already existing animated collada/DAE file?

Thanks,

Mike

Asked by mikec on 2017-02-07 17:22:28 UTC

Comments

Answers

Yes, you can attach a sensor using SDF (that's what the tutorial uses, not URDF).

The <actor> tag can have <link>s just like the <model> tag can.

Take the box example world in the tutorial for example and add a camera sensor to the box link:

<link name="box_link">
  ...
  <sensor name="camera" type="camera">
    <camera>
    </camera>
    <visualize>true</visualize>
  </sensor>
</link>

To do the same for the animated person, you could add a link to it. See more documentation on SDF here.

Also see this related question.

Asked by chapulina on 2017-02-07 18:52:58 UTC

Comments

Chapulina, thanks for the reply. Your answer works. I think I'm trying to perform too many tasks simultaneously. My apologies for being redundant: I'm the one who asked the question in the related question. Sorry. :(

Asked by mikec on 2017-02-08 14:23:06 UTC