MCPcopy Create free account

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

Functions390 in github.com/Mingrui-Yu/retargeting

↓ 1 callersFunctionaxis_angle_to_quaternion
Convert rotations given as axis/angle to quaternions. Args: axis_angle: Rotations given as a vector in axis angle form,
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:498
↓ 1 callersFunctionbatchPosRotVec2Isometry3d
(pos, rotvec)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:98
↓ 1 callersFunctionbody_name_exists
(model, body_name)
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:20
↓ 1 callersMethodcartesian_move
Args: tcp_motion[:3]: translation defined in the world frame. tcp_motion[3:]: rotation defined in the tcp body frame.
ws_ros2/src/retargeting_benchmark/src/robot_control.py:339
↓ 1 callersMethodcheck_doa
(self, q)
ws_ros2/src/retargeting_benchmark/src/robot_adaptor.py:30
↓ 1 callersMethodconnect
(self, avp_ip: str)
ws_ros2/src/retargeting_benchmark/src/vision_pro_detector.py:14
↓ 1 callersFunctionconvert
load MJCF file, parse it in mujoco and save it as URDF replicate just the kinematic structure, ignore most dynamics, actuators, etc. only
ws_ros2/src/retargeting_benchmark/src/utils/mjcf_urdf_simple_converter.py:102
↓ 1 callersFunctioncreate_rigid_object_mjcf
(object_name: str, meshfile: str, savepath: str, density=1000)
ws_ros2/src/retargeting_benchmark/src/utils/utils_urdf.py:64
↓ 1 callersMethodctrl_joint_pos
(self, target_joint_pos)
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:126
↓ 1 callersFunctiondepth_image_to_points
(depth_image, intrinsic_matrix)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:492
↓ 1 callersFunctiondiagRotMat
(rot_mat)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:296
↓ 1 callersMethodestimate_wrist_frame_in_cam
Function: estimate the wrist pose in camera frame by PnP solving Args: rvec_init: initial guess for rotation
ws_ros2/src/retargeting_benchmark/src/single_hand_detector.py:148
↓ 1 callersFunctionfind_parent
Find the parent element of the specified @child node, recurisvely searching through @root. Args: root (ET.Element): Root of the xml
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:678
↓ 1 callersFunctionflatten_stream_data
Extract the elements in 'stream' dict to the overall dictp
ws_ros2/src/retargeting_benchmark/src/main_robot_teleoperation.py:26
↓ 1 callersMethodgenerate_link_indices
Example: >>> generate_link_indices(4) ([2, 3, 4, 3, 4, 4, 0, 0, 0, 0], [1, 1, 1, 2, 2, 3, 1, 2, 3, 4])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:678
↓ 1 callersMethodget_objective_function
(self, ref_values: Dict[str, np.ndarray])
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:79
↓ 1 callersMethodget_raw_stream
(self)
ws_ros2/src/retargeting_benchmark/src/vision_pro_detector.py:19
↓ 1 callersFunctionindent
Recursively add indentation to an Element
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:817
↓ 1 callersMethodinitial_robot_config
Set the initial state of the robot.
ws_ros2/src/retargeting_benchmark/src/robot_pinocchio_env.py:41
↓ 1 callersMethodinitial_robot_config
(self)
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:83
↓ 1 callersFunctionisometry3dToPosQuat
(T)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:142
↓ 1 callersMethodkeys_to_tcp_motion
(self, pressed_keys, trans_speed=0.001, rot_speed=0.01)
ws_ros2/src/retargeting_benchmark/src/robot_control.py:360
↓ 1 callersMethodload_data
(self, file_name)
ws_ros2/src/retargeting_benchmark/src/main_robot_teleoperation.py:176
↓ 1 callersFunctionmain
(args=None)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:133
↓ 1 callersFunctionmain
(args=None)
ws_ros2/src/leaphand_ros2_module/scripts/ros2_example.py:31
↓ 1 callersFunctionmain
(args=None)
ws_ros2/src/retargeting_benchmark/src/main_robot_real_high_freq.py:120
↓ 1 callersFunctionmain
()
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation_ros.py:76
↓ 1 callersFunctionmain
()
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation.py:638
↓ 1 callersFunctionmain
(args=None)
ws_ros2/src/retargeting_benchmark/src/main_franka_reduce_state_freq.py:37
↓ 1 callersFunctionmain
()
ws_ros2/src/retargeting_benchmark/src/main_robot_teleoperation.py:335
↓ 1 callersFunctionmain
()
ws_ros2/src/retargeting_benchmark/src/robot_real.py:187
↓ 1 callersFunctionmain
(args=None)
ws_ros2/src/retargeting_benchmark/src/record_video.py:102
↓ 1 callersFunctionmain
(args=None)
ws_ros2/src/retargeting_benchmark/src/main_virtual_robot.py:52
↓ 1 callersFunctionmain
()
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:812
↓ 1 callersMethodmain
(self)
ws_ros2/src/retargeting_benchmark/src/main_robot_teleoperation.py:182
↓ 1 callersMethodmain
(self)
ws_ros2/src/retargeting_benchmark/src/main_robot_control.py:61
↓ 1 callersFunctionmake_device
Makes an actual torch.device object from the device specified as either a string or torch.device object. If the device is `cuda` without
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/datatypes.py:17
↓ 1 callersFunctionmappingFromAvelToDquat
Function: calculate M, where dq/dt = M(q) * avel_in_body_frame Input: q: [w, x, y, z]
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:393
↓ 1 callersFunctionmapping_from_space_avel_to_dquat
Function: calculate M, where dq/dt = M(q) * avel_in_space_frame Input: q: [w, x, y, z]
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:406
↓ 1 callersFunctionmatrix_to_euler_angles
Convert rotations given as rotation matrices to Euler angles in radians. Args: matrix: Rotation matrices as tensor of shape (..., 3,
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:271
↓ 1 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:107
↓ 1 callersMethodparse_keypoint_2d
( keypoint_2d: landmark_pb2.NormalizedLandmarkList, img_size )
ws_ros2/src/retargeting_benchmark/src/single_hand_detector.py:137
↓ 1 callersMethodparse_keypoint_3d
( keypoint_3d: framework.formats.landmark_pb2.LandmarkList, )
ws_ros2/src/retargeting_benchmark/src/single_hand_detector.py:126
↓ 1 callersFunctionpointPairsToLines
(points, parent_frame_id, marker_id=0)
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:134
↓ 1 callersFunctionpointsToMarker
(points, colors, parent_frame_id, marker_id=0)
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:100
↓ 1 callersFunctionposOri2Isometry3d
(pos, ori)
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:135
↓ 1 callersFunctionposQuatToRosPose
(pos, quat)
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:27
↓ 1 callersMethodpose_from_avp_world_to_robot_world
(self, pose_in_avp_world)
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:369
↓ 1 callersFunctionquaternion_angular_error
angular error between two quaternions :param q1: (..., 4), torch; quat is (w, x, y, z) :param q2: (..., 4), torch :param epsilon: a s
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:22
↓ 1 callersFunctionquaternion_to_axis_angle
Convert rotations given as quaternions to axis/angle. Args: quaternions: quaternions with real part first, as tensor of
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:530
↓ 1 callersFunctionrandom_rotations
Generate random rotations as 3x3 rotation matrices. Args: n: Number of rotation matrices in a batch to return. dtype: Type t
ws_ros2/src/retargeting_benchmark/src/utils/pytorch3d/rotation_conversions.py:337
↓ 1 callersMethodread_cur
Returns the current positions and velocities.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:230
↓ 1 callersMethodread_pos_vel
Returns the current positions and velocities.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:221
↓ 1 callersMethodread_vel
Returns the current positions and velocities.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:227
↓ 1 callersFunctionrebuild_stream_data
Rebuld the stream data as a dict named 'stream'
ws_ros2/src/retargeting_benchmark/src/main_robot_teleoperation.py:45
↓ 1 callersMethodrelative_position_to_wrist_error
Calculate the relative position error from all fingertips to wrist between the retargeted qpos and the target qpos.
ws_ros2/src/retargeting_benchmark/src/robot_benchmark.py:130
↓ 1 callersMethodrgb_retarget
(self, color_img: np.ndarray, camera_K: np.ndarray)
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation.py:257
↓ 1 callersFunctionrosPoseToAxisMarker
( ros_pose, parent_frame_id, x_marker_id=0, y_marker_id=1, z_marker_id=2 )
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:35
↓ 1 callersFunctionrosPoseToPosQuat
(ros_pose)
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:12
↓ 1 callersFunctionscale
(x, lower, upper)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/leap_hand_utils.py:31
↓ 1 callersFunctionseconds_to_stamp
(seconds_float)
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:165
↓ 1 callersMethodset_avp_init_wrist_pose
(self, pose)
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation.py:287
↓ 1 callersMethodset_dexpilot_cache
Example: >>> set_dexpilot_cache(4, 0.1, 0.2) (array([False, False, False, False, False, False]), [1, 2, 2], [
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:701
↓ 1 callersMethodset_joint_limit
Args: joint_limits: shape (n_joint_dof, 2)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:27
↓ 1 callersMethodset_robot_init_wrist_pose
(self, pose)
ws_ros2/src/retargeting_benchmark/src/robot_teleoperation.py:284
↓ 1 callersFunctionsigned_to_unsigned
Converts the given value to its unsigned representation.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:45
↓ 1 callersMethodsingle_link_ik_nlopt
Args: qpos_init: if None, use the current joint positions.
ws_ros2/src/retargeting_benchmark/src/robot_control.py:109
↓ 1 callersFunctionstamp_to_seconds
(input)
ws_ros2/src/retargeting_benchmark/src/utils/utils_ros.py:157
↓ 1 callersMethodstart_record_video
(self, data_dir)
ws_ros2/src/retargeting_benchmark/src/robot_real.py:176
↓ 1 callersMethodstep
(self)
ws_ros2/src/retargeting_benchmark/src/robot_control.py:376
↓ 1 callersMethodstep
(self)
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:89
↓ 1 callersFunctionstring_to_array
Converts a array string in mujoco xml to np.array. Examples: "0 1 2" => [0, 1, 2] Args: string (str): String to convert
ws_ros2/src/retargeting_benchmark/src/utils/utils_mjcf.py:170
↓ 1 callersFunctiontest_create_rigid_object_mjcf
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_urdf.py:120
↓ 1 callersFunctiontest_different_normal_method
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_3d_object.py:48
↓ 1 callersFunctiontest_env
()
ws_ros2/src/retargeting_benchmark/src/robot_mujoco.py:143
↓ 1 callersFunctiontest_mapping_from_avel_to_dquat
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:551
↓ 1 callersFunctiontest_transform_points
()
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:118
↓ 1 callersFunctiontime_to_seconds
(time)
ws_ros2/src/retargeting_benchmark/src/robot_real.py:21
↓ 1 callersFunctiontransformVelocities
input: velocities: shape [-1, 6] target_frame_relative_quat: target frame's quaternion in current frame [
ws_ros2/src/retargeting_benchmark/src/utils/utils_calc.py:240
↓ 1 callersFunctiontransform_points
Args: points: shape (N, 3) frame_pos: current frame pos in target frame, shape (N, 3) frame_quat: current frame pos in ta
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:63
↓ 1 callersFunctiontransform_points_inverse
Args: points: shape (N, 3) frame_pos: target frame pos in current frame, shape (N, 3) frame_quat: target frame quat in cu
ws_ros2/src/retargeting_benchmark/src/utils/utils_torch.py:73
↓ 1 callersFunctionunscale
(x, lower, upper)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/leap_hand_utils.py:34
↓ 1 callersMethodvision_pro_retarget
Return: target_hand_kps_in_wrist: target_wrist_pose_in_world: qpos_retarget:
ws_ros2/src/retargeting_benchmark/src/bck/robot_teleoperation.py:383
↓ 1 callersMethodwrite_byte
Writes a value to the motors. Args: motor_ids: The motor IDs to write to. value: The value to write to the control ta
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:249
FunctionLEAPhand_to_allegro
(joints, teleop = False, zeros = True)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/leap_hand_utils.py:77
FunctionLEAPhand_to_sim_ones
(joints, hack_thumb = False)
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/leap_hand_utils.py:45
Method__del__
Automatically disconnect on destruction.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:355
Method__enter__
Enables use as a context manager.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:345
Method__exit__
Enables use as a context manager.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:351
Method__init__
(self)
ws_ros2/src/leaphand_ros2_module/scripts/leaphand_node.py:25
Method__init__
(self)
ws_ros2/src/leaphand_ros2_module/scripts/ros2_example.py:15
Method__init__
Initializes a new reader.
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:366
Method__init__
(self, client: DynamixelClient, motor_ids: Sequence[int], p
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:433
Method__init__
(self, client: DynamixelClient, motor_ids: Sequence[int], p
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:478
Method__init__
(self, client: DynamixelClient, motor_ids: Sequence[int], p
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:515
Method__init__
(self, client: DynamixelClient, motor_ids: Sequence[int], p
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:547
Method__init__
(self, client: DynamixelClient, motor_ids: Sequence[int], p
ws_ros2/src/leaphand_ros2_module/scripts/leap_hand_utils/dynamixel_client.py:581
Method__init__
(self, robot_adaptor: RobotAdaptor)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:15
Method__init__
(self, robot_adaptor: RobotAdaptor, targets: Dict, params: Dict)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:86
Method__init__
(self, robot_adaptor: RobotAdaptor, targets: Dict, params: Dict)
ws_ros2/src/retargeting_benchmark/src/retarget_optimizer.py:628
← previousnext →101–200 of 390, ranked by callers