HaozheQi / P2B

P2B: Point-to-Box Network for 3D Object Tracking in Point Clouds
189 stars 36 forks source link

some questions about Calibration point cloud #13

Closed DualMoonBird closed 4 years ago

DualMoonBird commented 4 years ago

def getPCandBBfromPandas(self, box, calib): center = [box["x"], box["y"] - box["height"] / 2, box["z"]] size = [box["width"], box["length"], box["height"]] orientation = Quaternion( axis=[0, 1, 0], radians=box["rotation_y"]) * Quaternion( axis=[1, 0, 0], radians=np.pi / 2) Using this function to convert point cloud coordinates to camera coordinates,the orientation use to move the cut point cloud to the origin of the camera coordinate system and turn it in a positive direction,I think orientation = Quaternion(axis=[0, 1, 0], radians=box["rotation_y"]) is ok,so why you choose to multiply Quaternion(axis=[1, 0, 0], radians=np.pi / 2)

freshwk commented 3 years ago

hello,i have the same question with you.Do you know why?