-
Notifications
You must be signed in to change notification settings - Fork 946
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
[jog_arm] Fix crash on empty jog msgs #2094
[jog_arm] Fix crash on empty jog msgs #2094
Conversation
Thanks for helping in improving MoveIt and open source robotics! |
Codecov Report
@@ Coverage Diff @@
## master #2094 +/- ##
==========================================
+ Coverage 54.07% 57.80% +3.72%
==========================================
Files 319 328 +9
Lines 25019 25663 +644
==========================================
+ Hits 13530 14834 +1304
+ Misses 11489 10829 -660
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed that the tutorial was crashing because of this issue. Great catch!
To be consistent, can you please delete L81 of jog_calcs.cpp? Because the "effort" field isn't used. Delete this line:
internal_joint_state_.effort.resize(num_joints_);
it's not used internally and should be consistent.
I removed the line as requested by @AndyZe . I take it this can be merged once CI passes. |
Thanks v4hn. Looks ready to merge to me, too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm... I tested this and it fixes the bug. Please merge as we need this to have a stable melodic backport of jog_arm.
Congrats on getting your first MoveIt pull request merged and improving open source robotics! |
* adds empty point msg to prevent invalid indexing * do not add effort it's not used internally and should be consistent. Co-authored-by: Michael Görner <me@v4hn.de>
* adds empty point msg to prevent invalid indexing * do not add effort it's not used internally and should be consistent. Co-authored-by: Michael Görner <me@v4hn.de>
* adds empty point msg to prevent invalid indexing * do not add effort it's not used internally and should be consistent. Co-authored-by: Michael Görner <me@v4hn.de>
Description
Added a Point message to an empty joint_trajectory to prevent the jog server to crash on icall of invalid index.
Checklist