MeshResource
filename as the owner writes it (package://…, file://… or a path), unresolved; scale multiplies the file's x, y, z (URDF's default is 1, 1, 1).
Fields
| Name | Type | Default |
|---|---|---|
filename | str | required |
scale | Vector3 | Vector3(x=1.0, y=1.0, z=1.0) |
Example
One instance from the package's own test catalog; the output is its real repr().
MeshResource(filename='package://bam_arm/meshes/link1.stl', scale=Vector3(x=0.001, y=0.001, z=0.001))to_dict() as JSON
{
"_type": "shape/MeshResource",
"filename": "package://bam_arm/meshes/link1.stl",
"scale": {
"_type": "geometry/Vector3",
"x": 0.001,
"y": 0.001,
"z": 0.001
}
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.