qbo_webi/src/otherFunctions/mjpegServerFunctions/ 定义MjpegServerFunctions类。生成//mjpegServer/getUrlFrom.
以下为可选的url.
self.urls = {'leftEye':'/image/snapshot?topic=/stereo/left/image_raw&quality=',
'rightEye':'/image/snapshot?topic=/stereo/right/image_raw&quality=',#'rightEye':'/image/snapshot?topic=/camera/rgb/image_mono&quality=',
'objects':'/image/snapshot?topic=/qbo_stereo_selector/viewer&quality=',
'faces':'/image/snapshot?topic=/qbo_face_tracking/viewer&quality=',
'live_leftEye':'/image/stream?topic=/stereo/left/image_raw&quality=',
'live_rightEye':'/image/stream?topic=/stereo/right/image_raw&quality=',
'live_3d':'/image/stream?topic=/stereo_anaglyph&quality=',
'live_objects':'/image/stream?topic=/qbo_stereo_selector/viewer&quality=',
'live_faces':'/image/stream?topic=/qbo_face_tracking/viewer&quality=',
获取方法:这里要注意,真正的服务器端在src/mjpeg/mjpeg.py中。当中对客户端的/image/snapshot image/stream等事件进行应答。
比如在cameraCheck中,前台调用ajax post step方法。在step中会立马返回imgSrc为相应目录的template.render。浏览器端即可获取。
比如在teleoperation中,前台使用iframeTeleoperation中设置属性为image/stream,服务器端。
摘录以下有效url: 注意有的是get,有的是post。同时需要注意参数匹配。否则无法访问。
__init__ [Mouth]
__init__ [TeleoperationManager]
setMouth [TeleoperationManager]
unload [TeleoperationManager]
index [TeleoperationManager]
getAuth [TeleoperationManager]
getAuthBot [TeleoperationManager]
startSIPService [TeleoperationManager]
stopSIPService [TeleoperationManager]
mobile_startSIPServer [TeleoperationManager]
mobile_stopSIPServer [TeleoperationManager]
mobile_setIpSip [TeleoperationManager]
mobile_getUserSipId [TeleoperationManager]
mobile_getBotSipId [TeleoperationManager]
mobile_endCall [TeleoperationManager]
teleoperationJs [TeleoperationManager]
move [TeleoperationManager]
head [TeleoperationManager]
changeHeadMoveType [TeleoperationManager]
changeVideoSize [TeleoperationManager]
changeMouth [TeleoperationManager]
head_to_zero_position [TeleoperationManager]
speak [TeleoperationManager]
activate_3d [TeleoperationManager]
sendSpeed [TeleoperationManager]
headMoveType1 [TeleoperationManager]
headMoveType2 [TeleoperationManager]
sendHeadPose [TeleoperationManager]