Skip to content
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

Switch all stod callers in urdfdom to use a helper #105

Merged
merged 3 commits into from
Feb 21, 2018
Merged

Conversation

clalancette
Copy link
Contributor

The short of it is that str::stod is not locale-safe, so instead we use the stream operator imbued as "classic" (C) locale. This PR depends on ros/urdfdom_headers#42, so it should not be merged until that one is merged/released. While I was at it, I added a bunch of tests just to ensure we are doing the right thing in various places, mostly surrounding the conversion of strings to doubles.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
It is not locale-safe, so switch to using the strToDouble
utility from urdfdom_headers instead.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

clalancette commented Nov 20, 2017

(the Travis CI will fail until ros/urdfdom_headers#42 is merged)

@clalancette
Copy link
Contributor Author

All right, now that the other PRs are merged, I think we can also review this one. I'm going to close it out and re-open to re-trigger Travis.

@clalancette clalancette reopened this Feb 21, 2018
@clalancette
Copy link
Contributor Author

Great, thanks. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants