-
Notifications
You must be signed in to change notification settings - Fork 117
Import
Most CAD software allows to export meshes of parts as individual files in a common coordinate system. This means that the origin of all objects rests at a common origin and only the vertices of the meshes are placed such that when all objects are overlaid at their common origin, the original CAD part is assembled. This allows to simply import all such exported meshes in Blender and end up with correctly placed objects.
The meshes are placed in correct relation to one another when exported as a group from CAD, however each part's origin is at the global origin of Blender.
The origins of the individual parts can then be moved to the individual objects' center of mass (COM), center of geometry etc.:
Moving the origins of the objects to their approximated COM.
Now every part has it's own origin, which will be important for adding collision objects etc.
The COM thus calculated assumes a homogenous mass distribution throughout the volume of a mesh, which will rarely be the case for real robots. To obtain a precise model, you will therefore therefore have to adjust the COM of the robot's parts.
Another possibility is to export every part from CAD with the mesh's origin at the actual center of mass of that part (for which it is necessary to create coordinate systems in CAD residing at the COM). This however leads to the problem of then placing the individually exported parts correctly with respect to one another in Blender. There currently is no 'one size fits all' solution to this issue and every robot project team will have to figure out the most convenient way for them.
There are some solutions for exporting a robot from CAD not only in meshes, but as a URDF or different kinematic description. If such an export is available to you, it may be far more useful than importing raw mesh data.
Either way, you can import the meshes of your choice by clicking File -> Import -> format, with 'format' being whatever mesh format you chose for export (We recommend stl).
The scene format employed by MARS can be imported into Phobos as well. During import, the nodes which are the elements a model consists of in this format are combined into Phobos links, so that as usual elements that have no joint between them form a single link (with perhaps multiple visual, collision and inertia objects attached to them). The information from the specified joints is taken up in the Phobos links as well. The remaining information that a MARS scene can provide is represented similarly in Phobos as it was in the source scene.
The 'scn' format, consisting of a zipped folder containing a scene file and the associated object files, can also be imported without prior unzipping.
An export possibility for MARS scenes is currently neither available nor planned.
Back to top.