This fragments shows how to either perturb or set the orientation of a rigid body randomly.
18 transformation= Transformation3D(rotation, translation)
23 rbd.set_reference_frame(ReferenceFrame3D(transformation))
26 composed_tr = IMP.algebra.compose \
27 (rbd.get_reference_frame().get_transformation_to(),
29 rbd.set_reference_frame(ReferenceFrame3D(composed_tr))