moveit2
The MoveIt Motion Planning Framework for ROS 2.
Namespaces | Functions
lexical_casts.h File Reference

locale-agnostic conversion functions from floating point numbers to strings More...

#include <string>
Include dependency graph for lexical_casts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 moveit
 Main namespace for MoveIt.
 
 moveit::core
 Core components of MoveIt.
 

Functions

std::string moveit::core::toString (double d)
 Convert a double to std::string using the classic C locale. More...
 
std::string moveit::core::toString (float f)
 Convert a float to std::string using the classic C locale. More...
 
double moveit::core::toDouble (const std::string &s)
 Converts a std::string to double using the classic C locale. More...
 
float moveit::core::toFloat (const std::string &s)
 Converts a std::string to float using the classic C locale. More...
 

Detailed Description

locale-agnostic conversion functions from floating point numbers to strings

Depending on the system locale, a different decimal separator might be used for floating point numbers. This is often not wanted for internal (ie non-user facing) purposes. This module provides conversion functions that use std::locale::classic() (i.e. the default if no locale is set on the system).

Definition in file lexical_casts.h.