Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The RecordInterval Problem #1414

Open
jinlukang1 opened this issue Sep 22, 2018 · 5 comments
Open

The RecordInterval Problem #1414

jinlukang1 opened this issue Sep 22, 2018 · 5 comments

Comments

@jinlukang1
Copy link

I set my RecordInterval:6.00, but when I check my AirSim File, I found that 8 images were recorded in one second of 6 seconds, and when I ran again, it became 4 images, and sometimes 1 and sometimes 2, why?

this is my setting.json

{
	"SettingsVersion": 1.2,
	"SimMode": "ComputerVision",
	"ViewMode": "",
	"Recording": {
		"RecordOnMove": false,
		"RecordInterval": 6.00,
		"Cameras": [
			{ "CameraName": "0", "ImageType": 0, "PixelsAsFloat": false, "Compress": true },
			{ "CameraName": "0", "ImageType": 5, "PixelsAsFloat": false, "Compress": true }
		]
	},
	"CameraDefaults": {
	"CaptureSettings": [
		{
		  "ImageType": 0,
		  "Width": 1440,
		  "Height": 900,
		  "FOV_Degrees": 90,
		  "AutoExposureSpeed": 100,
		  "MotionBlurAmount": 0
		},
		{
		  "ImageType": 5,
		  "Width": 1440,
		  "Height": 900,
		  "FOV_Degrees": 90,
		  "AutoExposureSpeed": 100,
		  "MotionBlurAmount": 0
		}
	]
	},
	"SegmentationSettings": {
	"InitMethod": "CommonObjectsRandomIDs",
	"MeshNamingMethod": "OwnerName",
	"OverrideExisting": false
  }
}

Can Someone help me?

@sytelus
Copy link
Contributor

sytelus commented Oct 17, 2018

Just tested this and it works as expected. At each interval one image for each camera is captured.

Relevant code: https://github.com/Microsoft/AirSim/blob/master/Unreal/Plugins/AirSim/Source/Recording/RecordingThread.cpp#L81

@madratman
Copy link
Contributor

@jinlukang1 was this resolved?

@jinlukang1
Copy link
Author

No, I don't know how to solve this problem yet.
So I just close it after I have recorded it So when I run it again, it's right again.

@royuqp
Copy link

royuqp commented Jun 26, 2019

Hi, I found that this problem occurs when you begin play more than once on the editor and then start recording. Each time you begin play, "Cameras" setting of "Recording" written in settings.json is internally accumulated and used for recording.

The following simple source code modification will fix it :)

static void loadRecordingSetting(const Settings& settings_json, RecordingSetting& recording_setting)
{
recording_setting.requests.clear(); // <- inserted
Settings recording_json;
...

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

@stale stale bot added the stale label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants