-
Notifications
You must be signed in to change notification settings - Fork 0
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 #71
base: main
Are you sure you want to change the base?
Conversation
4880522
to
470151e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good stuff, some comments
} else if (message.type === "cameraFrameReport") { | ||
if (message.data !== "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be combined into else if (message.type === ... && message.data === ...)
document.body.appendChild(link); | ||
link.click(); | ||
document.body.removeChild(link); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing empty line
README.md
Outdated
{ | ||
type: "cameraFrameReport", | ||
camera: string, | ||
data: string | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under what circumstances would data
be null? If there's no data, is it simpler to just not send back a camera frame report?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor change needed. Besides that, this looks good and I'll test and merge this when I'm back in town in a couple weeks.
README.md
Outdated
@@ -380,6 +380,38 @@ Sent from the rover server to inform Mission Control of a single frame of a came | |||
- `camera` - the name of the camera: `mast|hand|wrist` | |||
- `data` - the raw h264 frame data, or `null` if no data is available | |||
|
|||
## Camera Frame Request | |||
### Description | |||
Sent from Mission Control to instruct the rover server to send a Camera Frame Report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super minor, but mention how this works with the report. I.e. "If camera specifies a valid camera stream, the rover will respond with a camera frame report containing the latest frame from that camera."
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/Resurgence#331