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

Camera node holistic record & replay #1117

Open
wants to merge 18 commits into
base: v3_visualizer_support
Choose a base branch
from

Conversation

asahtik
Copy link
Contributor

@asahtik asahtik commented Sep 2, 2024

No description provided.

@asahtik asahtik changed the title Camera node Holistic record & replay Camera node holistic record & replay Sep 2, 2024
Copy link
Collaborator

@moratom moratom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sebastjan!

Let's add an example or two in python as well and move the cpp one to be cross platform, but generally LGTM.

Comment on lines 186 to 203
std::pair<size_t, size_t> Camera::getMaxRequestedSize() const {
uint32_t maxWidth = 0;
uint32_t maxHeight = 0;
for(const auto& outputRequest : pimpl->outputRequests) {
if(outputRequest.capability.size.value) {
if(const auto* size = std::get_if<std::pair<uint32_t, uint32_t>>(&(*outputRequest.capability.size.value))) {
maxWidth = std::max(maxWidth, size->first);
maxHeight = std::max(maxHeight, size->second);
} else {
throw std::runtime_error("Unsupported size value");
}
}
}
if(maxWidth == 0 || maxHeight == 0) {
throw std::runtime_error("Invalid max width or height");
}
return std::make_pair(maxWidth, maxHeight);
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should actually record maxSize, that is full FOV.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove before merge IMO

@asahtik asahtik changed the base branch from v3_develop to v3_visualizer_support October 28, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants