RobotWebTools / webrtc_ros

Streaming of ROS Image Topics using WebRTC
Other
131 stars 52 forks source link

Controlling frame size going from system to web #43

Open mjsobrep opened 4 years ago

mjsobrep commented 4 years ago

Is there a way to control the size of the images going out from the robot to the web?

It is often the case that we want large image files to be captured on the robot and processed/bagged and sent to a web interface. The web interface doesn't need the full size images and sending the full sized images costs a lot in encoding and bandwidth.

It seems like resizing is done here given parameters from AdaptFrame here, but I can't figure out what determines the parameters given by AdaptFrame.

Ideally this is something that could be controlled from the remote web interface. But it looks like no video size or bandwidth constraints are passed when the remote connection is added.

Is the best way to go then to resize in an extra node on the robot and pass the smaller images into the webrtc_ros system or is there a way to do it directly in webrtc_ros?