Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::sensors::SensorsSimulator Class Reference

#include <sensors_simulator.h>

Collaboration diagram for cuttlefish::sensors::SensorsSimulator:
Collaboration graph
[legend]

Public Member Functions

 SensorsSimulator (bool is_auto)
 
void RefreshSensors (double x, double y, double z)
 
std::string GetSensorsData (const SensorsMask mask)
 

Private Attributes

std::mutex sensors_data_mtx_
 
SensorsData sensors_data_ [kMaxSensorId+1]
 
Eigen::Matrix3d current_rotation_matrix_
 
std::chrono::time_point< std::chrono::high_resolution_clock > last_event_timestamp_
 
bool is_auto_
 

Constructor & Destructor Documentation

◆ SensorsSimulator()

cuttlefish::sensors::SensorsSimulator::SensorsSimulator ( bool  is_auto)

Member Function Documentation

◆ GetSensorsData()

std::string cuttlefish::sensors::SensorsSimulator::GetSensorsData ( const SensorsMask  mask)

◆ RefreshSensors()

void cuttlefish::sensors::SensorsSimulator::RefreshSensors ( double  x,
double  y,
double  z 
)

Member Data Documentation

◆ current_rotation_matrix_

Eigen::Matrix3d cuttlefish::sensors::SensorsSimulator::current_rotation_matrix_
private

◆ is_auto_

bool cuttlefish::sensors::SensorsSimulator::is_auto_
private

◆ last_event_timestamp_

std::chrono::time_point<std::chrono::high_resolution_clock> cuttlefish::sensors::SensorsSimulator::last_event_timestamp_
private

◆ sensors_data_

SensorsData cuttlefish::sensors::SensorsSimulator::sensors_data_[kMaxSensorId+1]
private

◆ sensors_data_mtx_

std::mutex cuttlefish::sensors::SensorsSimulator::sensors_data_mtx_
private

The documentation for this class was generated from the following files: