Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
|
ROS2 utilities. More...
Functions | |
void | RedirectLoggingToRosConsole (const char *logger_name="fpsdk_ros2") |
Redirect fp:common::logging to ROS console. | |
rclcpp::Time | ConvTime (const fpsdk::common::time::Time &time) |
Convert to ROS time (atomic -> POSIX) | |
fpsdk::common::time::Time | ConvTime (const rclcpp::Time &time) |
Convert from ROS time (POSIX -> atomic) | |
ROS2 utilities.
void fpsdk::ros2::utils::RedirectLoggingToRosConsole | ( | const char * | logger_name = "fpsdk_ros2" | ) |
Redirect fp:common::logging to ROS console.
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 rclcpp levels is as follows:
[in] | logger_name | The name of the logger. The recommended value is node->get_logger().get_name() |
rclcpp::Time fpsdk::ros2::utils::ConvTime | ( | const fpsdk::common::time::Time & | time | ) |
Convert to ROS time (atomic -> POSIX)
[in] | time | The Time object (atomic) |
fpsdk::common::time::Time fpsdk::ros2::utils::ConvTime | ( | const rclcpp::Time & | time | ) |
Convert from ROS time (POSIX -> atomic)
[in] | time | The ROS time object (POSIX) |