You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should update the models to use an estimation from the mesh (if possible).
This may involve:
Simplifying / separating the inertial estimation from the current //manipulation/util:meshlab_to_sdf binary (e.g. just give it an OBJ, and it'll give you an <inertial/> with no frame adjustment)
Ensuring that the center of mass is accurate given the inertial adjustments.
The text was updated successfully, but these errors were encountered:
mesh_o3d=o3d.io.read_triangle_mesh(args.mesh_path)
vertices=np.asarray(mesh_o3d.vertices)
triangles=np.asarray(mesh_o3d.triangles)
triangles_drake=np.array([SurfaceTriangle(t[0], t[1], t[2]) fortintriangles])
mesh_drake=TriangleSurfaceMesh(triangles_drake, vertices)
# TODO: Compute density from mass and volumeinertia=CalcSpatialInertia(mesh=mesh_drake, density=density)
I found these to work quite well in the past, even when the meshes aren't entirely (but close to) watertight.
Transcribed from RobotLocomotion/drake#10704:
Follow-up from: RobotLocomotion/drake#10702
We should update the models to use an estimation from the mesh (if possible).
This may involve:
//manipulation/util:meshlab_to_sdf
binary (e.g. just give it an OBJ, and it'll give you an<inertial/>
with no frame adjustment)The text was updated successfully, but these errors were encountered: