Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mingrui-Yu/retargeting
/ functions
Functions
390 in github.com/Mingrui-Yu/retargeting
⨍
Functions
390
◇
Types & classes
36
Method
get_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:99
Method
get_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:303
Method
get_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:723
Method
get_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:906
Method
get_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:1023
Function
get_random
Args: shape: a list or tuple
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:51
Function
get_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
Method
get_target_joint_pos
Return the target joint angles.
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio_env.py:80
Method
get_target_joint_pos
(self)
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:118
Function
git_diff_config
(name)
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:41
Function
git_hash
()
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:33
Function
hierarchical_mjcf_to_standalone_mjcf
(mjcf_file, converted_file)
ws_ros2/src/retargeting_benchmark/src/utils/mjcf_urdf_simple_converter.py:268
Method
image1Cb
(self, msg)
ws_ros2/src/retargeting_benchmark/src/record_video.py:41
Method
image2Cb
(self, msg)
ws_ros2/src/retargeting_benchmark/src/record_video.py:46
Method
image_callback
(self, msg)
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation_ros.py:46
Method
is_connected
(self)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:147
Function
isometry3dToPosRotVec
(T)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:165
Function
jacoDeRotVecToAngularVel
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
Function
jacoLeftBCH
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
Method
joint_limits
(self)
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio.py:45
Method
joint_names
(self)
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio.py:25
Method
keyboard_listening
(self, stop_event)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:32
Method
listener_callback
(self, msg)
ws_ros2/src/retargeting_benchmark/src/main_franka_reduce_state_freq.py:26
Function
matrix_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
Function
matrix_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
Function
nested_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
Function
new_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
Function
new_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
Function
new_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
Function
new_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
Function
new_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
Function
new_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
Function
normalize_angle
Return the equivalent angle in (-pi, pi].
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:418
Function
o3d_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
Function
o3d_vis_points
Args: points: shape (n_points, 3)
ws_ros2/src/retargeting_benchmark/src/utils/utils_open3d.py:5
Method
objective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:115
Method
objective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:319
Method
objective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:780
Method
objective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:925
Method
objective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:1045
Method
objective
(x: np.ndarray, grad: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/robot_control.py:124
Function
omegaconf_to_dict
Converts an omegaconf DictConfig to a python Dict, respecting variable interpolation.
ws_ros2/src/retargeting_benchmark/src/utils/reformat.py:33
Method
on_press
(self, key)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:16
Method
on_release
(self, key)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:24
Function
partialQuatMultiply
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
Function
points_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
Function
posQuat2Isometry3d
(pos, quat)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:74
Method
pos_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:102
Method
pos_vel_eff_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:125
Method
pos_vel_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:117
Function
pprint
Permanently prints things on the screen
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:27
Function
print_dict
Outputs a nested dictionory.
ws_ros2/src/retargeting_benchmark/src/utils/reformat.py:44
Method
publish_message
(self)
ws_ros2/src/retargeting_benchmark/src/main_franka_reduce_state_freq.py:31
Function
quatInv
input: quat: [w, x, y, z]
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:368
Function
quaternion_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
Function
quaternion_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
Function
quaternion_wxyz2xyzw
Args: q: shape (..., 4)
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:14
Function
quaternion_xyzw2wxyz
Args: q: shape (..., 4)
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:6
Function
random_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
Function
recolor_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
Method
rgb_retarget
(self, color_img: np.ndarray, camera_K: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:350
Function
rgbd_to_pointcloud
(rgb_image, depth_image, intrinsic_matrix)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:521
Function
rgbd_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
Function
rotation_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
Function
sample_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
Function
save_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
Method
send_request
(self)
ws_ros2/src/leaphand_ros2_module/scripts/ros2_example.py:25
Function
set_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
Function
set_aspect_equal_3d
Fix equal aspect bug for 3D plots.
ws_ros2/src/retargeting_benchmark/src/utils/utils_plot.py:20
Method
set_avp_init_wrist_pose
(self, pose)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:380
Function
set_np_formatting
formats numpy print
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:49
Method
set_robot_init_wrist_pose
(self, pose)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:377
Function
set_seed
(seed)
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:56
Function
sim_ones_to_LEAPhand
(joints, hack_thumb = False)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/leap_hand_utils.py:39
Method
single_link_ik_scipy
(self, target_link_name, ref_link_pose, weights, qpos_init)
ws_ros2/src/retargeting_benchmark/src/robot_control.py:260
Function
sort_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
Method
step
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
Method
stop
(self)
ws_ros2/src/retargeting_benchmark/src/utils/utils_keyboard.py:38
Function
test_matrix_to_euler_angles
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:107
Function
test_quaternion_angular_error
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:84
Function
test_urdf_to_mujoco_xml
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_urdf.py:115
Method
timer_callback
(self)
ws_ros2/src/retargeting_benchmark/src/record_video.py:63
Function
tprint
Temporarily prints things on the screen
ws_ros2/src/retargeting_benchmark/src/utils/misc.py:21
Function
transformPoses
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
Function
transformVectors
( vectors, target_frame_relative_quat=None, target_frame_relative_quat_inv=None )
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:287
Function
twoVecAngle
(vec0, vec1)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:19
Method
vel_srv
(self, request, response)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:107
Method
videoRecordMsgCb
(self, msg)
ws_ros2/src/retargeting_benchmark/src/record_video.py:51
Function
wrenchTransformationMatrix
support batch operation
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:329
Function
xml_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
← previous
301–390 of 390, ranked by callers