CodexLabsLLC / Colosseum

Open source simulator for autonomous robotics built on Unreal Engine with support for Unity
https://codexlabsllc.github.io/Colosseum/
Other
335 stars 105 forks source link

The "t_camera_car" is not consistent #70

Closed brz-hub closed 10 months ago

brz-hub commented 10 months ago

Question

Is the "Pos" and "Q" (Pose) in the generated file "airsim_rec.txt" the ground truth values for the vehicle or the camera? Regardless of whose ground truth it is, I expect the result of calculating "t_camera_car" to be a constant value. However, the calculation result is not consistent.

Include context on what you are trying to achieve

I added the following code in the function "getRecordFileLine" in "PawnSimApi.cpp": /////////////// auto Cam_Pose = getCamera("0")->getCameraInfo().pose; ss << Cam_Pose.position.x() << "\t" << Cam_Pose.position.y() << "\t" << Cam_Pose.position.z(); ///////////////// This code is used to record the pose of the "center_front" camera. Later, I read the poses of the car and the camera to calculate "t_camera_car". I plotted the t_camera_car using Python, and the result was a circular trajectory.

Context details

Include details of what you already did to find answers

3d xy2

brz-hub commented 10 months ago

Sorry, it was my mistake. The airsim_recv.txt records the transformations T_world_camera and T_world_car, but I mistakenly thought it was T_camera_world and T_car_world. the code is No problem. t_car_cam