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

Revert "Disable cameras after fetching images, projection matrix (#2881)" #3064

Merged
merged 1 commit into from
Oct 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Unreal/Plugins/AirSim/Source/PIPCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ msr::airlib::ProjectionMatrix APIPCamera::getProjectionMatrix(const APIPCamera::
else
mat.setTo(Utils::nan<float>());

// Disable camera after our work is done
const_cast<APIPCamera*>(this)->setCameraTypeEnabled(image_type, false);

return mat;
}

Expand Down
4 changes: 0 additions & 4 deletions Unreal/Plugins/AirSim/Source/UnrealImageCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ void UnrealImageCapture::getSceneCaptureImage(const std::vector<msr::airlib::Ima
response.width = render_results[i]->width;
response.height = render_results[i]->height;
response.image_type = request.image_type;

// Disable camera after fetching images
APIPCamera* camera = cameras_->at(request.camera_name);
camera->setCameraTypeEnabled(request.image_type, false);
}

}
Expand Down