ROSaic
|
Data Structures | |
class | AbstractCallbackHandler |
class | AsyncManager |
This is the central interface between this ROS driver and the mosaic receiver(s), managing I/O operations such as reading messages and sending commands.. More... | |
class | CallbackHandler |
Abstract class representing a generic callback handler, includes high-level functionality such as wait. More... | |
class | CallbackHandlers |
Represents ensemble of (to be constructed) ROS messages, to be handled at once by this class. More... | |
class | Comm_IO |
Handles communication with configuration of the mosaic (and beyond) device(s) More... | |
class | Manager |
Interface (in C++ terms), that could be used for any I/O manager, synchronous and asynchronous alike. More... | |
class | mosaicMessage |
Can search buffer for messages, read/parse them, and so on. More... | |
Functions | |
ros::Time | TimestampSBF (uint32_t TOW, bool use_GNSS) |
Calculates the timestamp, in the Unix Epoch time format, either using the TOW as transmitted with the SBF block, or using the current time. More... | |
Variables | |
static const uint32_t | baudrates [] |
Possible baudrates for mosaic. More... | |
This namespace is for the communication interface, handling all aspects related to serial and TCP/IP communication..
ros::Time io_comm_mosaic::TimestampSBF | ( | uint32_t | TOW, |
bool | use_GNSS | ||
) |
Calculates the timestamp, in the Unix Epoch time format, either using the TOW as transmitted with the SBF block, or using the current time.
[in] | TOW | Number of milliseconds that elapsed since the beginning of the current GPS week as transmitted by the SBF block |
[in] | use_GNSS_time | If true, the TOW as transmitted with the SBF block is used, otherwise the current time |
If the current time shall be employed, it is calculated via the time(NULL) function found in the <ctime> library At the time of writing the code (2020), the GPS time was ahead of UTC time by 18 (leap) seconds. Adapt the leap_seconds parameter accordingly as soon as the next leap second is inserted into the UTC time.
Definition at line 599 of file mosaicMessage.cpp.
References leap_seconds, string_utilities::ToDouble(), and parsing_utilities::UTCtoUnix().
Referenced by io_comm_mosaic::mosaicMessage::Read(), and StringValues_Initialize().
|
static |
Possible baudrates for mosaic.
Definition at line 107 of file communication_core.hpp.
Referenced by io_comm_mosaic::Comm_IO::InitializeSerial().