MCPcopy Create free account

hub / github.com/GalaxyGeneralRobotics/LATENT / functions

Functions332 in github.com/GalaxyGeneralRobotics/LATENT

↓ 1 callersFunctioncalculate_relative_rotation_matrices
Calculate the relative rotation matrices of N bodies with respect to a main rotation matrix. Args: main_rot (array): Rotation matrix
latent_mj/utils/math.py:110
↓ 1 callersFunctioncalculate_relative_velocity_in_local_frame
Calculate the relative velocity vel_a-vel_b expressed in the local frame of vel_a. Args: vel_a (array): 6D velocity vector of body A
latent_mj/utils/math.py:157
↓ 1 callersMethodcompute_step_distance
(self)
latent_mj/utils/dataset/start_end_transition_handler.py:491
↓ 1 callersFunctionconvert_jax2onnx
( ckpt_dir, output_path, inference_fn, hidden_layer_sizes, obs_size: Union[int, Mapping[st
latent_mj/eval/tracking/brax2onnx.py:118
↓ 1 callersFunctioncreate_mujoco_menagerie_soft_link
()
latent_mj/utils.py:9
↓ 1 callersFunctioncreate_mujoco_menagerie_soft_link
()
latent_mj/app/mj_playground_init.py:12
↓ 1 callersFunctiondomain_randomize_motor_ctrl
(rng: jax.Array)
latent_mj/dr/domain_randomize_tracking.py:211
↓ 1 callersMethodextend_trajectory_data
(self, traj_data: TrajectoryData, traj_info: TrajectoryInfo)
latent_mj/utils/dataset/traj_process.py:90
↓ 1 callersMethodfilter_and_extend
To ensure that the data structure of the current model and the trajectory data have the same dimensionality and order for all support
latent_mj/utils/dataset/traj_handler.py:133
↓ 1 callersFunctiong1_tracking_tennis_dr_task_config
()
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis_dr.py:42
↓ 1 callersFunctiong1_tracking_tennis_task_config
()
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:37
↓ 1 callersFunctiongenerate_unroll
Collect trajectories of given unroll_length.
latent_mj/learning/policy/acting.py:55
↓ 1 callersMethodget_body_names_and_ids
Get the names of the bodies in the model. If keys is not None, only return the names of the bodies that are in keys, otherwise return
latent_mj/utils/dataset/traj_process.py:102
↓ 1 callersMethodget_fast
(self, traj_index, sub_traj_index, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:698
↓ 1 callersMethodget_gyro
Return the gyroscope readings in the local frame.
latent_mj/envs/g1_tracking/train/base_env.py:70
↓ 1 callersMethodget_gyro
Return the gyroscope readings in the local frame.
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:550
↓ 1 callersFunctionget_latest_ckpt
(tag)
latent_mj/eval/tracking/mj_onnx_video.py:39
↓ 1 callersFunctionget_latest_ckpt
(path)
latent_mj/eval/tracking/brax2onnx.py:110
↓ 1 callersMethodget_local_linvel
Return the linear velocity of the robot in the local frame.
latent_mj/envs/g1_tracking/train/base_env.py:62
↓ 1 callersMethodget_site_names_and_ids
Get the names of the sites in the model. If keys is not None, only return the names of the sites that are in keys, otherwise return a
latent_mj/utils/dataset/traj_process.py:126
↓ 1 callersFunctioninterpolate_xmat
Perform interpolation for a batch of trajectories of rotation matrices. Args: xmats: Array of shape (T, N, 9) containing
latent_mj/utils/dataset/traj_class.py:1178
↓ 1 callersMethodkinematic_correction
(self, q, alpha)
latent_mj/utils/dataset/start_end_transition_handler.py:604
↓ 1 callersMethodload_trajectory
(self, traj: Trajectory = None, warn: bool = True)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:723
↓ 1 callersMethodload_trajectory
(self, traj: Trajectory = None, warn: bool = True)
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:491
↓ 1 callersMethodlog_metrics
Log metrics to console.
latent_mj/learning/policy/ppo/metrics_aggregator.py:60
↓ 1 callersFunctionmain
(args: Args)
latent_mj/app/brax2onnx_tracking.py:28
↓ 1 callersFunctionmj_get_collision_dist_and_normal
Get the distance and normal of the collision between two geoms. Args: geom_id1 (int): geom id in Mujoco model. geom_id2 (int
latent_mj/utils/mujoco.py:118
↓ 1 callersFunctionmj_jntid2qvelid
Get qvel index of a joint in mujoco data structure. Args: j_id (int): joint id. model (mjModel): mujoco model. Returns:
latent_mj/utils/mujoco.py:78
↓ 1 callersFunctionmj_jntname2qposid
Get qpos index of a joint in mujoco data structure. Args: j_name (str): joint name. model (mjModel): mujoco model. Retu
latent_mj/utils/mujoco.py:19
↓ 1 callersFunctionmotion_preprocess
(args: Args)
scripts/process_motion/preprocess_motion.py:13
↓ 1 callersFunctionplay
(args: Args)
latent_mj/eval/tracking/mj_onnx_video.py:46
↓ 1 callersMethodplay_trajectory
Plays a demo of the loaded trajectory by forcing the model positions to the ones in the trajectories at every step. Args:
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:866
↓ 1 callersMethodprepare_trajectory
(self, dataset_dict: Dict[str, List[str]])
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:727
↓ 1 callersMethodprepare_trajectory
(self, dataset_dict: Dict[str, List[str]], recalculate_vel_in_reference_motion: bool)
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:495
↓ 1 callersMethodpreprocess_trajectory
(self, dataset_dict: Dict[str, List[str]], batch_idx: int, num_batches: int, smooth_start_end: bool = True)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:770
↓ 1 callersFunctionquat_from_yaw
Quaternion representing rotation around z-axis by yaw.
latent_mj/utils/dataset/start_end_transition_handler.py:36
↓ 1 callersFunctionquat_mul
(q1, q2)
latent_mj/utils/dataset/start_end_transition_handler.py:40
↓ 1 callersFunctionquat_mul_angle_axis
(q1, q2)
latent_mj/utils/dataset/traj_class.py:1084
↓ 1 callersFunctionquat_to_angvel
(current_q, last_q)
latent_mj/utils/math.py:575
↓ 1 callersFunctionquat_to_mat
Converts a quaternion into a 9-dimensional rotation matrix.
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:555
↓ 1 callersFunctionquat_to_yaw
Extract yaw (rotation around z-axis) from quaternion.
latent_mj/utils/dataset/start_end_transition_handler.py:29
↓ 1 callersMethodreset
(self, rng: jax.Array, trajectory_data: TrajectoryData = None)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:497
↓ 1 callersMethodreset_state
(self, env, model, data, carry, backend)
latent_mj/utils/stateful_object.py:20
↓ 1 callersFunctionrotate_vector_by_quat
Rotate vector v by quaternion q (scalar-first convention).
latent_mj/utils/math_np.py:80
↓ 1 callersMethodrun_interp
( self, default_pose_sec = 1.0, # sec to maintain default pose at start
latent_mj/utils/dataset/traj_process.py:156
↓ 1 callersMethodset_sim_state_from_traj_data
Sets the Mujoco datastructure to the state specified in the trajectory data. Args: data (MjData): The Mujoco data struct
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:914
↓ 1 callersMethodsmooth_alpha
(self, alpha)
latent_mj/utils/dataset/start_end_transition_handler.py:601
↓ 1 callersMethodstep
(self, state: mjx_env.State, action: jax.Array, trajectory_data: TrajectoryData = None)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis_dr.py:400
↓ 1 callersMethodstep
(self, state: mjx_env.State, action: jax.Array, trajectory_data: TrajectoryData = None)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:589
↓ 1 callersMethodto_dict
Serializes the trajectory to dict. Returns: A dictionary containing the trajectory data.
latent_mj/utils/dataset/traj_class.py:42
↓ 1 callersMethodto_jax
(self)
latent_mj/utils/dataset/traj_class.py:1054
↓ 1 callersMethodto_numpy
(self)
latent_mj/utils/dataset/traj_class.py:1048
↓ 1 callersMethodto_numpy
(self)
latent_mj/utils/dataset/traj_handler.py:470
↓ 1 callersFunctiontorque_step
( rng: jax.Array, model: mjx.Model, data: mjx.Data, qpos_des: jax.Array, kps: jax.Array,
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:242
↓ 1 callersFunctiontorque_step_dr
( rng: jax.Array, model: mjx.Model, data: mjx.Data, qpos_des: jax.Array, kps: jax.Array,
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis_dr.py:246
↓ 1 callersFunctiontraining_epoch
( training_state: TrainingState, state: envs.State, key: PRNGKey )
latent_mj/learning/policy/ppo/train_tracking.py:441
↓ 1 callersFunctiontraining_epoch_with_timing
( training_state: TrainingState, env_state: envs.State, key: PRNGKey )
latent_mj/learning/policy/ppo/train_tracking.py:456
↓ 1 callersFunctiontransfer_weights
(jax_params, tf_model)
latent_mj/eval/tracking/brax2onnx.py:96
↓ 1 callersMethodupdate_state
(self, carry, backend=jnp)
latent_mj/utils/dataset/traj_handler.py:351
Method__call__
r""" Args: env: exp env traj_sample: get by `traj_handler.get_current_traj_data(traj_carry, np)`, will call Trajectory
latent_mj/utils/dataset/traj_process.py:67
Method__eq__
(self, other, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:160
Method__eq__
(self, other, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:402
Method__eq__
(self, other, backend: ModuleType = jnp)
latent_mj/utils/dataset/traj_class.py:651
Method__init__
(self, n_visual_geoms: int =0)
latent_mj/utils/stateful_object.py:15
Method__init__
(self, env, n_samples, model, body_names=None, site_names=None)
latent_mj/utils/dataset/traj_process.py:32
Method__init__
(self, model: mujoco.MjModel, traj: Trajectory)
latent_mj/utils/dataset/traj_process.py:151
Method__init__
(self, ori_traj: Trajectory, model: mujoco.MjModel, default_qpos: np.ndarray, transition_len_start: float)
latent_mj/utils/dataset/start_end_transition_handler.py:426
Method__init__
(self, n_visual_geoms: int =0)
latent_mj/utils/dataset/traj_handler.py:22
Method__init__
Constructor. Args: model (mjModel): Current model. traj_path (string): path with the trajectory for the mode
latent_mj/utils/dataset/traj_handler.py:66
Method__init__
( self, layer_sizes, activation=tf.nn.relu, kernel_init="lecun_uniform",
latent_mj/eval/tracking/brax2onnx.py:30
Method__init__
(self, env: Env, episode_length: int, action_repeat: int)
latent_mj/envs/g1_tracking/utils/wrapper.py:30
Method__init__
( self, env: mjx_env.MjxEnv, randomization_fn: Callable[[mjx.Model], Tuple[mjx.Model,
latent_mj/envs/g1_tracking/utils/wrapper.py:88
Method__init__
( self, xml_path: str, config: config_dict.ConfigDict, config_overrides: Optio
latent_mj/envs/g1_tracking/train/base_env.py:31
Method__init__
( self, with_racket: bool = True, config: config_dict.ConfigDict = None, confi
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:297
Method__init__
( self, with_racket=True, config=None, dt=0.02, sim_dt=0.002,
latent_mj/envs/g1_tracking/play/play_g1_env_tracking_tennis.py:36
Method__init__
Init. Args: eval_env: Batched environment to run evals on. eval_policy_fn: Function returning the policy from the policy
latent_mj/learning/policy/acting.py:79
Method__init__
(self, devices, buffer_size=500, steps_between_logging=1e5, progress_fn=None)
latent_mj/learning/policy/ppo/metrics_aggregator.py:24
Method__post_init__
(self)
latent_mj/utils/dataset/traj_class.py:130
Function_check_set_task
(task: str)
latent_mj/utils/registry.py:13
Method_reset_and_update_state
Helper function to perform reset and update state.
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:713
Methodaction_size
(self)
latent_mj/envs/g1_tracking/train/base_env.py:81
Methodaction_size
(self)
latent_mj/envs/g1_tracking/train/g1_env_tracking_tennis.py:289
Methodadd_body
Add a new body to the trajectory model. Args: body_rootid (Array): Root id of the new body. body_weldid (Arr
latent_mj/utils/dataset/traj_class.py:439
Methodadd_body
Adds a new body with a default value to the trajectory data. Args: xpos_value (float): Default position value for the tr
latent_mj/utils/dataset/traj_class.py:840
Methodadd_joint
Add a new joint to the trajectory model. Args: jnt_type: Type of the new joint. backend (Union[jax, numpy]):
latent_mj/utils/dataset/traj_class.py:423
Methodadd_joint
Adds a new joint with a default value to the trajectory data. Args: qpos_value (float): Default position value for the t
latent_mj/utils/dataset/traj_class.py:822
Methodadd_site
Add a new site to the trajectory model. Args: site_pos (Array): Position of the new site. site_quat (Array):
latent_mj/utils/dataset/traj_class.py:468
Methodadd_site
Adds a new site with a default value for the position/velocity and an identity matrix as a rotation to the trajectory data.
latent_mj/utils/dataset/traj_class.py:862
Functionangle2quat
Converts an angle to a quaternion. (quaternions is expected to be scalar last)
latent_mj/utils/math.py:399
Functionangvel_from_quat_diff
Compute angular velocity from quaternion difference using angle-axis extraction. Quaternion convention: scalar-first (w, x, y, z).
latent_mj/utils/math_np.py:90
Functioncalc_body_velocities
Calculate the velocities of a batch of bodies in world frame. This function is implemented similarly to Mujoco's mj_objectVelocity function
latent_mj/utils/math.py:250
Functioncalc_rel_body_velocities
Calculate the relative velocities of the bodies in b_ids to the main body. Args: cvel (array): Data array containing the velocities
latent_mj/utils/math.py:201
Functioncalc_rel_quaternions
Calculate the relative quaternions of the bodies in b_ids to the main body. Args: xquat (array): Data array containing the quaternio
latent_mj/utils/math.py:88
Functioncalculate_dif_joint_pos
(current_data, reference_data)
latent_mj/utils/math.py:622
Functioncalculate_dif_joint_vel
(current_data, reference_data)
latent_mj/utils/math.py:631
Functioncalculate_dif_navi_torso_rp
(current_data, reference_data)
latent_mj/utils/math.py:649
Functioncalculate_dif_rigid_body_angvel_local
(current_data, reference_data)
latent_mj/utils/math.py:548
Functioncalculate_dif_rigid_body_angvel_local_differential
(current_data, reference_data, last_ori, dt)
latent_mj/utils/math.py:568
Functioncalculate_dif_rigid_body_linvel_local
(current_data, reference_data)
latent_mj/utils/math.py:488
Functioncalculate_dif_rigid_body_linvel_local_differential
(current_data, reference_data, last_pos, dt)
latent_mj/utils/math.py:508
← previousnext →101–200 of 332, ranked by callers