How can i save double-eye rgb images and scene depth in local path

i’m a beginner and want to create a couple of cameras(like left-right eyes) which can save two rgb images and scene depth in local path. But i try a lot of ways and fail. Thank you for answers!