Skip to content

Commit

Permalink
why is a welded body throwing an exception re: inertia
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri committed Mar 6, 2024
1 parent 2dc0143 commit 9d0741a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/pydrake/visualization/_model_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def Finalize(self, position=None):
sensor_body = self._builder.plant().AddRigidBody(
name="$rgbd_sensor_body",
model_instance=default_model_instance(),
M_BBo_B=SpatialInertia())
M_BBo_B=SpatialInertia.SolidCubeWithDensity(0.001, 0.001))
self._builder.plant().WeldFrames(
frame_on_parent_F=sensor_offset_frame,
frame_on_child_M=sensor_body.body_frame())
Expand Down

0 comments on commit 9d0741a

Please sign in to comment.