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::ros1::utils Namespace Reference

ROS1 utilities. More...

Functions

void RedirectLoggingToRosConsole ()
 Redirect fp:common::logging to ROS console.
 
bool LoadRosParam (const std::string &name, int &value)
 Loads a parameter from the ROS parameter server (int)
 
bool LoadRosParam (const std::string &name, std::string &value)
 Loads a parameter from the ROS parameter server (string)
 
bool LoadRosParam (const std::string &name, bool &value)
 Loads a parameter from the ROS parameter server (bool)
 
bool LoadRosParam (const std::string &name, float &value)
 Loads a parameter from the ROS parameter server (float)
 
bool LoadRosParam (const std::string &name, double &value)
 Loads a parameter from the ROS parameter server (double)
 

Detailed Description

ROS1 utilities.

Function Documentation

◆ RedirectLoggingToRosConsole()

void fpsdk::ros1::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

◆ LoadRosParam() [1/5]

bool fpsdk::ros1::utils::LoadRosParam ( const std::string & name,
int & value )

Loads a parameter from the ROS parameter server (int)

Parameters
[in]nameThe parameter name
[out]valueThe value
Returns
true if parameter found and loaded, false otherwise

◆ LoadRosParam() [2/5]

bool fpsdk::ros1::utils::LoadRosParam ( const std::string & name,
std::string & value )

Loads a parameter from the ROS parameter server (string)

Parameters
[in]nameThe parameter name
[out]valueThe value
Returns
true if parameter found and loaded, false otherwise

◆ LoadRosParam() [3/5]

bool fpsdk::ros1::utils::LoadRosParam ( const std::string & name,
bool & value )

Loads a parameter from the ROS parameter server (bool)

Parameters
[in]nameThe parameter name
[out]valueThe value
Returns
true if parameter found and loaded, false otherwise

◆ LoadRosParam() [4/5]

bool fpsdk::ros1::utils::LoadRosParam ( const std::string & name,
float & value )

Loads a parameter from the ROS parameter server (float)

Parameters
[in]nameThe parameter name
[out]valueThe value
Returns
true if parameter found and loaded, false otherwise

◆ LoadRosParam() [5/5]

bool fpsdk::ros1::utils::LoadRosParam ( const std::string & name,
double & value )

Loads a parameter from the ROS parameter server (double)

Parameters
[in]nameThe parameter name
[out]valueThe value
Returns
true if parameter found and loaded, false otherwise