Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::ros2::utils Namespace Reference

ROS2 utilities. More...

Functions

void RedirectLoggingToRosConsole ()
 Redirect fp:common::logging to ROS console.
 

Detailed Description

ROS2 utilities.

Function Documentation

◆ RedirectLoggingToRosConsole()

void fpsdk::ros2::utils::RedirectLoggingToRosConsole ( )

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 ros::console::levels is as follows:

  • TRACE and DEBUG --> DEBUG
  • INFO and NOTICE --> INFO
  • WARNING --> WARN
  • ERROR --> ERROR
  • FATAL --> FATAL