//============================================================================== void checkScaleValidity(Eigen::Vector3d& scale) { if (scale.any() == 0.0) { dtwarn << "[KinBodyParser]: Invalid scale (" << scale[0] << ", " << scale[1] << ", " << scale[2] << "). All the elements shouln't be zero.\n"; } }
//============================================================================== void shouldBeNonPositive(const Eigen::Vector3d& extents) { if (extents.any() <= 0.0) { dtwarn << "[KinBodyParser]: Invalid extents (" << extents[0] << ", " << extents[1] << ", " << extents[2] << "). All the elements should be positive. " << "If you used 0 value intentionally to create a pure " << "visualization geometry, try to use 'none' attribute for the " << "geom type instead.\n"; } }