-
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
Added throttle to jogarm accel limit warning #2141
Added throttle to jogarm accel limit warning #2141
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2141 +/- ##
==========================================
+ Coverage 57.72% 57.82% +0.10%
==========================================
Files 328 328
Lines 25735 25735
==========================================
+ Hits 14856 14882 +26
+ Misses 10879 10853 -26
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.
Thanks for cleaning up my oversight! Here's a suggestion to take the PR to the next level, the best it could be (I think...).
There are two collision-checking algorithms, stop_distance and threshold_distance. See collision_check_thread.h
. I think we should only print this warning if the current method is stop_distance. (threshod_distance doesn't need the acceleration limit)
To make that change, I think you could move the CollisionCheckType enum from collision_check_thread.h to jog_arm_data.h (so both threads have access to it). Or make a new header file just for the enum. Then change these lines of code to something like:
else if (parameters_.collision_check_type == K_STOP_DISTANCE)
{
ROS_ERROR_STREAM_ONCE_NAMED(LOGNAME, "...");
}
But I would approve the PR without this change, too.
@AndyZe I'll let you put those improvements in another PR. |
@davetcoleman please help. The old travis integration is marked as required even though this is passing the new travis setup. I'd like to merge this PR but I can't. |
I've switched it to the new travis. Why does Codecov really consider a single line edit as a decrease of .1%?? |
Small changes are weird with codecov, no idea why. |
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
* added throttle to jogarm accel limit warning * switched to ERROR_ONCE
Description
Minor change to add throttle to warning message, which is currently printed for every joint in every iteration of the control loop.
Checklist