ROS1 types and utils.
More...
◆ DeserializeMessage()
template<typename RosMsgT>
| void fpsdk::common::ros1::DeserializeMessage |
( |
const std::vector< uint8_t > & | buf, |
|
|
RosMsgT & | msg ) |
|
inline |
Deserialise ROS1 message.
- Template Parameters
-
| RosMsgT | The ROS1 message type |
- Parameters
-
| [in] | buf | The serialised ROS message |
| [out] | msg | The deserialised ROS message |
Definition at line 128 of file ros1.hpp.
◆ ConvTime() [1/2]
| ros::Time fpsdk::common::ros1::ConvTime |
( |
const time::Time & | time | ) |
|
Convert to ROS time (atomic -> POSIX).
- Parameters
-
| [in] | time | The Time object (atomic) |
- Returns
- the ROS time object (POSIX)
◆ ConvTime() [2/2]
| time::Time fpsdk::common::ros1::ConvTime |
( |
const ros::Time & | time | ) |
|
Convert from ROS time (POSIX -> atomic).
- Parameters
-
| [in] | time | The ROS time object (POSIX) |
- Returns
- the Time object (atomic)
◆ RedirectLoggingToRosConsole()
| void fpsdk::common::ros1::RedirectLoggingToRosConsole |
( |
const char * | logger_name = ROSCONSOLE_DEFAULT_NAME | ) |
|
Redirect fpsdk:common::logging to ROS console.
- Note
- This is only available when built in a ROS1 environment.
This configures the fpsdk::common::logging facility to output via the ROS console. This does not configure the ROS console (logger level, logger name, etc.).
The mapping of fpsdk::common::logging::LoggingLevel to ros::console::levels is as follows:
- TRACE and DEBUG --> DEBUG
- INFO and NOTICE --> INFO
- WARNING --> WARN
- ERROR --> ERROR
- FATAL --> FATAL
- Parameters
-
| [in] | logger_name | The name of the logger. The default value should give the caller package's ROSCONSOLE_DEFAULT_NAME, for example, "ros1_fpsdk_demo". That is, typically this argument should be left empty (the default value). |