moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
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

namespace  moveit
 Main namespace for MoveIt.
 
namespace  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.
 
std::string moveit::core::toString (float f)
 Convert a float to std::string using the classic C locale.
 
double moveit::core::toDouble (const std::string &s)
 Converts a std::string to double using the classic C locale.
 
float moveit::core::toFloat (const std::string &s)
 Converts a std::string to float using the classic C locale.
 

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.