microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.39k stars 4.57k forks source link

Regarding /collecting data from stationary cameras #4140

Open cpatel245 opened 2 years ago

cpatel245 commented 2 years ago

Question

What's your question?

Hello, I want to prepare the data-set in the indoor setting. The scene would contain two-three people. Requirements:

Include context on what you are trying to achieve

Context details

rajat2004 commented 2 years ago

External cameras might fit your usecase of having stationary cameras, added in #3320. Have a look at the external_camera.py script also. Note that the Recording feature (using R button, or recording API) currently doesn't support external cameras

By skeleton data, you mean the "ground truth" of the pose of the person? There isn't any such capability in AirSim currently, but if there are ways to get that through UE4, then it might be possible to modify the camera implementations to support that, not a trivial task though

cpatel245 commented 2 years ago

Thanks @rajat2004 ,

I am currently using Computer Vision mode, and I also need to use depth sensors to generate point clouds from the captured images and depth sensors. But it seems, CV mode does not support adding sensors, since it has to be mounted on a vehicle.

Would it be possible to add sensors in the environment without any vehicles (let's say with the camera itself, so that we can somehow mimic RGB-D camera configs)?

rajat2004 commented 2 years ago

Hmm, addition of sensors to the CV vehicle would probably be a good feature. By depth sensors, you mean Lidar right, since you can get depth images from external cameras. One possibility would be using multirotor with ExternalPhysics as the physics engine, then you can have the vehicle fixed at some point without any issue.

As a longer-term improvements which can be done in AirSim, I think #4110 is relevant here, it'll likely require (or good to have) support of sensors on CV vehicle as well. I'll also think on this

Edit: Actually, I'll need to check that sensors don't work on CV vehicle, you're verified that it doesn't work right?

cpatel245 commented 2 years ago

I have not used vehicles in CV model since this documentation says so. But as you mentioned, it might be possible to add Multi rotor and fix them at some point.

I wanted to add distance sensor not lidar.

Additionally I tried recording depth and RGB (Scene) images, but simulation crashes while recording Scene Images, Depth images are recorded without any issues. (Already checking existing issues related to this) This error occurs in RenderRequest.cpp

image

rajat2004 commented 2 years ago

That seems misleading, you can specify and create CV vehicle, maybe it was added after the documentation was written. Try specifying a vehicle similar to Multirotor or Car, with the vehicle type as ComputerVision