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

Full-Resolution Camera Downloads #331

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Geeoon
Copy link
Member

@Geeoon Geeoon commented Jul 18, 2024

Currently, clicking the download button will just download the client-side H264 compressed stream, which is fairly low quality. This PR adds the ability to request full-resolution jpg images from the rover, and if the camera is available, a base64 encoded image will be sent to mission control at a much higher resolution than the normal client-side video stream.

Related with huskyroboticsteam/mission-control#71

Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Overall looks good, just a note that I don't think there's a point in adding a method to the camera stream task. We don't care if the stream has been opened or not, we just want to grab the latest frame from a given camera.

Also note that we should properly handle the case where the returned frame datapoint is empty.

src/network/MissionControlTasks.cpp Outdated Show resolved Hide resolved
src/network/MissionControlTasks.cpp Outdated Show resolved Hide resolved
@Geeoon Geeoon requested a review from abhaybd July 18, 2024 21:38
@abhaybd
Copy link
Member

abhaybd commented Jul 20, 2024

This looks great, will merge once the corresponding MC pr has been tested and merged.

@Geeoon Geeoon force-pushed the full-resolution-camera-report branch from 1521299 to 00739b3 Compare July 21, 2024 02:51
@abhaybd
Copy link
Member

abhaybd commented Aug 15, 2024

Didn't get to this during CIRC, Hutton can handle review and merging.

Copy link
Contributor

@huttongrabiel huttongrabiel left a comment

Choose a reason for hiding this comment

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

ignore this just a demo

@@ -18,11 +18,13 @@ constexpr const char* MOTOR_POSITION_REQ_TYPE = "motorPositionRequest";
constexpr const char* JOINT_POSITION_REQ_TYPE = "jointPositionRequest";
constexpr const char* CAMERA_STREAM_OPEN_REQ_TYPE = "cameraStreamOpenRequest";
constexpr const char* CAMERA_STREAM_CLOSE_REQ_TYPE = "cameraStreamCloseRequest";
constexpr const char* CAMERA_FRAME_REQ_TYPE = "cameraFrameRequest";
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets try to make these frozen::string

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.

3 participants