MCPcopy Create free account

hub / github.com/anthonysimeonov/rpdiff / functions

Functions592 in github.com/anthonysimeonov/rpdiff

↓ 35 callersFunctionsafeRemoveConstraint
(cid: int)
src/rpdiff/utils/eval_gen_utils.py:32
↓ 34 callersFunctionsafeCollisionFilterPair
( bodyUniqueIdA: int, bodyUniqueIdB: int, linkIndexA: int, linkIndexB: int, enableCo
src/rpdiff/utils/eval_gen_utils.py:24
↓ 22 callersMethodregister_object
Register the pybullet body with the tracker so we can obtain updated simulator states, map them to the correct mesh asset, and send t
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:133
↓ 20 callersFunctionconstraint_obj_world
(obj_id: int, pos: np.ndarray, ori: np.ndarray)
src/rpdiff/utils/eval_gen_utils.py:5
↓ 17 callersMethodclear
(self)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:97
↓ 14 callersFunctionrhl
(high, low)
src/rpdiff/data_gen/model_gen/syn_rack_gen.py:58
↓ 13 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
src/rpdiff/utils/torch3d_util.py:102
↓ 13 callersFunctionrhl
(bounds)
src/rpdiff/data_gen/model_gen/can_cabinet_dev.py:14
↓ 12 callersMethod__init__
(self, layer, N)
src/rpdiff/model/transformer/nsm_transformer.py:37
↓ 12 callersMethodadd_keyframe
(self)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:242
↓ 11 callersFunctiondict_to_gpu
(ob: Union[dict, torch.Tensor], to_float: bool=True)
src/rpdiff/utils/torch_util.py:55
↓ 11 callersFunctionrhl
(bounds)
src/rpdiff/data_gen/model_gen/syn_bookshelf_gen.py:61
↓ 10 callersMethodupdate_meshcat_current_state
(self, mc_handler: Visualizer)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:260
↓ 9 callersMethod__init__
(self, in_channels, out_channels, final_sigmoid=True, f_maps=64, layer_order='gcr', num_group
src/rpdiff/model/encoder/unet3d.py:486
↓ 9 callersMethodremove_object
(self, body_id: int, mc_handler: Visualizer)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:112
↓ 8 callersMethod_camera_cfgs
Returns a set of camera config parameters Returns: YACS CfgNode: Cam config params
src/rpdiff/robot/multicam.py:59
↓ 8 callersFunctioncheck_mesh_contains
( mesh: Trimesh, points: np.ndarray, hash_resolution: int=512)
src/rpdiff/utils/mesh_util/inside_mesh.py:8
↓ 8 callersFunctionexpand_as
(x, y)
src/rpdiff/utils/geometry.py:56
↓ 8 callersFunctionexpand_as
(x, y)
src/rpdiff/utils/geometry_np.py:14
↓ 8 callersFunctionget_rpdiff_src
()
src/rpdiff/utils/path_util.py:4
↓ 7 callersFunctionclones
(module, N)
src/rpdiff/model/transformer/nsm_transformer.py:7
↓ 7 callersFunctionfps_downsample
input: B N 3 --------------------------- output: B G M 3 center : B G 3
src/rpdiff/utils/torch_scatter_utils.py:85
↓ 7 callersMethodget_ee_pose
Return the end effector pose. Returns: 4-element tuple containing - np.ndarray: x, y, z position of the EE
src/rpdiff/robot/floating_sphere_gripper.py:385
↓ 7 callersFunctionmatrix_from_pose
(pose: PoseStamped)
src/rpdiff/utils/util.py:249
↓ 7 callersFunctionrhlb
(bounds)
src/rpdiff/utils/pcd_aug_util.py:26
↓ 7 callersMethodset_ee_pose
Move the end effector to the specifed pose. Args: pos (list or np.ndarray): Desired x, y, z positions in the robot's
src/rpdiff/robot/floating_sphere_gripper.py:409
↓ 6 callersMethod_build_output_heads
Creates the output 2-layer MLPs used for predicting translation and rotation Args: pooled_dim (int): Input dimen
src/rpdiff/model/policy_feat_encoder.py:63
↓ 6 callersMethodinfer_relation_task
Uses the task name to call the respective method for generating a pose that's likely to satisfy the relation
src/rpdiff/utils/relational_policy/procedural_generation.py:49
↓ 6 callersMethodquery
(self, points)
src/rpdiff/utils/mesh_util/inside_mesh.py:36
↓ 6 callersFunctionrhl
(bounds)
src/rpdiff/data_gen/model_gen/syn_can_cabinet_gen.py:62
↓ 6 callersFunctionrhl
(bounds)
src/rpdiff/data_gen/model_gen/syn_container_gen.py:54
↓ 6 callersMethodsample_pose_perturbation
(self, parent_final_pcd: np.ndarray, child_final_pcd: np.ndarray, normal: bo
src/rpdiff/training/dataio_full_chunked.py:622
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
src/rpdiff/model/transformer/transformer.py:209
↓ 5 callersMethodapply_general_pcd_aug
(self, data: dict, parent_pcd: np.ndarray, child_pcd: np.ndarray, min_p_pts: in
src/rpdiff/training/dataio_full_chunked.py:577
↓ 5 callersFunctionconv3x3
(in_channels, out_channels, stride=1, padding=1, bias=True, groups=1)
src/rpdiff/model/encoder/unet.py:14
↓ 5 callersFunctioncoordinate2index
Normalize coordinate to [0, 1] for unit cube experiments. Corresponds to our 3D model Args: x (tensor): coordinate reso
src/rpdiff/model/encoder/common.py:231
↓ 5 callersMethodset_jpos
Move the arm to the specified joint position(s). Args: position (float or list): desired joint position(s).
src/rpdiff/robot/floating_sphere_gripper.py:170
↓ 4 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
src/rpdiff/model/transformer/transformer.py:20
↓ 4 callersMethodcompute_ik
Compute the inverse kinematics solution given the position and orientation of the end effector. Args: pos (list
src/rpdiff/robot/floating_sphere_gripper.py:591
↓ 4 callersMethoddecode
(self, memory, src_mask, tgt, tgt_mask)
src/rpdiff/model/transformer/nsm_transformer.py:30
↓ 4 callersMethodencode_scene_fea_grid
(self, p, c=None)
src/rpdiff/model/coarse_affordance.py:57
↓ 4 callersMethodforward
(self, model_input: dict, *args, **kwargs)
src/rpdiff/model/transformer/policy.py:594
↓ 4 callersFunctionlist2pose_stamped
(pose: List[float])
src/rpdiff/utils/util.py:187
↓ 4 callersFunctionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
src/rpdiff/utils/torch3d_util.py:467
↓ 4 callersFunctionnormalize_coordinate
Normalize coordinate to [0, 1] for unit cube experiments Args: p (tensor): point padding (float): conventional padding paramter
src/rpdiff/model/encoder/common.py:166
↓ 4 callersFunctionpose_stamped2list
(msg: PoseStamped)
src/rpdiff/utils/util.py:217
↓ 4 callersFunctionrand_high_low
(high, low)
src/rpdiff/data_gen/model_gen/parameterized_racks.py:30
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos=None)
src/rpdiff/model/transformer/nsm_transformer.py:145
↓ 3 callersFunctionadjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
src/rpdiff/training/train_util.py:16
↓ 3 callersFunctionangle_axis_to_rotation_matrix
Convert 3d vector of axis-angle rotation to 4x4 rotation matrix Args: angle_axis (Tensor): tensor of 3d vector of axis-angle rotations.
src/rpdiff/utils/torch_util.py:224
↓ 3 callersFunctioncheck_ckpt_load_latest
(ckpt_path: str)
src/rpdiff/eval/evaluate_rpdiff.py:40
↓ 3 callersMethodforward
input: B N 3 --------------------------- output: B G M 3 center : B G 3
src/rpdiff/utils/torch_scatter_utils.py:55
↓ 3 callersFunctionfps
Furthest point sampling. data B N 3 number int batch B*N 1 (batch index for each point in the flattened input)
src/rpdiff/utils/torch_scatter_utils.py:12
↓ 3 callersMethodgenerate_plane_features
(self, p, c, plane='xz')
src/rpdiff/model/scene_encoder.py:90
↓ 3 callersMethodget_formatted_current_state
(self)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:301
↓ 3 callersFunctionget_grad_norm
(model: torch.nn.Module)
src/rpdiff/training/train_util.py:72
↓ 3 callersMethodget_jpos
Return the joint position(s) of the arm. Args: joint_name (str, optional): If it's None, it will return
src/rpdiff/robot/floating_sphere_gripper.py:333
↓ 3 callersFunctionget_rpdiff_assets
()
src/rpdiff/utils/path_util.py:44
↓ 3 callersFunctionget_rpdiff_config
()
src/rpdiff/utils/path_util.py:12
↓ 3 callersFunctionlift
:param self: :param x: Shape (batch_size, num_points) :param y: :param z: :param intrinsics: :return:
src/rpdiff/utils/geometry.py:66
↓ 3 callersFunctionpad_flat_pcd_batch
(pcd, batch_idx, n_pts_per_batch, n_pts_des, pcd_default)
src/rpdiff/training/train_util.py:190
↓ 3 callersMethodpix2cont
(pixel_coord, img_size)
src/rpdiff/utils/seg_aug_util.py:25
↓ 3 callersFunctionpose_from_matrix
(matrix: np.ndarray)
src/rpdiff/utils/util.py:177
↓ 3 callersMethodprocess_model_input
Pre-processes the input point cloud and per-point features. Consists of scaling the 3D point clouds to be roughly ~unit bounding box
src/rpdiff/model/policy_feat_encoder.py:79
↓ 3 callersMethodprocess_model_output
(self, pooled_h: torch.FloatTensor)
src/rpdiff/model/policy_feat_encoder.py:142
↓ 3 callersFunctionquaternion_raw_multiply
Multiply two quaternions. Usual torch rules for broadcasting apply. Args: a: Quaternions as tensor of shape (..., 4), real part
src/rpdiff/utils/torch3d_util.py:369
↓ 3 callersMethodrot_affordance
(self, rot_model_input, mean_child=True, global_feat=False, global_feat_type='pc_pts')
src/rpdiff/model/coarse_affordance.py:87
↓ 3 callersFunctiontransform_pcd_torch
(pcd, transform)
src/rpdiff/utils/torch_util.py:39
↓ 2 callersMethod__init__
Arguments: in_channels: int, number of channels in the input tensor. Default is 3 for RGB images. dep
src/rpdiff/model/encoder/unet.py:140
↓ 2 callersMethod__init__
Args: feat_dim (int): Dimensionality of the input features (typically 3D for point clouds, or 5D for point clouds A and B - with
src/rpdiff/model/transformer/policy.py:520
↓ 2 callersFunction_angle_from_tan
Extract the first or third Euler angle from the two members of the matrix which are positive constant times its sine and cosine. Args:
src/rpdiff/utils/torch3d_util.py:211
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string
src/rpdiff/model/transformer/transformer.py:289
↓ 2 callersFunction_get_clones
(module, N)
src/rpdiff/model/transformer/transformer.py:272
↓ 2 callersFunction_index_from_letter
(letter: str)
src/rpdiff/utils/torch3d_util.py:244
↓ 2 callersMethod_make_full_skill_name
Internal function to create the full name of the skill that was used to transition to this node (combining the skill type and the sur
src/rpdiff/utils/point_cloud_fusion.py:636
↓ 2 callersMethodacq
(self)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:87
↓ 2 callersFunctionaxis_angle_to_matrix
Convert rotations given as axis/angle to rotation matrices. Args: axis_angle: Rotations given as a vector in axis angle form,
src/rpdiff/utils/torch3d_util.py:450
↓ 2 callersFunctionconv1x1
(in_channels, out_channels, groups=1)
src/rpdiff/model/encoder/unet.py:39
↓ 2 callersFunctioncrop_pcd_batch
(pcd, positions, box_length=0.18, use_extents=False, use_extents_pcd=None, fill_empty=True
src/rpdiff/training/train_util.py:110
↓ 2 callersFunctiondetach_dict
(in_dict)
src/rpdiff/training/pred_util.py:17
↓ 2 callersFunctioneuler_disc_pred_to_rotmat
(euler_disc_pred, bins_per_axis)
src/rpdiff/training/train_util.py:212
↓ 2 callersFunctionget_euler_onehot_torch
(euler_angles, bins_per_axis)
src/rpdiff/training/pred_util.py:38
↓ 2 callersMethodget_item
Args: index (int): Dataset index to sample embed_invalid (bool): If True, embed into interactive termainl if we hit a
src/rpdiff/training/dataio_full_chunked.py:367
↓ 2 callersFunctionget_linear_warmup_cosine_decay_sched
Decay arbitrary value with half-cycle cosine after warmup
src/rpdiff/training/train_util.py:38
↓ 2 callersFunctionget_rotation_grid_index_torch
(rot_mat, rot_grid)
src/rpdiff/training/pred_util.py:29
↓ 2 callersFunctionget_rpdiff_descriptions
()
src/rpdiff/utils/path_util.py:32
↓ 2 callersFunctionget_split_files
(file_list, n_test, n_val)
src/rpdiff/data_gen/post_process_demos.py:137
↓ 2 callersFunctionmake_bookshelf
Args: bl (float): Base length bw (float): Base width bt (float): Base thickness n_shelves (int): Number of shelve
src/rpdiff/data_gen/model_gen/bookshelf_dev.py:12
↓ 2 callersFunctionmake_container
Args: bl (float): Base length bw (float): Base width bt (float): Base thickness wt (float): Wall thickness
src/rpdiff/data_gen/model_gen/container_dev.py:13
↓ 2 callersFunctionmake_dataset_splits
(datadir, chunked=False)
src/rpdiff/data_gen/post_process_demos.py:174
↓ 2 callersFunctionmatrix_to_euler_angles
Convert rotations given as rotation matrices to Euler angles in radians. Args: matrix: Rotation matrices as tensor of shape (..., 3,
src/rpdiff/utils/torch3d_util.py:253
↓ 2 callersFunctionparse_intrinsics
(intrinsics)
src/rpdiff/utils/geometry.py:48
↓ 2 callersFunctionparse_intrinsics
(intrinsics)
src/rpdiff/utils/geometry_np.py:4
↓ 2 callersFunctionpreprocess_point_cloud
Preprocess point cloud by applying a voxel-based downsampling, estimating the point cloud normals, and computing the FPFH features that are us
src/rpdiff/utils/point_cloud_fusion.py:14
↓ 2 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as ten
src/rpdiff/utils/torch3d_util.py:41
↓ 2 callersMethodrel
(self)
src/rpdiff/utils/pb2mc/pybullet_meshcat.py:92
↓ 2 callersMethodrescale
(self, array)
src/rpdiff/utils/mesh_util/inside_mesh.py:113
↓ 2 callersMethodreset_joint_state
Reset the state of the joint. It's best only to do this at the start, while not running the simulation. It will overrides all
src/rpdiff/robot/floating_sphere_gripper.py:316
↓ 2 callersMethodset_jvel
Move the arm with the specified joint velocity(ies). Args: velocity (float or list): desired joint velocity(ies).
src/rpdiff/robot/floating_sphere_gripper.py:259
↓ 2 callersMethodset_predict_offset
(self, predict_offset)
src/rpdiff/model/policy_feat_encoder.py:41
next →1–100 of 592, ranked by callers