getBodies()
Get all bodies in the model.BodyInfo[]
getJoints()
Get all joints in the model.JointInfo[]
getGeoms()
Get all geoms in the model.GeomInfo[]
getSites()
Get all sites in the model.SiteInfo[]
getActuators()
Get all actuators in the model.ActuatorInfo[]
getActuatedJoints()
Get scalar hinge/slide joints that are directly driven by actuators.ActuatedJointInfo[]
getControlMap()
Get a writable control group for all directly actuated scalar joints.ControlGroupInfo
resolveControlGroup(selector)
Resolve the same mapping for a site, body, joint selector, or actuator selector.getSensors()
Get all sensors in the model.SensorInfo[]
getSensorData(name)
Read a specific sensor’s current values.string
required
Sensor name.
Float64Array | null — sensor values, or null if not found.
getContacts()
Get all current contacts.ContactInfo[]
getModelOption()
Get simulation options.ModelOptions