|
Thunderbots Project
|


Public Member Functions | |
| UnixSimulatorBackend (std::string runtime_dir, const std::shared_ptr< ProtoLogger > &proto_logger) | |
| double | getLastWorldTimeSec () |
Public Member Functions inherited from Backend | |
| void | receiveRobotStatus (TbotsProto::RobotStatus msg) |
| void | receiveSSLWrapperPacket (SSLProto::SSL_WrapperPacket msg) |
| void | receiveSSLReferee (SSLProto::Referee msg) |
| void | receiveSensorProto (SensorProto sensor_msg) |
Public Member Functions inherited from Subject< SensorProto > | |
| void | registerObserver (std::shared_ptr< Observer< SensorProto > > observer) |
Public Member Functions inherited from FirstInFirstOutThreadedObserver< World > | |
| FirstInFirstOutThreadedObserver (size_t buffer_size, bool log_buffer_full=true) | |
| std::optional< World > | getNextValue (const Duration &max_wait_time) final override |
Public Member Functions inherited from ThreadedObserver< T > | |
| ThreadedObserver (size_t buffer_size=Observer< T >::DEFAULT_BUFFER_SIZE, bool log_buffer_full=true) | |
| ThreadedObserver & | operator= (const ThreadedObserver &)=delete |
| ThreadedObserver (const ThreadedObserver &)=delete | |
Public Member Functions inherited from Observer< T, Clock > | |
| Observer (size_t buffer_size=DEFAULT_BUFFER_SIZE, bool log_buffer_full=true) | |
| virtual void | receiveValue (T val) |
| virtual double | getDataReceivedPerSecond () final |
Public Member Functions inherited from FirstInFirstOutThreadedObserver< TbotsProto::PrimitiveSet > | |
| FirstInFirstOutThreadedObserver (size_t buffer_size, bool log_buffer_full=true) | |
| std::optional< TbotsProto::PrimitiveSet > | getNextValue (const Duration &max_wait_time) final override |
Public Member Functions inherited from Subject< TbotsProto::ThunderbotsConfig > | |
| void | registerObserver (std::shared_ptr< Observer< TbotsProto::ThunderbotsConfig > > observer) |
Additional Inherited Members | |
Static Public Attributes inherited from Observer< T, Clock > | |
| static constexpr size_t | TIME_BUFFER_SIZE = 5 |
Protected Member Functions inherited from Subject< SensorProto > | |
| virtual void | sendValueToObservers (SensorProto val) final |
Protected Member Functions inherited from Observer< T, Clock > | |
| virtual std::optional< T > | popMostRecentlyReceivedValue (Duration max_wait_time) final |
| virtual std::optional< T > | popLeastRecentlyReceivedValue (Duration max_wait_time) final |
Protected Member Functions inherited from Subject< TbotsProto::ThunderbotsConfig > | |
| virtual void | sendValueToObservers (TbotsProto::ThunderbotsConfig val) final |
Static Protected Attributes inherited from Observer< T, Clock > | |
| static constexpr size_t | DEFAULT_BUFFER_SIZE = 1 |
| UnixSimulatorBackend | ( | std::string | runtime_dir, |
| const std::shared_ptr< ProtoLogger > & | proto_logger | ||
| ) |
Constructs a new UnixSimulatorBackend
| runtime_dir | The directory to setup the unix sockets |
| double getLastWorldTimeSec | ( | ) |
Get the timestamp (in seconds) of the last World received