MCPcopy Create free account

hub / github.com/Mingrui-Yu/retargeting / functions

Functions390 in github.com/Mingrui-Yu/retargeting

Methodget_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:99
Methodget_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:303
Methodget_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:723
Methodget_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:906
Methodget_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:1023
Functionget_random
Args: shape: a list or tuple
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:51
Functionget_size
Helper method for providing a size, or a range to randomize from Args: size (n-array): Array of numbers that explicitly define the s
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:370
Methodget_target_joint_pos
Return the target joint angles.
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio_env.py:80
Methodget_target_joint_pos
(self)
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:118
Functiongit_diff_config
(name)
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:41
Functiongit_hash
()
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:33
Functionhierarchical_mjcf_to_standalone_mjcf
(mjcf_file, converted_file)
ws_ros2/src/retargeting_benchmark/src/utils/mjcf_urdf_simple_converter.py:268
Methodimage1Cb
(self, msg)
ws_ros2/src/retargeting_benchmark/src/record_video.py:41
Methodimage2Cb
(self, msg)
ws_ros2/src/retargeting_benchmark/src/record_video.py:46
Methodimage_callback
(self, msg)
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation_ros.py:46
Methodis_connected
(self)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:147
Functionisometry3dToPosRotVec
(T)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:165
FunctionjacoDeRotVecToAngularVel
Args: rotation vector Return: jacobian ( angular_velocity = jacobian @ derivative_rotation_vector ) Support batch operati
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:339
FunctionjacoLeftBCH
Function: J_l(), which satisfies exp((phi + delta_phi)^) = exp((J_l(phi) @ delta_phi)^) @ exp((phi)^). Reference: visual SLAM 14
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:427
Methodjoint_limits
(self)
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio.py:45
Methodjoint_names
(self)
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio.py:25
Methodkeyboard_listening
(self, stop_event)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:32
Methodlistener_callback
(self, msg)
ws_ros2/src/retargeting_benchmark/src/main_franka_reduce_state_freq.py:26
Functionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:482
Functionmatrix_to_rotation_6d
Converts rotation matrices to 6D rotation representation by Zhou et al. [1] by dropping the last row. Note that 6D representation is not uniq
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:585
Functionnested_mjcf_to_single_mjcf
Convert a nested mjcf to a single (self-contained) mjcf.
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:832
Functionnew_actuator
Creates an actuator tag with attributes specified by @**kwargs. Args: name (str): Name for this actuator joint (str): type o
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:266
Functionnew_body
Creates a body element with attributes specified by @**kwargs. Args: name (str): Name for this body pos (3-array): (x,y,z) 3
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:337
Functionnew_geom
Creates a geom element with attributes specified by @**kwargs. NOTE: With the exception of @geom_type, @size, and @pos, if any arg is set to
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:309
Functionnew_inertial
Creates a inertial element with attributes specified by @**kwargs. Args: pos (3-array): (x,y,z) 3d position of the inertial frame.
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:353
Functionnew_joint
Creates a joint tag with attributes specified by @**kwargs. Args: name (str): Name for this joint **kwargs: Specified attrib
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:252
Functionnew_site
Creates a site element with attributes specified by @**kwargs. NOTE: With the exception of @name, @pos, and @size, if any arg is set to
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:285
Functionnormalize_angle
Return the equivalent angle in (-pi, pi].
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:418
Functiono3d_vis_pointcloud_with_color
Args: pointcloud: shape (n_points, 6), positions + colors (0~1)
ws_ros2/src/retargeting_benchmark/src/utils/utils_open3d.py:16
Functiono3d_vis_points
Args: points: shape (n_points, 3)
ws_ros2/src/retargeting_benchmark/src/utils/utils_open3d.py:5
Methodobjective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:115
Methodobjective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:319
Methodobjective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:780
Methodobjective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:925
Methodobjective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:1045
Methodobjective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/robot_control.py:124
Functionomegaconf_to_dict
Converts an omegaconf DictConfig to a python Dict, respecting variable interpolation.
ws_ros2/src/retargeting_benchmark/src/utils/reformat.py:33
Methodon_press
(self, key)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:16
Methodon_release
(self, key)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:24
FunctionpartialQuatMultiply
Calculate J(q1) = d(q1 * q2) / dq2 Args: q1: [w, x, y, z] Return: The J
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:379
Functionpoints_from_image_to_cam_frame
Args: img_coord: (u, v) z: depth, unit: m.
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:512
FunctionposQuat2Isometry3d
(pos, quat)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:74
Methodpos_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:102
Methodpos_vel_eff_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:125
Methodpos_vel_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:117
Functionpprint
Permanently prints things on the screen
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:27
Functionprint_dict
Outputs a nested dictionory.
ws_ros2/src/retargeting_benchmark/src/utils/reformat.py:44
Methodpublish_message
(self)
ws_ros2/src/retargeting_benchmark/src/main_franka_reduce_state_freq.py:31
FunctionquatInv
input: quat: [w, x, y, z]
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:368
Functionquaternion_multiply
Multiply two quaternions representing rotations, returning the quaternion representing their composition, i.e. the versor with nonnegative re
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:409
Functionquaternion_to_rotation_matrix
Convert a quaternion to a 3x3 rotation matrix. Parameters: q (array_like): Quaternion in the form [w, x, y, z]. Returns:
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:45
Functionquaternion_wxyz2xyzw
Args: q: shape (..., 4)
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:14
Functionquaternion_xyzw2wxyz
Args: q: shape (..., 4)
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:6
Functionrandom_rotation
Generate a single random 3x3 rotation matrix. Args: dtype: Type to return device: Device of returned tensor. Default: if Non
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:356
Functionrecolor_collision_geoms
Iteratively searches through all elements starting with @root to find all geoms belonging to group 0 and set the corresponding rgba value to
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:560
Methodrgb_retarget
(self, color_img: np.ndarray, camera_K: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:350
Functionrgbd_to_pointcloud
(rgb_image, depth_image, intrinsic_matrix)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:521
Functionrgbd_to_pointcloud_by_open3d
Create a point cloud from an RGB image and a depth image. Args: - rgb_image: The RGB image as a (H, W, 3) numpy array. - depth_image
ws_ros2/src/retargeting_benchmark/src/utils/utils_open3d.py:64
Functionrotation_6d_to_matrix
Converts 6D rotation representation by Zhou et al. [1] to rotation matrix using Gram--Schmidt orthogonalization per Section B of [1]. Arg
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:561
Functionsample_points_normals_from_mesh
Sample points and normals of the points from the mesh. Returns: pointcloud: shape (N, 6), first three for positions and last three fo
ws_ros2/src/retargeting_benchmark/src/utils/utils_3d_object.py:8
Functionsave_sim_model
Saves the current model xml from @sim at file location @fname. Args: sim (MjSim): XML file to save, in string form fname (st
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:758
Methodsend_request
(self)
ws_ros2/src/leaphand_ros2_module/scripts/ros2_example.py:25
Functionset_alpha
Sets all a(lpha) field of the rgba attribute to be @alpha for @node and all subnodes used for managing display Args: node (E
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:207
Functionset_aspect_equal_3d
Fix equal aspect bug for 3D plots.
ws_ros2/src/retargeting_benchmark/src/utils/utils_plot.py:20
Methodset_avp_init_wrist_pose
(self, pose)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:380
Functionset_np_formatting
formats numpy print
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:49
Methodset_robot_init_wrist_pose
(self, pose)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:377
Functionset_seed
(seed)
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:56
Functionsim_ones_to_LEAPhand
(joints, hack_thumb = False)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/leap_hand_utils.py:39
Methodsingle_link_ik_scipy
(self, target_link_name, ref_link_pose, weights, qpos_init)
ws_ros2/src/retargeting_benchmark/src/robot_control.py:260
Functionsort_elements
Utility method to iteratively sort all elements based on @tags. This XML ElementTree will be parsed such that all elements with the same key
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:632
Methodstep
Simulate one step. Simply updates the current state to the target state, publishes joint_states, and waits for one timestep.
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio_env.py:51
Methodstop
(self)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:38
Functiontest_matrix_to_euler_angles
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:107
Functiontest_quaternion_angular_error
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:84
Functiontest_urdf_to_mujoco_xml
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_urdf.py:115
Methodtimer_callback
(self)
ws_ros2/src/retargeting_benchmark/src/record_video.py:63
Functiontprint
Temporarily prints things on the screen
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:21
FunctiontransformPoses
Args: poses: shape (..., 4, 4) or (4, 4) target_frame_pose: target_frame_pose in current frame, shape (4, 4) Retures:
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:211
FunctiontransformVectors
( vectors, target_frame_relative_quat=None, target_frame_relative_quat_inv=None )
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:287
FunctiontwoVecAngle
(vec0, vec1)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:19
Methodvel_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:107
MethodvideoRecordMsgCb
(self, msg)
ws_ros2/src/retargeting_benchmark/src/record_video.py:51
FunctionwrenchTransformationMatrix
support batch operation
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:329
Functionxml_path_completion
Takes in a local xml path and returns a full path. if @xml_path is absolute, do nothing if @xml_path is not absolute, load xml th
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:135
← previous301–390 of 390, ranked by callers