Skip to content

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

Merged
clalancette merged 3 commits intomasterfrom
stream-stod
Feb 21, 2018
Merged

Switch all stod callers in urdfdom to use a helper#105
clalancette merged 3 commits intomasterfrom
stream-stod

Conversation

@clalancette
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

clalancette commented Nov 20, 2017

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

@clalancette
Copy link
Copy Markdown
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
Copy Markdown
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