karlpauwels / simtrack

A simulation-based framework for tracking
BSD 3-Clause "New" or "Revised" License
102 stars 40 forks source link

Kinect V2 - incorrect depth or image size error when switching cameras #13

Closed MannyKayy closed 7 years ago

MannyKayy commented 8 years ago

Simtrack crashes whenever there is an attempt to switch between cameras with different resolutions.. Specifically between the camera's of the PR2 and those of the Kinect V2..

Depth error terminate called after throwing an instance of 'std::runtime_error' what(): MultiRigidTracker::convertDepth:: incorrect depth size

Image error terminate called after throwing an instance of 'std::runtime_error' what(): MultiRigidTracker::convertImage:: incorrect image size

karlpauwels commented 8 years ago

This is expected behavior. To increase performance, all GPU storage is allocated at creation time. This depends on the image size. You can try creating separate trackers (and maybe also detectors) for the PR2 and for the Kinect V2. This should work but will require more memory.