Skip to content

Commit 407fbc8

Browse files
Fixed invalid TF check (#66)
* Fixed invalid TF check * Improved syntaxis --------- Co-authored-by: Facundo Garcia <[email protected]>
1 parent 3122287 commit 407fbc8

File tree

1 file changed

+1
-1
lines changed
  • fixposition_driver_lib/src/messages/fpa

1 file changed

+1
-1
lines changed

fixposition_driver_lib/src/messages/fpa/tf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void FP_TF::ConvertFromTokens(const std::vector<std::string>& tokens) {
6868
tokens.at(orientation_y_idx), tokens.at(orientation_z_idx));
6969

7070
// Check if TF is valid
71-
if (!tf.rotation.vec().isZero() && !(tf.rotation.w() == 0)) valid_tf = true;
71+
valid_tf = !(tf.rotation.w() == 0 && tf.rotation.vec().isZero());
7272
}
7373

7474
} // namespace fixposition

0 commit comments

Comments
 (0)