b5a00e15cbb75823327f1e58c2f586535e68f0ea,data/kitti_raw_loader.py,KittiRawLoader,collect_scenes,#KittiRawLoader#Any#,130

Before Change


                if scale is None:
                    scale = np.cos(lat * np.pi / 180.)

                R, t = pose_from_oxts_packet(metadata[:6], scale, imu2cam)
                if origin is None:
                    origin = t
                if orientation is None:

After Change


            origin = None
            imu2velo = read_calib_file(drive.parent/"calib_imu_to_velo.txt")
            velo2cam = read_calib_file(drive.parent/"calib_velo_to_cam.txt")
            cam2cam = read_calib_file(drive.parent/"calib_cam_to_cam.txt")

            velo2cam_mat = transform_from_rot_trans(velo2cam["R"], velo2cam["T"])
            imu2velo_mat = transform_from_rot_trans(imu2velo["R"], imu2velo["T"])
            cam_2rect_mat = transform_from_rot_trans(cam2cam["R_rect_00"], np.zeros(3))

            imu2cam = cam_2rect_mat @ velo2cam_mat @ imu2velo_mat

            for n, f in enumerate(oxts):
                metadata = np.genfromtxt(f)
                speed = metadata[8:11]
                scene_data["speed"].append(speed)
                scene_data["frame_id"].append("{:010d}".format(n))
                lat = metadata[0]

                if scale is None:
                    scale = np.cos(lat * np.pi / 180.)

                pose_matrix = pose_from_oxts_packet(metadata[:6], scale)
                if origin is None:
                    origin = pose_matrix

                odo_pose = imu2cam @ np.linalg.inv(origin) @ pose_matrix @ np.linalg.inv(imu2cam)
                scene_data["pose"].append(odo_pose[:3])

            sample = self.load_image(scene_data, 0)
            if sample is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ClementPinard/SfmLearner-Pytorch
Commit Name: b5a00e15cbb75823327f1e58c2f586535e68f0ea
Time: 2018-04-20
Author: clement.pinard@parrot.com
File Name: data/kitti_raw_loader.py
Class Name: KittiRawLoader
Method Name: collect_scenes


Project Name: sony/nnabla
Commit Name: db91a158507cd9abde7bd2a714f013007f171a73
Time: 2019-05-21
Author: Takuya.Narihira@sony.com
File Name: python/src/nnabla/normalization_functions.py
Class Name:
Method Name: batch_normalization


Project Name: geomstats/geomstats
Commit Name: b76dcd22dfb638b31e1bc5f51297173515945012
Time: 2020-01-17
Author: yann.thanwerdas@gmail.com
File Name: geomstats/geometry/spd_matrices_space.py
Class Name: SPDMetricAffine
Method Name: log