MCPcopy Create free account

hub / github.com/GalaxyGeneralRobotics/LATENT / functions

Functions332 in github.com/GalaxyGeneralRobotics/LATENT

Functioncalculate_dif_rigid_body_pos_local
(current_data, reference_data)
latent_mj/utils/math.py:441
Functioncalculate_dif_rigid_body_pos_local
Calculate the difference in rigid body positions between the current data and the reference data.
latent_mj/utils/math_np.py:6
Functioncalculate_dif_rigid_body_rot_local
(current_data, reference_data)
latent_mj/utils/math.py:467
Functioncalculate_dif_root_angvel_local_differential
(current_data, reference_data, last_root_ori, dt)
latent_mj/utils/math.py:598
Functioncalculate_dif_root_height
(current_data, reference_data)
latent_mj/utils/math.py:640
Functioncalculate_dif_root_linvel_local_differential
(current_data, reference_data, last_root_pos, dt)
latent_mj/utils/math.py:528
Functioncalculate_global_rotation_matrices
Calculate the global rotation matrices of N bodies in the world frame given a main rotation matrix. Args: main_rot (array): Rotation
latent_mj/utils/math.py:135
Functioncalculate_relative_site_quatities
(data, rel_site_ids, rel_body_ids, body_rootid, backend)
latent_mj/utils/math.py:324
Functioncalculate_relative_velocities
Calculate the relative velocity of two 6D velocities in world frame. Args: xvel (array): Data array containing the velocities of the
latent_mj/utils/math.py:70
Methodcall
(self, inputs)
latent_mj/eval/tracking/brax2onnx.py:57
Methodconcatenate
Concatenate a list of TrajectoryData instances given that the TrajectoryInfos are equivalent. Args: traj_datas (list): L
latent_mj/utils/dataset/traj_class.py:987
Functionconvert_data
(x: jnp.ndarray)
latent_mj/learning/policy/ppo/train_tracking.py:353
Functiondecorator
(obj)
latent_mj/utils/registry.py:44
Functiondomain_randomize
(model: mjx.Model, rng: jax.Array)
latent_mj/dr/domain_randomize_tracking.py:35
Functiondomain_randomize_terrain
(model: mjx.Model, rng: jax.Array, all_hfield_data: jax.Array)
latent_mj/dr/domain_randomize_tracking.py:120
Functionf
(carry, unused_t)
latent_mj/learning/policy/acting.py:66
Functionf
(carry, unused_t)
latent_mj/learning/policy/ppo/acting_tracking.py:67
Functionf
(leaf)
latent_mj/learning/policy/ppo/train_tracking.py:70
Methodf
(state, _)
latent_mj/envs/g1_tracking/utils/wrapper.py:53
Methodfilter_body_ids
(body_names)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:445
Methodfilter_body_ids
(body_names)
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:162
Methodfilter_joint_ids
(joint_names)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:449
Methodfilter_joint_ids
(joint_names)
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:166
MethodformatTime
(self, record, datefmt=None)
latent_mj/utils/logger.py:12
Methodgenerate_eval_unroll
(policy_params: PolicyParams, key: PRNGKey)
latent_mj/learning/policy/acting.py:107
Methodgenerate_smooth_transition
(self, q_start, q_end, transition_len)
latent_mj/utils/dataset/start_end_transition_handler.py:586
Functiongenerate_unroll
Collect trajectories of given unroll_length.
latent_mj/learning/policy/ppo/acting_tracking.py:55
Functionget
(task: str, category: str, call: bool = False)
latent_mj/utils/registry.py:51
Methodget_accelerometer
Return the accelerometer readings in the local frame.
latent_mj/envs/g1_tracking/train/base_env.py:66
Methodget_all_instances
Returns a list of all instances of this class.
latent_mj/utils/stateful_object.py:27
Methodget_all_instances
Returns a list of all instances of this class.
latent_mj/utils/dataset/traj_handler.py:34
Methodget_attribute_names
(cls)
latent_mj/utils/dataset/traj_class.py:589
Methodget_attribute_names
(cls)
latent_mj/utils/dataset/traj_class.py:1045
Methodget_attribute_names
(cls)
latent_mj/utils/dataset/traj_class.py:1297
Functionget_collision_contact
Get the contact point between two geoms
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:276
Methodget_current_traj_data_simple
(self, traj_step, backend=jnp)
latent_mj/utils/dataset/traj_handler.py:462
Methodget_cvel
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:778
Methodget_cvel_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:806
Methodget_global_angvel
Return the angular velocity of the robot in the world frame.
latent_mj/envs/g1_tracking/train/base_env.py:58
Methodget_global_linvel
Return the linear velocity of the robot in the world frame.
latent_mj/envs/g1_tracking/train/base_env.py:54
Methodget_gravity
Return the gravity vector in the world frame.
latent_mj/envs/g1_tracking/train/base_env.py:50
Methodget_init_traj_data
(self, carry, backend=jnp)
latent_mj/utils/dataset/traj_handler.py:465
Functionget_latest_ckpt
(tag)
latent_mj/constant.py:24
Functionget_path_log
(tag)
latent_mj/constant.py:20
Methodget_qpos
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:766
Methodget_qpos_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:790
Methodget_qvel
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:769
Methodget_qvel_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:794
Methodget_site_xmat
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:787
Methodget_site_xmat_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:818
Methodget_site_xpos
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:784
Methodget_site_xpos_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:814
Methodget_subtree_com
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:781
Methodget_subtree_com_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:810
Methodget_xpos
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:772
Methodget_xpos_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:798
Methodget_xquat
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:775
Methodget_xquat_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:802
Methodinit_state
(self, env, key, model, data, backend)
latent_mj/utils/dataset/traj_handler.py:30
Methodinit_state
(self, env=None, key=None, model=None, data=None, backend=None)
latent_mj/utils/dataset/traj_handler.py:281
Methodis_complete
(self)
latent_mj/utils/dataset/traj_class.py:628
Methodis_none_object_array
(array)
latent_mj/utils/dataset/traj_class.py:87
Methodis_numpy
(self)
latent_mj/utils/dataset/traj_handler.py:493
Functionlinvel_from_pos_diff
Compute linear velocity from position difference. Args: pos_curr: Current position, shape (3,) pos_last: Last position,
latent_mj/utils/math_np.py:32
Functionlist_category
(task: str)
latent_mj/utils/registry.py:66
Functionlist_task
()
latent_mj/utils/registry.py:62
Functionload_mujoco
Loads and compiles the Mujoco model from an XML file or MjSpec object. Args: xml_file (Union[str, MjSpec]): Path to the XML file or
latent_mj/utils/mujoco.py:169
Functionminibatch_step
( carry, data: types.Transition, normalizer_params: running_statistics.RunningStatisti
latent_mj/learning/policy/ppo/train_tracking.py:327
Functionmj_check_collisions
Check if two geoms collide. Args: geom_id1 (int): geom id in Mujoco model. geom_id2 (int): geom id in Mujoco model.
latent_mj/utils/mujoco.py:143
Functionmj_jnt_name2id
Get the joint ID (in the Mujoco datastructure) from the joint name.
latent_mj/utils/mujoco.py:8
Functionmj_jntname2qvelid
Get qvel index of a joint in mujoco data structure. Args: j_name (str): joint name. model (mjModel): mujoco model. Retu
latent_mj/utils/mujoco.py:37
Methodmj_model
(self)
latent_mj/envs/g1_tracking/train/base_env.py:85
Functionmj_spec_find_geom_id
Find geom id in mujoco specification. Args: spec (MjSpec): Mujoco specification. geom_name (str): geom name. Returns:
latent_mj/utils/mujoco.py:101
Methodmjx_model
(self)
latent_mj/envs/g1_tracking/train/base_env.py:89
Methodn_samples
(self)
latent_mj/utils/dataset/traj_class.py:1041
Methodn_trajectories
(self)
latent_mj/utils/dataset/traj_class.py:1037
Methodn_trajectories
(self)
latent_mj/utils/dataset/traj_handler.py:129
Methodpred_size
(self)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:293
Functionquat2angle
Converts a quaternion to an angle. (quaternions is expected to be scalar last)
latent_mj/utils/math.py:389
Functionquat_conjugate
Return quaternion conjugate.
latent_mj/utils/dataset/start_end_transition_handler.py:25
Functionquat_flip
Flip quaternion to ensure w >= 0 (keep sign consistency). Works for shape (4,) or (B,4).
latent_mj/utils/math.py:664
Functionquat_scalarfirst2scalarlast
Converts a quaternion from scalar-first to scalar-last representation.
latent_mj/utils/math.py:410
Functionquat_scalarlast2scalarfirst
Converts a quaternion from scalar-last to scalar-first representation.
latent_mj/utils/math.py:417
Functionquat_to_mat
Convert a unit quaternion (scalar-first: w, x, y, z) to a 3x3 rotation matrix.
latent_mj/utils/math_np.py:47
Functionquaternion_angular_distance
Calculate the angular distance between two rotations represented by quaternions. Args: q1 (array): First quaternion. Shape (4,) or (
latent_mj/utils/math.py:360
Functionregister
(task: str, category: str)
latent_mj/utils/registry.py:41
Methodremove_bodies
Remove the bodies with the specified ids from the trajectory model. Args: body_ids (jax.Array): Array of body ids to rem
latent_mj/utils/dataset/traj_class.py:503
Methodremove_bodies
Remove the bodies with the specified ids from the trajectory data. Args: body_ids (Union[jax.Array, np.ndarray]): Array
latent_mj/utils/dataset/traj_class.py:901
Methodremove_joints
Remove the joints with the specified ids from the trajectory model. Args: joint_ids (Union[jax.Array, np.ndarray]): Arra
latent_mj/utils/dataset/traj_class.py:487
Methodremove_joints
Remove the joints with the specified ids from the trajectory data. Args: joint_qpos_ids (Union[jax.Array, np.ndarray]):
latent_mj/utils/dataset/traj_class.py:882
Methodremove_sites
Remove the sites with the specified ids from the trajectory model. Args: site_ids (Union[jax.Array, np.ndarray]): Array
latent_mj/utils/dataset/traj_class.py:525
Methodremove_sites
Remove the sites with the specified ids from the trajectory data. Args: site_ids (Union[jax.Array, np.ndarray]): Array o
latent_mj/utils/dataset/traj_class.py:921
Methodreorder_bodies
Args: new_order (list[int]): List of indices of new body order. backend (ModuleType): Backend to use for the computa
latent_mj/utils/dataset/traj_class.py:556
Methodreorder_bodies
Reorder the bodies in the trajectory data. Args: new_order (Union[jax.Array, np.ndarray]): Array of indices specifying t
latent_mj/utils/dataset/traj_class.py:954
Methodreorder_joints
Args: new_order (list[int]): List of indices of new joint order. backend (ModuleType): Backend to use for the comput
latent_mj/utils/dataset/traj_class.py:543
Methodreorder_joints
Reorder the joints in the trajectory data. Args: new_order_qpos (Union[jax.Array, np.ndarray]): Array of indices specify
latent_mj/utils/dataset/traj_class.py:938
Methodreorder_sites
Args: new_order (list[int]): List of indices of new site order. backend (ModuleType): Backend to use for the computa
latent_mj/utils/dataset/traj_class.py:574
Methodreorder_sites
Reorder the sites in the trajectory data. Args: new_order (Union[jax.Array, np.ndarray]): Array of indices specifying th
latent_mj/utils/dataset/traj_class.py:971
Methodreset
(self, rng: jax.Array, trajectory_data)
latent_mj/envs/g1_tracking/utils/wrapper.py:35
Methodreset
(self, rng: jax.Array, trajectory_data)
latent_mj/envs/g1_tracking/utils/wrapper.py:101
← previousnext →201–300 of 332, ranked by callers