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

Initialize last battery update time with 0 #71

Merged
merged 1 commit into from
Dec 17, 2018

Conversation

Jntzko
Copy link
Contributor

@Jntzko Jntzko commented Dec 13, 2018

In kinetic initializing a ros time with -1 throws the following error:
"Time is out of dual 32-bit range"

Change it to time(0) keeps the previous behaviour, but uses time 0 as initial value.

in kinetic initializing a ros time with -1 throws the following error:
"Time is out of dual 32-bit range"

Change it to time(0) keeps the previous behaviour, but uses time 0 as initial value.
Copy link
Member

@v4hn v4hn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would anyone write code that sets negative times?

Thanks for pointing this out @Jntzko !

@v4hn
Copy link
Member

v4hn commented Dec 13, 2018

@k-okada Please review. We see this problem on our PR2.

@k-okada
Copy link
Contributor

k-okada commented Dec 14, 2018

LGTM, please double check @furushchev, @takayuki5168

@takayuki5168
Copy link

@k-okada No problem too, I think.

@k-okada k-okada merged commit 214c2b9 into PR2:kinetic-devel Dec 17, 2018
@k-okada
Copy link
Contributor

k-okada commented Dec 17, 2018

ok, released ros/rosdistro#19744

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.

4 participants