-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add validation for orientation of initial pose #317
Conversation
[#795] PASSED on melodicAll tests passed
[#795] PASSED on kineticAll tests passed
|
Codecov Report
@@ Coverage Diff @@
## master #317 +/- ##
==========================================
- Coverage 94.34% 94.24% -0.11%
==========================================
Files 32 32
Lines 1645 1651 +6
==========================================
+ Hits 1552 1556 +4
- Misses 93 95 +2
Continue to review full report at Codecov.
|
src/mcl_3dl.cpp
Outdated
msg->pose.pose.orientation.w * msg->pose.pose.orientation.w; | ||
if (std::abs(len2 - 1.0) > 0.1) | ||
{ | ||
ROS_ERROR("Invalid pose is set. The orientation must be unit quaternion."); |
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.
what about
ROS_ERROR("Invalid pose is set. The orientation must be unit quaternion."); | |
ROS_ERROR("Discarded invalid initialpose. The orientation must be unit quaternion."); |
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.
done
@at-wat Addressed your comment. PTAL. The CI failed due to rosdep related problem. |
Official ROS docker image seems broken. |
ros-infrastructure/rosdep#745 |
[#803] PASSED on melodicAll tests passed
[#803] FAILED on kineticTest failed
[#803] PASSED on kineticAll tests passed
|
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
closes #316