Robotics StackExchange | Archived questions

Links With Animated .DAE Files Possible?

Hi all, I suspect the answer is "no", but I want to make sure before I give up and try something different.

Is it possible to have an animated .dae file with a model attached to it? For example, in the tutorial Make An Animated Model (Actor), the file "walk.dae" is moving in the world. Can I have a camera model (or sensor) attached to part of this model so that the two move together? The tutorial makes the statement "There can't be models nested inside actors, so we're limited to animated meshes, links and joints.". I'm not sure I completely understand this, so I'm asking here.

Can I attach something through a link/joint to the "walk.dae" file so they move together?

Thanks

Asked by mikec on 2016-07-26 17:56:59 UTC

Comments

Answers

You can't yet include a model inside another one, but you can copy its links and joints directly under the <actor> tag.

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>

And you get a camera that moves with the box, see a video here.

Asked by chapulina on 2016-08-01 14:23:05 UTC

Comments

OK, thank you.

Asked by mikec on 2016-08-05 15:23:13 UTC