![]() |
Fixposition SDK 0.0.0-heads/main-0-g97f6014
Collection of c++ libraries and apps for use with Fixposition products on Linux
|
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, rcl_clock_type_t clock_type=RCL_ROS_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, |
| rcl_clock_type_t | clock_type = RCL_ROS_TIME ) |
Convert to ROS time (atomic -> POSIX)
| [in] | time | The Time object (atomic) |
| [in] | clock_type | The clock to use (to assume) |
| 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) |