Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GalaxyGeneralRobotics/LATENT
/ functions
Functions
332 in github.com/GalaxyGeneralRobotics/LATENT
⨍
Functions
332
◇
Types & classes
35
Function
calculate_dif_rigid_body_pos_local
(current_data, reference_data)
latent_mj/utils/math.py:441
Function
calculate_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
Function
calculate_dif_rigid_body_rot_local
(current_data, reference_data)
latent_mj/utils/math.py:467
Function
calculate_dif_root_angvel_local_differential
(current_data, reference_data, last_root_ori, dt)
latent_mj/utils/math.py:598
Function
calculate_dif_root_height
(current_data, reference_data)
latent_mj/utils/math.py:640
Function
calculate_dif_root_linvel_local_differential
(current_data, reference_data, last_root_pos, dt)
latent_mj/utils/math.py:528
Function
calculate_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
Function
calculate_relative_site_quatities
(data, rel_site_ids, rel_body_ids, body_rootid, backend)
latent_mj/utils/math.py:324
Function
calculate_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
Method
call
(self, inputs)
latent_mj/eval/tracking/brax2onnx.py:57
Method
concatenate
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
Function
convert_data
(x: jnp.ndarray)
latent_mj/learning/policy/ppo/train_tracking.py:353
Function
decorator
(obj)
latent_mj/utils/registry.py:44
Function
domain_randomize
(model: mjx.Model, rng: jax.Array)
latent_mj/dr/domain_randomize_tracking.py:35
Function
domain_randomize_terrain
(model: mjx.Model, rng: jax.Array, all_hfield_data: jax.Array)
latent_mj/dr/domain_randomize_tracking.py:120
Function
f
(carry, unused_t)
latent_mj/learning/policy/acting.py:66
Function
f
(carry, unused_t)
latent_mj/learning/policy/ppo/acting_tracking.py:67
Function
f
(leaf)
latent_mj/learning/policy/ppo/train_tracking.py:70
Method
f
(state, _)
latent_mj/envs/g1_tracking/utils/wrapper.py:53
Method
filter_body_ids
(body_names)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:445
Method
filter_body_ids
(body_names)
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:162
Method
filter_joint_ids
(joint_names)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:449
Method
filter_joint_ids
(joint_names)
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:166
Method
formatTime
(self, record, datefmt=None)
latent_mj/utils/logger.py:12
Method
generate_eval_unroll
(policy_params: PolicyParams, key: PRNGKey)
latent_mj/learning/policy/acting.py:107
Method
generate_smooth_transition
(self, q_start, q_end, transition_len)
latent_mj/utils/dataset/start_end_transition_handler.py:586
Function
generate_unroll
Collect trajectories of given unroll_length.
latent_mj/learning/policy/ppo/acting_tracking.py:55
Function
get
(task: str, category: str, call: bool = False)
latent_mj/utils/registry.py:51
Method
get_accelerometer
Return the accelerometer readings in the local frame.
latent_mj/envs/g1_tracking/train/base_env.py:66
Method
get_all_instances
Returns a list of all instances of this class.
latent_mj/utils/stateful_object.py:27
Method
get_all_instances
Returns a list of all instances of this class.
latent_mj/utils/dataset/traj_handler.py:34
Method
get_attribute_names
(cls)
latent_mj/utils/dataset/traj_class.py:589
Method
get_attribute_names
(cls)
latent_mj/utils/dataset/traj_class.py:1045
Method
get_attribute_names
(cls)
latent_mj/utils/dataset/traj_class.py:1297
Function
get_collision_contact
Get the contact point between two geoms
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:276
Method
get_current_traj_data_simple
(self, traj_step, backend=jnp)
latent_mj/utils/dataset/traj_handler.py:462
Method
get_cvel
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:778
Method
get_cvel_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:806
Method
get_global_angvel
Return the angular velocity of the robot in the world frame.
latent_mj/envs/g1_tracking/train/base_env.py:58
Method
get_global_linvel
Return the linear velocity of the robot in the world frame.
latent_mj/envs/g1_tracking/train/base_env.py:54
Method
get_gravity
Return the gravity vector in the world frame.
latent_mj/envs/g1_tracking/train/base_env.py:50
Method
get_init_traj_data
(self, carry, backend=jnp)
latent_mj/utils/dataset/traj_handler.py:465
Function
get_latest_ckpt
(tag)
latent_mj/constant.py:24
Function
get_path_log
(tag)
latent_mj/constant.py:20
Method
get_qpos
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:766
Method
get_qpos_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:790
Method
get_qvel
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:769
Method
get_qvel_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:794
Method
get_site_xmat
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:787
Method
get_site_xmat_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:818
Method
get_site_xpos
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:784
Method
get_site_xpos_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:814
Method
get_subtree_com
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:781
Method
get_subtree_com_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:810
Method
get_xpos
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:772
Method
get_xpos_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:798
Method
get_xquat
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:775
Method
get_xquat_slice
(self, traj_index, sub_traj_index, slice_length, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:802
Method
init_state
(self, env, key, model, data, backend)
latent_mj/utils/dataset/traj_handler.py:30
Method
init_state
(self, env=None, key=None, model=None, data=None, backend=None)
latent_mj/utils/dataset/traj_handler.py:281
Method
is_complete
(self)
latent_mj/utils/dataset/traj_class.py:628
Method
is_none_object_array
(array)
latent_mj/utils/dataset/traj_class.py:87
Method
is_numpy
(self)
latent_mj/utils/dataset/traj_handler.py:493
Function
linvel_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
Function
list_category
(task: str)
latent_mj/utils/registry.py:66
Function
list_task
()
latent_mj/utils/registry.py:62
Function
load_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
Function
minibatch_step
( carry, data: types.Transition, normalizer_params: running_statistics.RunningStatisti
latent_mj/learning/policy/ppo/train_tracking.py:327
Function
mj_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
Function
mj_jnt_name2id
Get the joint ID (in the Mujoco datastructure) from the joint name.
latent_mj/utils/mujoco.py:8
Function
mj_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
Method
mj_model
(self)
latent_mj/envs/g1_tracking/train/base_env.py:85
Function
mj_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
Method
mjx_model
(self)
latent_mj/envs/g1_tracking/train/base_env.py:89
Method
n_samples
(self)
latent_mj/utils/dataset/traj_class.py:1041
Method
n_trajectories
(self)
latent_mj/utils/dataset/traj_class.py:1037
Method
n_trajectories
(self)
latent_mj/utils/dataset/traj_handler.py:129
Method
pred_size
(self)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:293
Function
quat2angle
Converts a quaternion to an angle. (quaternions is expected to be scalar last)
latent_mj/utils/math.py:389
Function
quat_conjugate
Return quaternion conjugate.
latent_mj/utils/dataset/start_end_transition_handler.py:25
Function
quat_flip
Flip quaternion to ensure w >= 0 (keep sign consistency). Works for shape (4,) or (B,4).
latent_mj/utils/math.py:664
Function
quat_scalarfirst2scalarlast
Converts a quaternion from scalar-first to scalar-last representation.
latent_mj/utils/math.py:410
Function
quat_scalarlast2scalarfirst
Converts a quaternion from scalar-last to scalar-first representation.
latent_mj/utils/math.py:417
Function
quat_to_mat
Convert a unit quaternion (scalar-first: w, x, y, z) to a 3x3 rotation matrix.
latent_mj/utils/math_np.py:47
Function
quaternion_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
Function
register
(task: str, category: str)
latent_mj/utils/registry.py:41
Method
remove_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
Method
remove_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
Method
remove_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
Method
remove_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
Method
remove_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
Method
remove_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
Method
reorder_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
Method
reorder_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
Method
reorder_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
Method
reorder_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
Method
reorder_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
Method
reorder_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
Method
reset
(self, rng: jax.Array, trajectory_data)
latent_mj/envs/g1_tracking/utils/wrapper.py:35
Method
reset
(self, rng: jax.Array, trajectory_data)
latent_mj/envs/g1_tracking/utils/wrapper.py:101
← previous
next →
201–300 of 332, ranked by callers