Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
|
ROS1 utilities. More...
Functions | |
void | RedirectLoggingToRosConsole (const char *logger_name=ROSCONSOLE_DEFAULT_NAME) |
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) | |
bool | LoadRosParam (const std::string &name, std::vector< std::string > &value) |
Loads a parameter from the ROS parameter server (list of strings) | |
ros::Time | ConvTime (const fpsdk::common::time::Time &time) |
Convert to ROS time (atomic -> POSIX) | |
fpsdk::common::time::Time | ConvTime (const ros::Time &time) |
Convert from ROS time (POSIX -> atomic) | |
ROS1 utilities.
void fpsdk::ros1::utils::RedirectLoggingToRosConsole | ( | const char * | logger_name = ROSCONSOLE_DEFAULT_NAME | ) |
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:
[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). |
bool fpsdk::ros1::utils::LoadRosParam | ( | const std::string & | name, |
int & | value ) |
Loads a parameter from the ROS parameter server (int)
[in] | name | The parameter name |
[out] | value | The value |
bool fpsdk::ros1::utils::LoadRosParam | ( | const std::string & | name, |
std::string & | value ) |
Loads a parameter from the ROS parameter server (string)
[in] | name | The parameter name |
[out] | value | The value |
bool fpsdk::ros1::utils::LoadRosParam | ( | const std::string & | name, |
bool & | value ) |
Loads a parameter from the ROS parameter server (bool)
[in] | name | The parameter name |
[out] | value | The value |
bool fpsdk::ros1::utils::LoadRosParam | ( | const std::string & | name, |
float & | value ) |
Loads a parameter from the ROS parameter server (float)
[in] | name | The parameter name |
[out] | value | The value |
bool fpsdk::ros1::utils::LoadRosParam | ( | const std::string & | name, |
double & | value ) |
Loads a parameter from the ROS parameter server (double)
[in] | name | The parameter name |
[out] | value | The value |
bool fpsdk::ros1::utils::LoadRosParam | ( | const std::string & | name, |
std::vector< std::string > & | value ) |
Loads a parameter from the ROS parameter server (list of strings)
[in] | name | The parameter name |
[out] | value | The value |
ros::Time fpsdk::ros1::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::ros1::utils::ConvTime | ( | const ros::Time & | time | ) |
Convert from ROS time (POSIX -> atomic)
[in] | time | The ROS time object (POSIX) |