URDF is a "Unified Robot Description Format". It's just an xml file with a list of links and joints, including mass, inertial matrix, joint properties and pointers to associated mesh files for the parts.
What's important is the position of each of these objects and their orientation, provided in as Euler angles or a quaternion.
To make it easier for me to generate a URDF for models designed in MoI, I'd like to write a script to iterate through selected objects and write out:
- object name
- object position (x,y,z)
- orientation/rotation (r,p,y)
Is there a script example of iterating through objects, accessing their position and orientation?
And another script example for writing to a file (or is it just plain ole javascript)?
If there is a general doc on writing scripts for MOI, that would be great too.
Thanks,
Jeff.
|