-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urdfdom usage of std::stod is error-prone to changes in system locale #98
Labels
Comments
This is not directly related to I just checked and I easily found several examples:
|
cc @liesrock this is the issue I was mentioning today that is also affecting RBDL indirectly. |
thanks @traversaro, I cc @alaurenzi that can be also interested. |
Fixed by #105 . |
This was referenced Aug 24, 2019
1 task
This was referenced Jan 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The use in several parts of urdfdom of the function
std::stod
can be source of errors if the library is used together with other libraries (such as Qt) that change the system locale.Slightly related, I assume (from all the ROS code using the library) the correct way of encoding floating point numbers as strings in the URDF file format is the one defined by the
"C"
standard locale, but this is not actually documented anywhere (see robotology/idyntree#288 (comment)).Downstream issue: robotology/idyntree#288
Similar SDFormat issue: https://bitbucket.org/osrf/sdformat/issues/60
The text was updated successfully, but these errors were encountered: