How to set AutoFocus on RGB camera? Captures are out of focus

Thank you! It seems it was a problem of the OS 1.5.0 or a combination of it with old SDKs. With the latest OS the autofocus issue seems solved even during capture sessions.