Skip to content

Instantly share code, notes, and snippets.

@jkbjh
Created August 18, 2021 08:01
Show Gist options
  • Save jkbjh/f69843f7b3b39378f9b86a871f2fc9ea to your computer and use it in GitHub Desktop.
Save jkbjh/f69843f7b3b39378f9b86a871f2fc9ea to your computer and use it in GitHub Desktop.
import collections
JointInfo = collections.namedtuple(
"JointInfo",
[
"index",
"name",
"type",
"q_index",
"u_index",
"flags",
"damping",
"friction",
"lower_limit",
"upper_limit",
"max_force",
"max_velocity",
"link_name",
"joint_axis",
"parent_frame_pos",
"parent_frame_orn",
"parent_index",
],
)
DynamicsInfo = collections.namedtuple(
"DynamicsInfo",
[
"mass",
"lateral_friction",
"local_inertia_diagonal",
"local_inertial_pos",
"local_inertial_orn",
"restitution",
"rolling_friction",
"spinning_friction",
"contact_damping",
"contact_stiffness",
"UNKNOWN1"
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment