要获取 AirSim 中相机的外参,你需要查看 AirSim 的设置或配置文件。在 AirSim 的设置文件中,相机的位置和方向通常是在 "Cameras"
部分定义的。
AirSim 设置文件(settings.json
)中的相机部分可能看起来像这样:
"Cameras": {
"front_left": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 640,
"Height": 480,
"FOV_Degrees": 90,
"TargetGamma": 1.0
}
],
"X": 0.26,
"Y": -0.0475,
"Z": 0,
"Pitch": 0,
"Roll": 0,
"Yaw": 0
},"front_right": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 640,
"Height": 480,
"FOV_Degrees": 90,
"TargetGamma": 1.0
}
],
"X": 0.26,
"Y": 0.0475,
"Z": 0,
"Pitch": 0,
"Roll": 0,
"Yaw": 0
},
"bottom_center": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 640,
"Height": 480,
"FOV_Degrees": 90,
"TargetGamma": 1.0
}
],
"X": 0.0,
"Y": 0.0,
"Z": 0.1,
"Pitch": -90,
"Roll": 0,
"Yaw": 0
}
}