|
Fawkes API
Fawkes Development Version
|
Pan/tilt/zoom camera request processor. More...
#include "webview-ptzcam-processor.h"

Public Member Functions | |
| WebviewPtzCamRequestProcessor (std::string base_url, std::string image_id, std::string pantilt_id, std::string camctrl_id, std::string power_id, std::string camera_id, float pan_increment, float tilt_increment, unsigned int zoom_increment, float post_powerup_time, std::map< std::string, std::tuple< std::string, float, float, unsigned int >> presets, fawkes::BlackBoard *blackboard, fawkes::Logger *logger) | |
| Constructor. More... | |
| virtual | ~WebviewPtzCamRequestProcessor () |
| Destructor. More... | |
| virtual fawkes::WebReply * | process_request (const fawkes::WebRequest *request) |
| Process a request. More... | |
Public Member Functions inherited from fawkes::WebRequestProcessor | |
| WebRequestProcessor () | |
| Constructor. More... | |
| virtual | ~WebRequestProcessor () |
| Virtual empty destructor. More... | |
Pan/tilt/zoom camera request processor.
Definition at line 39 of file webview-ptzcam-processor.h.
| WebviewPtzCamRequestProcessor::WebviewPtzCamRequestProcessor | ( | std::string | base_url, |
| std::string | image_id, | ||
| std::string | pantilt_id, | ||
| std::string | camctrl_id, | ||
| std::string | power_id, | ||
| std::string | camera_id, | ||
| float | pan_increment, | ||
| float | tilt_increment, | ||
| unsigned int | zoom_increment, | ||
| float | post_powerup_time, | ||
| std::map< std::string, std::tuple< std::string, float, float, unsigned int >> | presets, | ||
| fawkes::BlackBoard * | blackboard, | ||
| fawkes::Logger * | logger | ||
| ) |
Constructor.
| base_url | base URL of the webview PTZ cam web request processor. |
| image_id | Shared memory image buffer ID for viewing |
| pantilt_id | PanTiltInterface ID |
| camctrl_id | CameraControlInterface ID |
| power_id | SwitchInterface ID for powering PTU |
| camera_id | SwitchInterface ID for enabling/disabling image retrieval |
| pan_increment | value by which to increment pan value on request |
| tilt_increment | value by which to increment tilt value on request |
| zoom_increment | value by which to increment zoom value on request |
| post_powerup_time | time in seconds by which to delay reponse when turning on PTU and camera after inactivity |
| presets | pan/tilt preset values |
| blackboard | blackboard to open interfaces |
| logger | logger to report problems |
Definition at line 63 of file webview-ptzcam-processor.cpp.
References fawkes::BlackBoard::open_for_reading().
|
virtual |
Destructor.
Definition at line 90 of file webview-ptzcam-processor.cpp.
|
virtual |
Process a request.
| request | request object encapsulating information about the connection |
Implements fawkes::WebRequestProcessor.
Definition at line 100 of file webview-ptzcam-processor.cpp.
References fawkes::WebReply::add_header(), fawkes::StaticWebReply::append_body(), fawkes::CameraControlInterface::EFF_BW, fawkes::CameraControlInterface::EFF_NEGATIVE, fawkes::CameraControlInterface::EFF_NONE, fawkes::CameraControlInterface::EFF_PASTEL, fawkes::CameraControlInterface::EFF_SOLARIZE, fawkes::WebRequest::get_value(), fawkes::WebReply::HTTP_NOT_FOUND, fawkes::WebReply::HTTP_OK, fawkes::CameraControlInterface::SetEffectMessage::set_effect(), fawkes::WebPageReply::set_html_header(), and fawkes::WebRequest::url().