#include <SENSSimHelper.h>
Definition at line 7 of file SENSSimHelper.h.
◆ SENSSimHelper()
Definition at line 3 of file SENSSimHelper.cpp.
20 Utils::log(
"SENSSimHelper",
"Could not create simDataDir!");
SENSOrientation *& _orientationRef
SENSOrientation * orientation() const
SENSCamera * camera() const
SENSOrientation * _orientationIn
std::function< void(void)> _cameraParametersChangedCB
const std::string & simDataDir() const
string unifySlashes(const string &inputDir, bool withTrailingSlash)
Returns the inputDir string with unified forward slashes, e.g.: "dirA/dirB/".
bool dirExists(const string &path)
Returns true if a directory exists.
bool makeDir(const string &path)
Creates a directory with given path.
void log(const char *tag, const char *format,...)
logs a formatted string platform independently
◆ ~SENSSimHelper()
| SENSSimHelper::~SENSSimHelper |
( |
| ) |
|
◆ camera()
◆ canSimCamera()
| bool SENSSimHelper::canSimCamera |
( |
| ) |
|
◆ canSimGps()
| bool SENSSimHelper::canSimGps |
( |
| ) |
|
◆ canSimOrientation()
| bool SENSSimHelper::canSimOrientation |
( |
| ) |
|
◆ getRecorderErrors()
| bool SENSSimHelper::getRecorderErrors |
( |
std::vector< std::string > & |
errorMsgs | ) |
|
Definition at line 136 of file SENSSimHelper.cpp.
140 std::string gpsError;
141 if (
_recorder->getGpsHandlerError(gpsError))
142 errorMsgs.emplace_back(gpsError);
143 std::string orientationError;
144 if (
_recorder->getOrientationHandlerError(orientationError))
145 errorMsgs.emplace_back(orientationError);
146 std::string cameraError;
147 if (
_recorder->getCameraHandlerError(cameraError))
148 errorMsgs.emplace_back(cameraError);
150 return errorMsgs.size() != 0;
std::unique_ptr< SENSRecorder > _recorder
◆ getSimulatorErrors()
| bool SENSSimHelper::getSimulatorErrors |
( |
std::vector< std::string > & |
errorMsgs | ) |
|
◆ gps()
| SENSGps* SENSSimHelper::gps |
( |
| ) |
const |
|
inline |
◆ initSimulator()
| void SENSSimHelper::initSimulator |
( |
const std::string & |
simDataSet | ) |
|
◆ isPausedSim()
| bool SENSSimHelper::isPausedSim |
( |
| ) |
|
◆ orientation()
◆ passedSimTime()
◆ pauseSim()
| void SENSSimHelper::pauseSim |
( |
| ) |
|
◆ recorder()
◆ recorderIsRunning()
| bool SENSSimHelper::recorderIsRunning |
( |
| ) |
|
◆ resetRecorder()
| void SENSSimHelper::resetRecorder |
( |
| ) |
|
◆ restoreInputSensors()
| void SENSSimHelper::restoreInputSensors |
( |
| ) |
|
|
private |
Definition at line 29 of file SENSSimHelper.cpp.
virtual bool started() const =0
virtual void stop()=0
Stop a started camera device.
◆ resumeSim()
| void SENSSimHelper::resumeSim |
( |
| ) |
|
◆ simDataDir()
| const std::string& SENSSimHelper::simDataDir |
( |
| ) |
const |
|
inline |
◆ simIsRunning()
| bool SENSSimHelper::simIsRunning |
( |
| ) |
|
◆ simTime()
◆ startRecording()
| bool SENSSimHelper::startRecording |
( |
| ) |
|
◆ startSim()
| void SENSSimHelper::startSim |
( |
| ) |
|
Definition at line 269 of file SENSSimHelper.cpp.
const std::string & deviceId() const
const std::vector< SENSCameraStreamConfig > & streamConfigs() const
virtual const SENSCameraConfig & start(std::string deviceId, const SENSCameraStreamConfig &streamConfig, bool provideIntrinsics=true)=0
virtual const SENSCaptureProps & captureProperties()=0
Get SENSCaptureProps which contains necessary information about all available camera devices and thei...
◆ stopRecording()
| void SENSSimHelper::stopRecording |
( |
| ) |
|
◆ stopSim()
| void SENSSimHelper::stopSim |
( |
| ) |
|
◆ updateCameraRecording()
| void SENSSimHelper::updateCameraRecording |
( |
| ) |
|
◆ updateCameraSim()
| void SENSSimHelper::updateCameraSim |
( |
| ) |
|
◆ updateGpsRecording()
| void SENSSimHelper::updateGpsRecording |
( |
| ) |
|
◆ updateGpsSim()
| void SENSSimHelper::updateGpsSim |
( |
| ) |
|
◆ updateOrientationRecording()
| void SENSSimHelper::updateOrientationRecording |
( |
| ) |
|
◆ updateOrientationSim()
| void SENSSimHelper::updateOrientationSim |
( |
| ) |
|
◆ _cameraIn
◆ _cameraParametersChangedCB
| std::function<void(void)> SENSSimHelper::_cameraParametersChangedCB |
|
private |
◆ _cameraRef
◆ _gpsIn
◆ _gpsRef
◆ _orientationIn
◆ _orientationRef
◆ _recorder
◆ _simDataDir
| std::string SENSSimHelper::_simDataDir |
|
private |
◆ _simulator
◆ recordCamera
| bool SENSSimHelper::recordCamera = false |
◆ recordGps
| bool SENSSimHelper::recordGps = false |
◆ recordOrientation
| bool SENSSimHelper::recordOrientation = false |
◆ simulateCamera
| bool SENSSimHelper::simulateCamera = false |
◆ simulateGps
| bool SENSSimHelper::simulateGps = false |
◆ simulateOrientation
| bool SENSSimHelper::simulateOrientation = false |
The documentation for this class was generated from the following files: