MCPcopy Create free account

hub / github.com/PRBonn/ir-mcl / functions

Functions92 in github.com/PRBonn/ir-mcl

↓ 23 callersMethodupdate
Update the scatter plot.
mcl/visualizer.py:166
↓ 3 callersMethod__init__
(self)
nof/criteria/loss.py:8
↓ 3 callersFunctionabs_error
(pred, gt, valid_mask=None)
nof/criteria/metrics.py:5
↓ 3 callersFunctionacc_thres
(pred, gt, valid_mask=None)
nof/criteria/metrics.py:13
↓ 3 callersFunctiondecode_batch
(batch)
nof/nof_utils.py:131
↓ 3 callersFunctionget_rays
Get ray origin and normalized directions in world coordinate for all beams in one scan. :param directions: ray directions in the lidar coord
nof/dataset/ray_utils.py:31
↓ 3 callersFunctionload_ckpt
(model, ckpt_path, model_name='model', prefixes_to_ignore=[])
nof/nof_utils.py:124
↓ 3 callersFunctionrender_rays
Render rays by computing the output of @model applied on @rays :param model: NOF model, defined by models.NOF() :param embedding_xy: emb
nof/render.py:72
↓ 3 callersFunctionsample
(b)
mcl/motion_model.py:13
↓ 2 callersMethodcompute_errs
Calculate the errors.
mcl/visualizer.py:153
↓ 2 callersFunctioneval_points
(pred_pts, gt_pts, valid_mask=None)
nof/criteria/metrics.py:23
↓ 2 callersMethodforward
(self, rays)
train.py:56
↓ 2 callersFunctionget_ray_directions
Get the direction of laser beam in lidar coordinate. :param angle_min: the start angle of one scan (scalar) :param angle_max: the end an
nof/dataset/ray_utils.py:11
↓ 2 callersFunctionload_data
(pose_path, max_beams=None)
utils.py:16
↓ 2 callersMethodload_scan
(self, range_readings)
nof/dataset/ipb2dmapping.py:83
↓ 2 callersMethodmotion_model
(self, particles: np.ndarray, control: np.ndarray)
mcl/srrg_utils/pf_library/pf_utils.py:9
↓ 2 callersFunctionnn_correspondance
for each vertex in verts2 find the nearest vertex in verts1 Args: nx3 np.array's Returns: ([indices], [distances])
nof/criteria/pointcloud_metrics.py:5
↓ 2 callersFunctionodom2matrix
Generate 2D transformation from pose, the rotation counterclockwise about the origin :param pose: shape: (3,) :return:
mcl/motion_model.py:117
↓ 2 callersMethodresample
(self, particles)
mcl/srrg_utils/pf_library/pf_utils.py:13
↓ 2 callersFunctionsummary_loc
(loc_results, start_idx, numParticles, timestamps, result_dir, gt_file, init_time_thres=20, us
utils.py:186
↓ 1 callersMethod__init__
The model of NOF. :param feature_size: number of hidden units in each layer :param in_channels_xy: number of input channels
nof/networks/models.py:50
↓ 1 callersMethod_get_rays
(self, Ts_w2l)
mcl/rendering.py:138
↓ 1 callersFunctionconvert2tum
(timestamps, poses)
utils.py:118
↓ 1 callersFunctionerror_metrics
(pred, gt, rays, valid_mask_gt)
eval.py:46
↓ 1 callersFunctioneval_pts
(pts1, pts2, threshold=0.5)
nof/criteria/pointcloud_metrics.py:32
↓ 1 callersFunctionevaluate_APE
(est_poses, gt_poses, use_converge=False)
utils.py:135
↓ 1 callersFunctionextract_model_state_dict
(ckpt_path, model_name='model', prefixes_to_ignore=[])
nof/nof_utils.py:106
↓ 1 callersFunctiongen_commands_srrg
Create commands from the Odometer. input: odometer reading output: commands for each frame.
mcl/motion_model.py:139
↓ 1 callersFunctionget_args
()
loc_demo.py:10
↓ 1 callersFunctionget_args
()
main.py:25
↓ 1 callersFunctionget_est_poses
(all_particles, start_idx, numParticles)
utils.py:96
↓ 1 callersMethodget_estimates
calculate the estimated poses.
mcl/visualizer.py:142
↓ 1 callersMethodget_grid
(self)
mcl/rendering.py:111
↓ 1 callersMethodget_laser_rays
(self, pose)
mcl/rendering.py:45
↓ 1 callersMethodget_laser_rays
(self, Ts_w2l)
mcl/rendering.py:154
↓ 1 callersFunctionget_learning_rate
(optimizer)
nof/nof_utils.py:87
↓ 1 callersFunctionget_optimizer
(hparams, parameters)
nof/nof_utils.py:92
↓ 1 callersFunctionget_opts
()
eval.py:13
↓ 1 callersFunctionget_opts
()
nof/nof_utils.py:9
↓ 1 callersFunctioninference
Helper function that performs model inference. :param model: NOF model :param embedding_xy: position embedding module :param samples
nof/render.py:13
↓ 1 callersFunctioninit_particles_pose_tracking
Initialize particles with a noisy initial pose. Here, we use ground truth pose with noises defaulted as [±5 meters, ±5 meters, ±π/6 rad] to m
mcl/initialization.py:35
↓ 1 callersFunctioninit_particles_uniform
Initialize particles uniformly. Args: map_size: size of the map. numParticles: number of particles. Return: parti
mcl/initialization.py:14
↓ 1 callersMethodload_data
(self)
nof/dataset/ipb2dmapping.py:37
↓ 1 callersFunctionmatrix2odom
(T)
mcl/motion_model.py:132
↓ 1 callersFunctionparticles2pose
Convert particles to the estimated pose accodring to the particles' distribution :param particles: 2-D array, (N, 4) shape :return: a est
utils.py:74
↓ 1 callersFunctionplot_traj_result
Plot the final localization trajectory. Args: results: localization results including particles in every timestamp. poses: ground tru
mcl/vis_loc_result.py:19
↓ 1 callersMethodrender
(self, poses)
mcl/rendering.py:57
↓ 1 callersFunctionrender_rays_grid
Render rays from neural occupancy grid, only used for accelerating MCL :param grid: occupancy grid from NOF :param map_size: the size of
nof/render.py:129
↓ 1 callersMethodsetup_plot
Initial drawing of the scatter plot.
mcl/visualizer.py:103
↓ 1 callersFunctionsummary_errors
(errors)
eval.py:61
↓ 1 callersFunctionvis_offline
Visualize localization results offline. Args: results: localization results including particles in every timestamp. poses: ground tru
mcl/vis_loc_result.py:153
MethodMotionModelAndResample
mcl/srrg_utils/pf_library/pybind/pf_library.cpp:5
FunctionPYBIND11_MODULE
mcl/srrg_utils/pf_library/pybind/pf_library_pybind.cpp:16
Method__getitem__
(self, index)
nof/dataset/ipb2dmapping.py:99
Method__init__
(self, hparams)
train.py:27
Method__init__
(self, scans, params, map_size)
mcl/sensor_model.py:16
Method__init__
Initialization: mapsize: the size of the given map poses: ground truth poses. map_poses: poses used to generate the map.
mcl/visualizer.py:19
Method__init__
(self, name, sourcedir="")
mcl/setup.py:12
Method__init__
(self, directions, near, far, ckpt_path, L_pos=10, feature_size=256, use_skip=True,
mcl/rendering.py:21
Method__init__
(self, directions, near, far, ckpt_path, L_pos=10, feature_size=256, use_skip=True, N_samples
mcl/rendering.py:81
Method__init__
(self)
mcl/srrg_utils/pf_library/pf_utils.py:6
Method__init__
(self, in_channels, N_freq, logscale=True)
nof/networks/models.py:21
Method__init__
(self, root_dir, split='train')
nof/dataset/ipb2dmapping.py:27
Method__init__
(self)
nof/criteria/loss.py:25
Method__init__
(self)
nof/criteria/loss.py:35
Method__init__
(self)
nof/criteria/loss.py:45
Method__len__
(self)
nof/dataset/ipb2dmapping.py:124
Functionbind_vector_without_repr
mcl/srrg_utils/pf_library/pybind/stl_vector_eigen.h:17
Methodbuild_extension
(self, ext)
mcl/setup.py:18
Methodconfigure_optimizers
(self)
train.py:66
Methodforward
Embeds x to (x, sin(2^k x), cos(2^k x), ...) :param x: (B, self.in_channels) :return out: (B, self.N_freq * self.in_channels
nof/networks/models.py:33
Methodforward
Encodes input position (xy) to occupancy probability (p_occ) :param x: the embedded vector of a 2D position (shape:
nof/networks/models.py:104
Methodforward
(self, pred, target, valid_mask=None)
nof/criteria/loss.py:12
Functiongen_commands
Create commands out of the ground truth with noise. input: ground truth poses and noisy coefficients output: commands for each f
mcl/motion_model.py:75
Functiongen_motion_reckon
Generate motion reckon only for comparison.
mcl/motion_model.py:160
Functionmotion_model
MOTION performs the sampling from the proposal. distribution, here the rotation-translation-rotation motion model input: particles: t
mcl/motion_model.py:22
Methodpredict
mcl/srrg_utils/pf_library/pybind/pf_library.cpp:10
Methodprepare_data
(self)
train.py:41
Functionpy_array_to_vectors_double
mcl/srrg_utils/pf_library/pybind/stl_vector_eigen.h:40
Functionpy_array_to_vectors_int
mcl/srrg_utils/pf_library/pybind/stl_vector_eigen.h:55
Functionpybind_eigen_vector_of_vector
mcl/srrg_utils/pf_library/pybind/stl_vector_eigen.h:75
Methodrender
(self, Ts_w2l)
mcl/rendering.py:168
Methodresample_uniform
mcl/srrg_utils/pf_library/pybind/pf_library.cpp:33
Functionsave_loc_result
Save the intermediate plots of localization results. Args: frame_idx: index of the current frame. map_size: size of the map. po
mcl/vis_loc_result.py:114
Methodt2v
mcl/srrg_utils/pf_library/pybind/pf_library.cpp:59
Methodtrain_dataloader
(self)
train.py:48
Methodtraining_step
(self, batch, batch_idx)
train.py:76
Methodupdate_offline
Update the scatter plot.
mcl/visualizer.py:225
Methodupdate_weights
(self, particles, frame_idx, T_b2l=None)
mcl/sensor_model.py:46
Methodv2t
mcl/srrg_utils/pf_library/pybind/pf_library.cpp:66
Methodval_dataloader
(self)
train.py:52
Methodvalidation_step
(self, batch, batch_idx)
train.py:99