We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3122287 commit 407fbc8Copy full SHA for 407fbc8
fixposition_driver_lib/src/messages/fpa/tf.cpp
@@ -68,7 +68,7 @@ void FP_TF::ConvertFromTokens(const std::vector<std::string>& tokens) {
68
tokens.at(orientation_y_idx), tokens.at(orientation_z_idx));
69
70
// Check if TF is valid
71
- if (!tf.rotation.vec().isZero() && !(tf.rotation.w() == 0)) valid_tf = true;
+ valid_tf = !(tf.rotation.w() == 0 && tf.rotation.vec().isZero());
72
}
73
74
} // namespace fixposition
0 commit comments