|
| EXPECT_TRUE (tesseract_common::isNumeric(true_test)) |
|
| for (const auto &s :true_test) |
|
| EXPECT_FALSE (tesseract_common::isNumeric(false_test)) |
|
| for (const auto &s :false_test) |
|
| EXPECT_FALSE (tesseract_common::isNumeric(empty_string)) |
|
| for (size_t i=0;i< true_test.size();++i) |
|
| EXPECT_FALSE (tesseract_common::toNumeric(empty_string, value)) |
|
| limits (0, 0) |
|
| limits (0, 1) |
|
| limits (1, 0)=0 |
|
| limits (1, 1) |
|
| limits (2, 0) |
|
| limits (2, 1) |
|
| limits (3, 0) |
|
| limits (3, 1) |
|
| EXPECT_EQ (limits.rows(), random_numbers.rows()) |
|
| EXPECT_EQ (empty_limits.rows(), random_numbers2.rows()) |
|
Eigen::MatrixX2d | equal_limits (4, 2) |
|
| equal_limits (0, 0) |
|
| equal_limits (0, 1) |
|
| equal_limits (1, 0) |
|
| equal_limits (1, 1) |
|
| equal_limits (2, 0) |
|
| equal_limits (2, 1) |
|
| equal_limits (3, 0) |
|
| equal_limits (3, 1) |
|
| EXPECT_EQ (equal_limits.rows(), random_numbers3.rows()) |
|
Eigen::MatrixX2d | wrong_limits (4, 2) |
|
| wrong_limits (0, 0) |
|
| wrong_limits (0, 1) |
|
| wrong_limits (1, 0) |
|
| wrong_limits (1, 1) |
|
| wrong_limits (2, 0) |
|
| wrong_limits (2, 1) |
|
| wrong_limits (3, 0) |
|
| wrong_limits (3, 1) |
|
| EXPECT_EQ (wrong_limits.rows(), random_numbers4.rows()) |
|
| EXPECT_EQ (s, check1) |
|
| EXPECT_EQ (s, check_trimmed) |
|
| EXPECT_EQ (s, check2) |
|
| CREATE_MEMBER_CHECK (update) |
|
| CREATE_MEMBER_FUNC_INVOCABLE_CHECK (update, std::shared_ptr< T > &) |
|
| CREATE_MEMBER_FUNC_INVOCABLE_CHECK (add, double, double) |
|
| CREATE_MEMBER_FUNC_RETURN_TYPE_CHECK (add, int, int) |
|
| CREATE_MEMBER_FUNC_SIGNATURE_CHECK (add, double, double, double) |
|
| EXPECT_TRUE (t_true) |
|
| EXPECT_FALSE (t_false) |
|
| EXPECT_TRUE (i_update_true) |
|
| EXPECT_TRUE (i_add_true) |
|
| EXPECT_FALSE (i_update_false) |
|
| EXPECT_FALSE (i_add_false) |
|
| EXPECT_FALSE (t_add_false) |
|
| EXPECT_EQ (bytes_resource->getUrl(), "package://test_package/data.bin") |
|
| EXPECT_EQ (bytes_resource->isFile(), false) |
|
| EXPECT_EQ (bytes_resource->getFilePath(), "") |
|
| EXPECT_EQ (bytes_resource->locateResource("test"), nullptr) |
|
| ASSERT_EQ (data.size(), data2.size()) |
|
| for (unsigned char &i :data) |
|
| EXPECT_EQ (bytes_resource2->getUrl(), "package://test_package/data.bin") |
|
| EXPECT_EQ (bytes_resource->getResourceContents().size(), data.size()) |
|
| EXPECT_TRUE (manip_info.empty()) |
|
| EXPECT_TRUE (manip_info.tcp_frame.empty()) |
|
| EXPECT_TRUE (manip_info.manipulator.empty()) |
|
| EXPECT_TRUE (manip_info.manipulator_ik_solver.empty()) |
|
| EXPECT_TRUE (manip_info.working_frame.empty()) |
|
| EXPECT_FALSE (manip_info.empty()) |
|
| EXPECT_TRUE (manip_info.tcp_frame==manip_info_override.tcp_frame) |
|
| EXPECT_EQ (manip_info.manipulator, manip_info_override.manipulator) |
|
| EXPECT_TRUE (joint_state.joint_names==joint_names) |
|
| EXPECT_TRUE (joint_state.position.isApprox(positons, 1e-5)) |
|
| TESSERACT_ANY_EXPORT (tesseract_common, JointState) |
|
| EXPECT_TRUE (any_type.getType()==std::type_index(typeid(nullptr))) |
|
| EXPECT_TRUE (any_type.as< tesseract_common::JointState >()==joint_state) |
|
| EXPECT_TRUE (any_copy==any_type) |
|
boost::archive::xml_oarchive | oa (os) |
|
oa<< BOOST_SERIALIZATION_NVP(any_type);} tesseract_common::AnyPoly nany_type;{ std::ifstream ifs(tesseract_common::getTempPath()+"any_type_boost.xml");assert(ifs.good());boost::archive::xml_iarchive ia(ifs);ia > | BOOST_SERIALIZATION_NVP (nany_type) |
|
| EXPECT_TRUE (nany_type.getType()==std::type_index(typeid(tesseract_common::JointState))) |
|
| EXPECT_TRUE (nany_type.as< tesseract_common::JointState >()==joint_state) |
|
| EXPECT_ANY_THROW (nany_type.as< tesseract_common::Toolpath >()) |
|
Eigen::MatrixX2d | limits (6, 2) |
|
limits | col (0) |
|
limits | col (1) |
|
| EXPECT_FALSE (tesseract_common::isWithinPositionLimits< double >(v, limits)) |
|
| EXPECT_TRUE (tesseract_common::satisfiesPositionLimits< double >(v, limits, std::numeric_limits< float >::epsilon())) |
|
| EXPECT_FALSE (tesseract_common::satisfiesPositionLimits< double >(v, limits, std::numeric_limits< double >::epsilon())) |
|
| EXPECT_TRUE (tesseract_common::satisfiesPositionLimits< double >(v, limits, std::numeric_limits< double >::epsilon())) |
|
| ASSERT_EQ ((v - limits.col(0)).norm(), 0) |
|
| ASSERT_EQ ((v - limits.col(1)).norm(), 0) |
|
| EXPECT_TRUE (tesseract_common::isWithinPositionLimits< double >(v, limits)) |
|
| v (3) |
|
| EXPECT_TRUE (tesseract_common::isIdentical(v1, v2, false)) |
|
| EXPECT_TRUE (tesseract_common::isIdentical(v1, v2, true)) |
|
| EXPECT_FALSE (tesseract_common::isIdentical(v1, v2, true)) |
|
| EXPECT_FALSE (tesseract_common::isIdentical(v1, v2, false)) |
|
| EXPECT_FALSE (equal) |
|
| EXPECT_TRUE (equal) |
|
v1 | clear () |
|
v1 | insert (1) |
|
v2 | insert (2) |
|
|
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH | TESSERACT_COMMON_IGNORE_WARNINGS_POP |
|
std::vector< std::string > | false_test = { "a", "test sdfs", "1 2", "1.0 2.0", "+", "-", "=" } |
|
std::string | empty_string |
|
std::vector< double > | true_test_value = { 1, 1.5, -1, -1.5, 1e-5, 1e5, -1e-5, -1e5, 1.0e-5, 1.0e5, -1.0e-5, -1.0e5 } |
|
double | value = 0 |
|
Eigen::VectorXd | random_numbers = tesseract_common::generateRandomNumber(limits) |
|
Eigen::MatrixX2d | empty_limits |
|
Eigen::VectorXd | random_numbers2 = tesseract_common::generateRandomNumber(empty_limits) |
|
Eigen::VectorXd | random_numbers3 = tesseract_common::generateRandomNumber(equal_limits) |
|
Eigen::VectorXd | random_numbers4 = tesseract_common::generateRandomNumber(wrong_limits) |
|
std::string | check2 = "trim " |
|
std::string | check3 = " trim " |
|
std::string | check_trimmed = "trim" |
|
std::string | s = check1 |
|
bool | t_false = has_member_update<TestMissingMemberFunction>::value |
|
bool | i_add_true = has_member_func_invocable_add<TestHasMemberWithArgFunction>::value |
|
bool | i_update_false = has_member_func_invocable_update<TestHasMemberFunction>::value |
|
bool | i_add_false = has_member_func_invocable_add<TestHasMemberFunction>::value |
|
bool | t_add_false = has_member_func_return_type_add<TestMissingMemberFunction>::value |
|
std::shared_ptr< tesseract_common::BytesResource > | bytes_resource |
|
auto | data2 = bytes_resource->getResourceContents() |
|
auto | data2_stream = bytes_resource->getResourceContentStream() |
|
std::shared_ptr< tesseract_common::BytesResource > | bytes_resource2 |
|
tesseract_common::ManipulatorInfo | manip_info_override ("manipulator", "world", "tool0") |
|
manip_info_override | tcp_offset = Eigen::Isometry3d::Identity() * Eigen::Translation3d(0.0, 0.0, 0.25) |
|
manip_info_override | manipulator_ik_solver = "OPWInvKin" |
|
manip_info_override | working_frame = "base_link" |
|
| manip_info = manip_info.getCombined(manip_info_override) |
|
Eigen::VectorXd | positons = Eigen::VectorXd::Constant(3, 5) |
|
tesseract_common::JointState | joint_state (joint_names, positons) |
|
joint_state | joint_names = { "joint_1", "joint_2", "joint_3" } |
|
joint_state | position = Eigen::VectorXd::Constant(3, 5) |
|
joint_state | velocity = Eigen::VectorXd::Constant(3, 6) |
|
joint_state | acceleration = Eigen::VectorXd::Constant(3, 7) |
|
joint_state | effort = Eigen::VectorXd::Constant(3, 8) |
|
joint_state | time = 100 |
|
| any_type = joint_state |
|
tesseract_common::AnyPoly | any_copy = any_type |
|
auto & | any_type_ref1 = any_type.as<tesseract_common::JointState>() |
|
auto & | any_type_ref2 = any_type.as<tesseract_common::JointState>() |
|
auto & | any_copy_ref = any_copy.as<tesseract_common::JointState>() |
|
const auto & | any_type_const_ref1 = any_type.as<tesseract_common::JointState>() |
|
const auto & | any_type_const_ref2 = any_type.as<tesseract_common::JointState>() |
|
| v = v.array() + std::numeric_limits<float>::epsilon() |
|
std::vector< std::string > | v2 { "a", "b", "c" } |
|
| v1 ["1"] = 1 |
|
bool | equal = tesseract_common::isIdenticalMap<std::map<std::string, int>, int>(v1, v2) |
|