-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use assimp to load STL files #1365
Use assimp to load STL files #1365
Conversation
exchanging absolute paths to 'package://rviz/...' allows loading files. There still seem to be some initialization/cleanup issues
Quick note on the ascii test file included with rviz: |
shows one regression of this code, last test file now fails to load but did not before.
@rhaschke I had another look at this testcase and there seems to be no way to run this truly headless ( |
The test fails on the ROS build farm, which indeed doesn't provide a (virtual) X server. moveit_ci in Travis does. What we do in MoveIt in such a case is disabling the test, see here. |
I had the "WIP" set until a moment ago, maybe that stops travis from running |
ogre cannot be initialized in a headless mode, therefore disable this test on the ros build farm. It will still be run on travis/moveit_ci where Xvfb is running
Interesting. Looks like this disables Travis indeed. Didn't know so far... As your PR changes ABI, we can only schedule it for Noetic. |
Thanks for your hint for Xvfb! I fixed ABI compatibility by re-adding the stl_loader class. I guess I should add a I re-added the files using |
Yes, please mark the class (or its constructor(s)) as deprecated with a TODO comment when to remove it (in Noetic). Squashing creates a new commit based on the actual remaining differences, so yes, history will be preserved. |
g++ 7.4 does not accept a description string unfortunately
I added a deprecation note and comment. Please note that this will be quite noisy without #1367 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general looks good to me. @wjwwood, I would like to have your opinion as well before merging.
This is intended to work on Collada (XML) files only. All other mesh files loaded via assimp would cause console noise.
thanks for merging @rhaschke |
Since ros-visualization/rviz#1365, link 4 is shown black only. Just loading and re-saving the STL with meshlab fixed the problem.
Description
rviz currently uses home grown code for loading STL files which does not support ASCII format but only binary format. As discussed in #1364 this is probably for historical reasons, ie stl_loader predates usage of assimp for loading other file formats (most notably collada dae)
This PR removes STL_loader and uses assimp instead.
Remaining issues
[ERROR] [1554565767.625447979]: XML parse error [package://fanuc_cr7ia_support/meshes/cr7ia/visual/base_link.stl]: XML_ERROR_PARSING_TEXT
most likelydue to incomplete setup