Classes | Public Types | Public Member Functions | Public Attributes | List of all members
gazebo::util::LogRecordPrivate Class Reference

#include <LogRecordPrivate.hh>

Classes

class  Log
 Log helper class. More...
 

Public Types

typedef std::map< std::string,
Log * > 
Log_M
 

Public Member Functions

virtual ~LogRecordPrivate ()=default
 Destructor (makes style checker happy) More...
 

Public Attributes

std::condition_variable cleanupCondition
 Used by the cleanupThread to wait for a cleanup signal. More...
 
std::unique_ptr< std::thread > cleanupThread
 Thread to cleanup log recording. More...
 
event::Connection_V connections
 All the event connections. More...
 
std::mutex controlMutex
 Mutex to protect logging control. More...
 
common::Time currTime
 Current simulation time. More...
 
std::condition_variable dataAvailableCondition
 Used by the write thread to know when data needs to be written to disk. More...
 
std::string encoding
 Encoding format for each chunk. More...
 
bool firstUpdate
 Used to indicate the first update callback. More...
 
bool initialized
 True if initialized. More...
 
boost::filesystem::path logBasePath
 The base pathname for all the logs. More...
 
boost::filesystem::path logCompletePath
 The complete pathname for all the logs. More...
 
transport::SubscriberPtr logControlSub
 Subscriber to log control messages. More...
 
Log_M logs
 All the log objects. More...
 
Log_M::iterator logsEnd
 Convenience iterator to the end of the log objects map. More...
 
transport::PublisherPtr logStatusPub
 Publisher of log status messages. More...
 
std::string logSubDir
 Subdirectory for log files. More...
 
transport::NodePtr node
 Transportation node. More...
 
bool paused
 True to pause recording. More...
 
bool pauseState
 Simulation pause state. More...
 
bool readyToStart
 True if the logger is ready to start, and the previous run has finished. More...
 
bool running
 True if logging is running. More...
 
std::mutex runWriteMutex
 Mutex to synchronize with RunWrite() More...
 
std::condition_variable startThreadCondition
 Condition used to start threads. More...
 
common::Time startTime
 Start simulation time. More...
 
bool stopThread
 Flag used to stop the write thread. More...
 
std::condition_variable updateCondition
 Condition used to trigger an update. More...
 
Log_M::iterator updateIter
 Iterator used to update the log objects. More...
 
std::mutex updateMutex
 Mutex to synchronize with RunUpdate() More...
 
std::unique_ptr< std::thread > updateThread
 Thread used to update data. More...
 
std::mutex writeMutex
 Mutex to protect against parallel calls to Write() More...
 
std::unique_ptr< std::thread > writeThread
 Thread used to write data to disk. More...
 

Member Typedef Documentation

typedef std::map<std::string, Log*> gazebo::util::LogRecordPrivate::Log_M

Constructor & Destructor Documentation

virtual gazebo::util::LogRecordPrivate::~LogRecordPrivate ( )
virtualdefault

Destructor (makes style checker happy)

Member Data Documentation

std::condition_variable gazebo::util::LogRecordPrivate::cleanupCondition

Used by the cleanupThread to wait for a cleanup signal.

std::unique_ptr<std::thread> gazebo::util::LogRecordPrivate::cleanupThread

Thread to cleanup log recording.

event::Connection_V gazebo::util::LogRecordPrivate::connections

All the event connections.

std::mutex gazebo::util::LogRecordPrivate::controlMutex

Mutex to protect logging control.

common::Time gazebo::util::LogRecordPrivate::currTime

Current simulation time.

std::condition_variable gazebo::util::LogRecordPrivate::dataAvailableCondition

Used by the write thread to know when data needs to be written to disk.

std::string gazebo::util::LogRecordPrivate::encoding

Encoding format for each chunk.

bool gazebo::util::LogRecordPrivate::firstUpdate

Used to indicate the first update callback.

bool gazebo::util::LogRecordPrivate::initialized

True if initialized.

boost::filesystem::path gazebo::util::LogRecordPrivate::logBasePath

The base pathname for all the logs.

boost::filesystem::path gazebo::util::LogRecordPrivate::logCompletePath

The complete pathname for all the logs.

transport::SubscriberPtr gazebo::util::LogRecordPrivate::logControlSub

Subscriber to log control messages.

Log_M gazebo::util::LogRecordPrivate::logs

All the log objects.

Log_M::iterator gazebo::util::LogRecordPrivate::logsEnd

Convenience iterator to the end of the log objects map.

transport::PublisherPtr gazebo::util::LogRecordPrivate::logStatusPub

Publisher of log status messages.

std::string gazebo::util::LogRecordPrivate::logSubDir

Subdirectory for log files.

This is appended to logBasePath.

transport::NodePtr gazebo::util::LogRecordPrivate::node

Transportation node.

bool gazebo::util::LogRecordPrivate::paused

True to pause recording.

bool gazebo::util::LogRecordPrivate::pauseState

Simulation pause state.

bool gazebo::util::LogRecordPrivate::readyToStart

True if the logger is ready to start, and the previous run has finished.

bool gazebo::util::LogRecordPrivate::running

True if logging is running.

std::mutex gazebo::util::LogRecordPrivate::runWriteMutex
mutable

Mutex to synchronize with RunWrite()

std::condition_variable gazebo::util::LogRecordPrivate::startThreadCondition

Condition used to start threads.

common::Time gazebo::util::LogRecordPrivate::startTime

Start simulation time.

bool gazebo::util::LogRecordPrivate::stopThread

Flag used to stop the write thread.

std::condition_variable gazebo::util::LogRecordPrivate::updateCondition

Condition used to trigger an update.

Log_M::iterator gazebo::util::LogRecordPrivate::updateIter

Iterator used to update the log objects.

std::mutex gazebo::util::LogRecordPrivate::updateMutex
mutable

Mutex to synchronize with RunUpdate()

std::unique_ptr<std::thread> gazebo::util::LogRecordPrivate::updateThread

Thread used to update data.

std::mutex gazebo::util::LogRecordPrivate::writeMutex
mutable

Mutex to protect against parallel calls to Write()

std::unique_ptr<std::thread> gazebo::util::LogRecordPrivate::writeThread

Thread used to write data to disk.


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