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

fix gazebo_ros_power_monitor plugin #140

Merged
merged 2 commits into from
Aug 20, 2018

Conversation

furushchev
Copy link
Contributor

This fixes a crash on 32 bit range error in pr2_gazebo.


// // Initialize parameters
// Param::Begin(&parameters);
// robot_namespace_param_ = new ParamT<string>("robotNamespace", "/", 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here any parameters should have been read but no parameters actually read from urdf and all the parameters are zero which can cause zero division error and therefore this plugin publishes wrong trivial data.

@furushchev
Copy link
Contributor Author

kindly ping to maintainers. Without this patch, spawning PR2 will cause a crash on gazebo.

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.

Sorry @furushchev , I postponed reviewing this because it's rather big changes to fix something seemingly easy.

You rearranged a number of lines for no obvious reason, deleted some others and you did not split the changes into multiple commits that explain why you changed things. Please try to do this so we can review more easily!
"fix a crash" is no good description of rewriting half the plugin (which was fully justified now that I looked at it).

I approve

@furushchev
Copy link
Contributor Author

@v4hn Sorry for late response and thank you very much for your review!
I'll make more detailed description from the next time! 👍

@k-okada Please could you merge this? (I'm not sure I should mention to you though)

@k-okada
Copy link
Contributor

k-okada commented Jun 23, 2018

@furushchev please revert unnecessary changes.

@v4hn
Copy link
Member

v4hn commented Jun 25, 2018 via email

@furushchev
Copy link
Contributor Author

@k-okada @v4hn I forgot to inform you, I cleaned up this pull request.

@furushchev
Copy link
Contributor Author

@k-okada ping

@k-okada k-okada merged commit f335b88 into PR2:kinetic-devel Aug 20, 2018
@furushchev furushchev deleted the fix-power-monitor branch August 20, 2018 09:33
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.

3 participants