moveit / srdfdom

Semantic Robot Description Format
BSD 3-Clause "New" or "Revised" License
12 stars 68 forks source link

Fix unit tests & setup.py file #94

Closed JafarAbdi closed 3 years ago

JafarAbdi commented 3 years ago

Fix: https://github.com/ros-planning/srdfdom/issues/92 Fix: https://github.com/ros-planning/srdfdom/issues/93

JafarAbdi commented 3 years ago

@ooeygui Could you please test/review this PR .?

codecov[bot] commented 3 years ago

Codecov Report

Merging #94 (1c2bde9) into ros2 (c6ea3aa) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             ros2      #94   +/-   ##
=======================================
  Coverage   68.21%   68.21%           
=======================================
  Files           3        3           
  Lines         607      607           
=======================================
  Hits          414      414           
  Misses        193      193           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c6ea3aa...1c2bde9. Read the comment docs.

ooeygui commented 3 years ago

Thank you for the quick turnaround - testing now

ooeygui commented 3 years ago

Confirmed working on ubuntu.

ooeygui commented 3 years ago

Looks like the Windows release hasn't caught up with the pytest issues, so I had to manually revert pip install pytest==6.0.2 - https://github.com/ms-iot/ROSOnWindows/issues/330.

Looks like we're missing some exports for Windows when building. Taking a look.

test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_C.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_nl_NL.UTF-8.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]
JafarAbdi commented 3 years ago

Looks like the Windows release hasn't caught up with the pytest issues, so I had to manually revert pip install pytest==6.0.2 - ms-iot/ROSOnWindows#330.

Looks like we're missing some exports for Windows when building. Taking a look.

test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_C.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_nl_NL.UTF-8.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]

Look like these errors should be fixed in https://github.com/ros-planning/srdfdom/pull/91, have you tried rebasing on it.?

ooeygui commented 3 years ago

@JafarAbdi Ack! I thought I cherry-picked your change into a fixed branch - checking now.

ooeygui commented 3 years ago

I can confirm that this change works for Windows and Linux! Thank you for fixing this @JafarAbdi