#include <sensors_handler.h>
◆ MotionUpdatedCallback
◆ SensorsHandler()
| cuttlefish::webrtc_streaming::SensorsHandler::SensorsHandler |
( |
SharedFD |
sensors_fd | ) |
|
|
explicit |
◆ ~SensorsHandler()
| cuttlefish::webrtc_streaming::SensorsHandler::~SensorsHandler |
( |
| ) |
|
◆ AddMotionUpdatedCallback()
| int cuttlefish::webrtc_streaming::SensorsHandler::AddMotionUpdatedCallback |
( |
MotionUpdatedCallback |
callback | ) |
|
◆ GetSensorsData()
◆ NotifyMotionUpdated()
| void cuttlefish::webrtc_streaming::SensorsHandler::NotifyMotionUpdated |
( |
| ) |
|
|
private |
◆ RemoveMotionUpdatedCallback()
| void cuttlefish::webrtc_streaming::SensorsHandler::RemoveMotionUpdatedCallback |
( |
int |
subscriber_id | ) |
|
◆ SendCommand()
| Result< void > cuttlefish::webrtc_streaming::SensorsHandler::SendCommand |
( |
uint32_t |
cmd, |
|
|
std::string_view |
payload |
|
) |
| |
|
private |
◆ SetHingeAngle()
| Result< void > cuttlefish::webrtc_streaming::SensorsHandler::SetHingeAngle |
( |
double |
angle | ) |
|
◆ SetMotion()
| Result< void > cuttlefish::webrtc_streaming::SensorsHandler::SetMotion |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
◆ channel_
◆ client_channels_
| std::unordered_map<int, MotionUpdatedCallback> cuttlefish::webrtc_streaming::SensorsHandler::client_channels_ |
|
private |
◆ last_client_channel_id_
| int cuttlefish::webrtc_streaming::SensorsHandler::last_client_channel_id_ = -1 |
|
private |
◆ subscribers_mtx_
| std::mutex cuttlefish::webrtc_streaming::SensorsHandler::subscribers_mtx_ |
|
private |
The documentation for this class was generated from the following files: