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 9cbb014 commit 423206cCopy full SHA for 423206c
tesseract_common/include/tesseract_common/utils.h
@@ -384,6 +384,11 @@ inline bool almostEqualRelativeAndAbs(const Eigen::Ref<const Eigen::VectorXd>& v
384
double max_diff,
385
double max_rel_diff = std::numeric_limits<double>::epsilon())
386
{
387
+ if (v1.size() == 0 && v2.size() == 0)
388
+ return true;
389
+ if (v1.size() != v2.size())
390
+ return false;
391
+
392
Eigen::ArrayWrapper<const Eigen::Ref<const Eigen::VectorXd>> a1 = v1.array();
393
Eigen::ArrayWrapper<const Eigen::Ref<const Eigen::VectorXd>> a2 = v2.array();
394
0 commit comments