The camera shooting interval is inconsistent with the time interval of the saved images? #4723
Unanswered
Kaiqi-Chen
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, everyone
I use windows 10 and Airsim1.6 to record the datasets, but I encountered a problem: I set the camera to 0.033 in airsim's settings.json, and the image interval of the saved image is not 0.033。
settings.json:
`{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
"SettingsVersion": 1.2,
"SimMode": "Car",
"ClockSpeed": 1.0,
"SpeedUnitFactor": 1.0,
"SpeedUnitLabel": "m/s",
"Recording": {
"RecordOnMove": false,
"RecordInterval": 0.033,
"Cameras": [
{
"CameraName": "0",
"ImageType": 0,
"PixelsAsFloat": false,
"VehicleName": "",
"Compress": true
},
{
"CameraName": "0",
"ImageType": 1,
"PixelsAsFloat": false,
"VehicleName": "",
"Compress": true
},
{
"CameraName": "0",
"ImageType": 7,
"PixelsAsFloat": false,
"VehicleName": "",
"Compress": true
}
]
},
"CameraDefaults": {
"CaptureSettings": [
},
"SubWindows": [
{
"WindowID": 0,
"CameraName": "0",
"ImageType": 1,
"VehicleName": "",
"Visible": false
},
{
"WindowID": 1,
"CameraName": "0",
"ImageType": 0,
"VehicleName": "",
"Visible": false
},
{
"WindowID": 2,
"CameraName": "0",
"ImageType": 5,
"VehicleName": "",
"Visible": false
}
]
}
`
Some key codes about saving images:
`
responses = client.simGetImages([
airsim.ImageRequest("0", airsim.ImageType.Infrared, False, False),
airsim.ImageRequest("0", airsim.ImageType.Scene, False, False),
#airsim.ImageRequest("0", airsim.ImageType.DepthVis, True),
airsim.ImageRequest('0', airsim.ImageType.DepthPlanner, True, False)
])
im=responses[0]
RgbIm=responses[1]
DepIm=responses[2]
`
times.txt:
1666231126.984170
1666231127.284790
1666231127.461651
1666231127.644370
1666231127.811822
1666231127.983363
1666231128.152054
1666231128.316744
1666231128.481791
1666231128.658419
rgb.txt:
1666231126.984170 rgb/000000.png
1666231127.284790 rgb/000001.png
1666231127.461651 rgb/000002.png
1666231127.644370 rgb/000003.png
1666231127.811822 rgb/000004.png
1666231127.983363 rgb/000005.png
1666231128.152054 rgb/000006.png
1666231128.316744 rgb/000007.png
1666231128.481791 rgb/000008.png
1666231128.658419 rgb/000009.png
1666231128.823299 rgb/000010.png
1666231128.989749 rgb/000011.png
1666231129.147758 rgb/000012.png
depth.txt:
1666231126.985175 depth/000000.png
1666231127.285807 depth/000001.png
1666231127.462377 depth/000002.png
1666231127.645072 depth/000003.png
1666231127.812604 depth/000004.png
1666231127.984161 depth/000005.png
1666231128.152761 depth/000006.png
So I don't know where I am going wrong.
Thanks in advance guys!!!!!
Beta Was this translation helpful? Give feedback.
All reactions