#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <type_traits>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/serialization/shared_ptr.hpp>
#include <tinyxml2.h>
#include <sstream>
#include <tesseract_common/utils.h>
#include <tesseract_common/sfinae_utils.h>
#include <tesseract_common/resource_locator.h>
#include <tesseract_common/manipulator_info.h>
#include <tesseract_common/joint_state.h>
#include <tesseract_common/types.h>
#include <tesseract_common/any_poly.h>
#include <tesseract_common/kinematic_limits.h>
#include <tesseract_common/yaml_utils.h>
#include <tesseract_common/yaml_extenstions.h>
#include <tesseract_common/collision_margin_data.h>
#include <tesseract_common/stopwatch.h>
#include <tesseract_common/timer.h>
#include <tesseract_common/profile.h>
#include <tesseract_common/profile_dictionary.h>
Go to the source code of this file.
Classes | |
struct | TestHasMemberFunction |
struct | TestHasMemberWithArgFunction |
struct | TestMissingMemberFunction |
class | TestProfile |
class | TestResourceLocator |
Resource locator implementation using a provided function to locate file resources. More... | |
Functions | |
CREATE_MEMBER_CHECK (update) | |
CREATE_MEMBER_FUNC_INVOCABLE_CHECK (add, double, double) | |
CREATE_MEMBER_FUNC_INVOCABLE_CHECK (update, std::shared_ptr< T > &) | |
CREATE_MEMBER_FUNC_RETURN_TYPE_CHECK (add, int, int) | |
CREATE_MEMBER_FUNC_SIGNATURE_CHECK (add, double, double, double) | |
void | createTestYamlWithIncludeDirectivesFile (const std::string &filePath, const std::string &content) |
int | main (int argc, char **argv) |
template<typename T > | |
void | runAnyPolyIntegralTest (T value, const std::string &type_str) |
template<typename T > | |
void | runAnyPolyUnorderedMapIntegralTest (T value, const std::string &type_str) |
void | runCalcJacobianTransformErrorDiffDynamicTargetTest (double angle) |
void | runCalcJacobianTransformErrorDiffTest (double anlge) |
void | runThrowNestedException () |
TEST (TesseractCommonUnit, almostEqualRelativeAndAbsUnit) | |
TEST (TesseractCommonUnit, anyIntegralTypesUnit) | |
TEST (TesseractCommonUnit, anySharedPtrUnit) | |
TEST (TesseractCommonUnit, anyUnit) | |
TEST (TesseractCommonUnit, anyUnorderedMapIntegralTypesUnit) | |
TEST (TesseractCommonUnit, boundsUnit) | |
TEST (TesseractCommonUnit, bytesResource) | |
TEST (TesseractCommonUnit, calcJacobianTransformErrorDiff) | |
Tests calcJacobianTransformErrorDiff. More... | |
TEST (TesseractCommonUnit, calcRotationalError) | |
Tests calcRotationalError which return angle between [-PI, PI]. More... | |
TEST (TesseractCommonUnit, calcTransformError) | |
Tests calcTransformError. More... | |
TEST (TesseractCommonUnit, CalibrationInfoYamlUnit) | |
TEST (TesseractCommonUnit, checkForUnknownKeys) | |
TEST (TesseractCommonUnit, CollisionMarginDataCompare) | |
TEST (TesseractCommonUnit, CollisionMarginDataUnit) | |
TEST (TesseractCommonUnit, computeRandomColor) | |
Tests calcTransformError. More... | |
TEST (TesseractCommonUnit, concat) | |
Tests calcTransformError. More... | |
TEST (TesseractCommonUnit, ContactManagersPluginInfoUnit) | |
TEST (TesseractCommonUnit, fileToString) | |
TEST (TesseractCommonUnit, generateRandomNumber) | |
TEST (TesseractCommonUnit, getTempPathUnit) | |
TEST (TesseractCommonUnit, getTimestampStringUnit) | |
TEST (TesseractCommonUnit, isIdenticalArrayUnit) | |
TEST (TesseractCommonUnit, isIdenticalMapUnit) | |
TEST (TesseractCommonUnit, isIdenticalSetUnit) | |
TEST (TesseractCommonUnit, isIdenticalUnit) | |
TEST (TesseractCommonUnit, isNumeric) | |
TEST (TesseractCommonUnit, JointStateTest) | |
TEST (TesseractCommonUnit, kinematicsPluginInfoUnit) | |
TEST (TesseractCommonUnit, linkNamesPairUnit) | |
TEST (TesseractCommonUnit, ManipulatorInfo) | |
TEST (TesseractCommonUnit, pointersComparison) | |
TEST (TesseractCommonUnit, pointersEqual) | |
TEST (TesseractCommonUnit, printNestedExceptionUnit) | |
TEST (TesseractCommonUnit, ProfileDictionary) | |
TEST (TesseractCommonUnit, QueryDoubleAttributeRequiredUnit) | |
TEST (TesseractCommonUnit, QueryIntAttributeRequiredUnit) | |
TEST (TesseractCommonUnit, QueryStringAttributeRequiredUnit) | |
TEST (TesseractCommonUnit, QueryStringAttributeUnit) | |
TEST (TesseractCommonUnit, QueryStringTextUnit) | |
TEST (TesseractCommonUnit, QueryStringValueUnit) | |
TEST (TesseractCommonUnit, reorder) | |
TEST (TesseractCommonUnit, sfinaeHasMemberFunction) | |
TEST (TesseractCommonUnit, sfinaeHasMemberFunctionInvocable) | |
TEST (TesseractCommonUnit, sfinaeHasMemberFunctionSignature) | |
TEST (TesseractCommonUnit, sfinaeHasMemberFunctionWithReturnType) | |
TEST (TesseractCommonUnit, stopwatch) | |
TEST (TesseractCommonUnit, StringAttributeUnit) | |
TEST (TesseractCommonUnit, TaskComposerPluginInfoUnit) | |
TEST (TesseractCommonUnit, TestAllowedCollisionEntriesCompare) | |
TEST (TesseractCommonUnit, TestAllowedCollisionMatrix) | |
TEST (TesseractCommonUnit, timer) | |
TEST (TesseractCommonUnit, toNumeric) | |
TEST (TesseractCommonUnit, TransformMapYamlUnit) | |
TEST (TesseractCommonUnit, trim) | |
TEST (TesseractCommonUnit, YamlAllowedCollisionEntries) | |
TEST (TesseractCommonUnit, YamlAllowedCollisionMatrix) | |
TEST (TesseractCommonUnit, YamlBasicIncludeTest) | |
TEST (TesseractCommonUnit, YamlCollisionMarginPairData) | |
TEST (TesseractCommonUnit, YamlCollisionMarginPairOverrideType) | |
TEST (TesseractCommonUnit, YamlIncludeInvalidIncludeTagTest) | |
TEST (TesseractCommonUnit, YamlIncludeMissingIncludeFileTest) | |
TEST (TesseractCommonUnit, YamlIncludeNestedIncludesTest) | |
TEST (TesseractCommonUnit, YamlIncludeSequenceIncludesMapTest) | |
TEST (TesseractCommonUnit, YamlIncludeSequenceIncludesTest) | |
TEST (TesseractCommonUnit, YamlPairsCollisionMarginData) | |
TEST (TesseractCommonUnit, YamlStdUnorderedMapStringBool) | |
TEST (TesseractPluginFactoryUnit, ContactManagersPluginInfoYamlUnit) | |
TEST (TesseractPluginFactoryUnit, KinematicsPluginInfoYamlUnit) | |
TEST (TesseractPluginFactoryUnit, TaskComposerPluginInfoYamlUnit) | |
CREATE_MEMBER_CHECK | ( | update | ) |
CREATE_MEMBER_FUNC_INVOCABLE_CHECK | ( | add | , |
double | , | ||
double | |||
) |
CREATE_MEMBER_FUNC_INVOCABLE_CHECK | ( | update | , |
std::shared_ptr< T > & | |||
) |
CREATE_MEMBER_FUNC_RETURN_TYPE_CHECK | ( | add | , |
int | , | ||
int | |||
) |
CREATE_MEMBER_FUNC_SIGNATURE_CHECK | ( | add | , |
double | , | ||
double | , | ||
double | |||
) |
void createTestYamlWithIncludeDirectivesFile | ( | const std::string & | filePath, |
const std::string & | content | ||
) |
Definition at line 3279 of file tesseract_common_unit.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 3723 of file tesseract_common_unit.cpp.
void runAnyPolyIntegralTest | ( | T | value, |
const std::string & | type_str | ||
) |
Definition at line 611 of file tesseract_common_unit.cpp.
void runAnyPolyUnorderedMapIntegralTest | ( | T | value, |
const std::string & | type_str | ||
) |
Definition at line 658 of file tesseract_common_unit.cpp.
void runCalcJacobianTransformErrorDiffDynamicTargetTest | ( | double | angle | ) |
Definition at line 2572 of file tesseract_common_unit.cpp.
void runCalcJacobianTransformErrorDiffTest | ( | double | anlge | ) |
Definition at line 2444 of file tesseract_common_unit.cpp.
void runThrowNestedException | ( | ) |
Definition at line 1222 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
almostEqualRelativeAndAbsUnit | |||
) |
Definition at line 1267 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
anyIntegralTypesUnit | |||
) |
Definition at line 646 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
anySharedPtrUnit | |||
) |
Definition at line 710 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
anyUnit | |||
) |
Definition at line 522 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
anyUnorderedMapIntegralTypesUnit | |||
) |
Definition at line 699 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
boundsUnit | |||
) |
Definition at line 768 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
bytesResource | |||
) |
Definition at line 398 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
calcJacobianTransformErrorDiff | |||
) |
Tests calcJacobianTransformErrorDiff.
Definition at line 2726 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
calcRotationalError | |||
) |
Tests calcRotationalError which return angle between [-PI, PI].
Definition at line 2269 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
calcTransformError | |||
) |
Tests calcTransformError.
Definition at line 2411 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
CalibrationInfoYamlUnit | |||
) |
Definition at line 2203 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
checkForUnknownKeys | |||
) |
Definition at line 1246 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
CollisionMarginDataCompare | |||
) |
Definition at line 3224 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
CollisionMarginDataUnit | |||
) |
Definition at line 2848 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
computeRandomColor | |||
) |
Tests calcTransformError.
Definition at line 2742 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
concat | |||
) |
Tests calcTransformError.
Definition at line 2756 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
ContactManagersPluginInfoUnit | |||
) |
Definition at line 1339 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
fileToString | |||
) |
Definition at line 431 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
generateRandomNumber | |||
) |
Definition at line 248 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
getTempPathUnit | |||
) |
Definition at line 994 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
getTimestampStringUnit | |||
) |
Definition at line 968 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
isIdenticalArrayUnit | |||
) |
Definition at line 876 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
isIdenticalMapUnit | |||
) |
Definition at line 833 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
isIdenticalSetUnit | |||
) |
Definition at line 855 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
isIdenticalUnit | |||
) |
Definition at line 817 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
isNumeric | |||
) |
Definition at line 197 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
JointStateTest | |||
) |
Definition at line 513 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
kinematicsPluginInfoUnit | |||
) |
Definition at line 1305 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
linkNamesPairUnit | |||
) |
Definition at line 2226 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
ManipulatorInfo | |||
) |
Definition at line 468 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
pointersComparison | |||
) |
Definition at line 933 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
pointersEqual | |||
) |
Definition at line 899 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
printNestedExceptionUnit | |||
) |
Definition at line 1234 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
ProfileDictionary | |||
) |
Definition at line 81 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
QueryDoubleAttributeRequiredUnit | |||
) |
Definition at line 1135 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
QueryIntAttributeRequiredUnit | |||
) |
Definition at line 1178 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
QueryStringAttributeRequiredUnit | |||
) |
Definition at line 1105 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
QueryStringAttributeUnit | |||
) |
Definition at line 1048 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
QueryStringTextUnit | |||
) |
Definition at line 1018 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
QueryStringValueUnit | |||
) |
Definition at line 1001 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
reorder | |||
) |
Definition at line 974 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
sfinaeHasMemberFunction | |||
) |
Definition at line 362 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
sfinaeHasMemberFunctionInvocable | |||
) |
Definition at line 370 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
sfinaeHasMemberFunctionSignature | |||
) |
Definition at line 390 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
sfinaeHasMemberFunctionWithReturnType | |||
) |
Definition at line 382 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
stopwatch | |||
) |
Definition at line 439 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
StringAttributeUnit | |||
) |
Definition at line 1078 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
TaskComposerPluginInfoUnit | |||
) |
Definition at line 1373 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
TestAllowedCollisionEntriesCompare | |||
) |
Definition at line 2826 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
TestAllowedCollisionMatrix | |||
) |
Definition at line 2767 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
timer | |||
) |
Definition at line 456 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
toNumeric | |||
) |
Definition at line 219 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
TransformMapYamlUnit | |||
) |
Definition at line 2179 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
trim | |||
) |
Definition at line 306 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlAllowedCollisionEntries | |||
) |
Definition at line 3614 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlAllowedCollisionMatrix | |||
) |
Definition at line 3656 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlBasicIncludeTest | |||
) |
Definition at line 3287 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlCollisionMarginPairData | |||
) |
Definition at line 3574 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlCollisionMarginPairOverrideType | |||
) |
Definition at line 3483 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlIncludeInvalidIncludeTagTest | |||
) |
Definition at line 3460 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlIncludeMissingIncludeFileTest | |||
) |
Definition at line 3437 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlIncludeNestedIncludesTest | |||
) |
Definition at line 3324 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlIncludeSequenceIncludesMapTest | |||
) |
Definition at line 3397 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlIncludeSequenceIncludesTest | |||
) |
Definition at line 3360 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlPairsCollisionMarginData | |||
) |
Definition at line 3532 of file tesseract_common_unit.cpp.
TEST | ( | TesseractCommonUnit | , |
YamlStdUnorderedMapStringBool | |||
) |
Definition at line 3688 of file tesseract_common_unit.cpp.
TEST | ( | TesseractPluginFactoryUnit | , |
ContactManagersPluginInfoYamlUnit | |||
) |
Definition at line 1665 of file tesseract_common_unit.cpp.
TEST | ( | TesseractPluginFactoryUnit | , |
KinematicsPluginInfoYamlUnit | |||
) |
Definition at line 1407 of file tesseract_common_unit.cpp.
TEST | ( | TesseractPluginFactoryUnit | , |
TaskComposerPluginInfoYamlUnit | |||
) |
Definition at line 1883 of file tesseract_common_unit.cpp.