Skip to content

Commit

Permalink
Fixed invalid TF check (#66)
Browse files Browse the repository at this point in the history
* Fixed invalid TF check

* Improved syntaxis

---------

Co-authored-by: Facundo Garcia <[email protected]>
  • Loading branch information
fixposition-support and Facundo Garcia authored Aug 28, 2024
1 parent 3122287 commit 407fbc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixposition_driver_lib/src/messages/fpa/tf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void FP_TF::ConvertFromTokens(const std::vector<std::string>& tokens) {
tokens.at(orientation_y_idx), tokens.at(orientation_z_idx));

// Check if TF is valid
if (!tf.rotation.vec().isZero() && !(tf.rotation.w() == 0)) valid_tf = true;
valid_tf = !(tf.rotation.w() == 0 && tf.rotation.vec().isZero());
}

} // namespace fixposition

0 comments on commit 407fbc8

Please sign in to comment.