-
Notifications
You must be signed in to change notification settings - Fork 5
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
support for ubuntu 16 on OH master #7
Conversation
…-only Mf minor changes for husky and hyq
minor matlab scripts
In vtkLidarSource: not quite sure of what this is doing, but it compiles
@patmarion I have been mostly successful in upgrading OH's fork of director to vtk-7.1 as mentioned here: issue on RL/director repo I used RL/director's master and made the minimal modifications. Could you help me with a few of the remaining changes? (Note: when I forked director to RobotPerception I broke the connection in github.) |
Sure, I'm happy to help. I haven't made an openhumanoids build in a while though. What branch of openhumanoids are you building with? Or, feel free to copy and paste and compiler errors (here or email) and I'll try to offer suggestions. If there are any changes you'd like to move into director/master I can help with that too. I am leaving for a camping trip tomorrow though and won't be back until Tuesday! |
Probably easier if I just copy in the compile error here. This is the only compile error I haven't been able to resolve. It is triggered when I enable: I guess the problem is in wrapping that library for Python: [ 12%] Building CXX object src/vtk/DRCFilters/CMakeFiles/vtkDRCFiltersPythonD.dir/vtkLCMGLPropPython.cxx.o The only change I made to cmake was for src/vtk/DRCFilters/CMakeLists.txt: Any ideas? |
Can you edit
My guess is that when |
Then when you run make or cmake it will print out the value of |
It complied successfully when I removed all the libraries in the variable by setting: (Note that vtkWrappingPythonCore and vtkGIISupportQt could not be found) VTK_LIBRARIES is: vtkIOPLY;vtkCommonCore;vtksys;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkIOCore;vtkCommonExecutionModel;vtkzlib;vtklibxml2;vtkChartsCore;vtkCommonColor;vtkFiltersGeneral;vtkCommonComputationalGeometry;vtkFiltersCore;vtkInfovisCore;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkRenderingContext2D;vtkRenderingCore;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingFreeType;vtkfreetype;vtkFiltersHybrid;vtkImagingSources;vtkFiltersImaging;vtkImagingGeneral;vtkFiltersAMR;vtkIOXML;vtkIOXMLParser;vtkexpat;vtkParallelCore;vtkIOLegacy;vtkFiltersFlowPaths;vtkIOSQL;vtksqlite;vtkImagingMorphological;vtkIOExport;vtkIOImage;vtkDICOMParser;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkRenderingOpenGL;vtkImagingHybrid;vtkgl2ps;vtkFiltersHyperTree;vtkFiltersVerdict;verdict;vtkIOAMR;vtkhdf5_hl;vtkhdf5;vtkInteractionImage;vtkImagingColor;vtkInteractionStyle;vtkInteractionWidgets;vtkFiltersModeling;vtkRenderingAnnotation;vtkRenderingVolume;vtkRenderingImage;vtkFiltersPython;/usr/lib/x86_64-linux-gnu/libpython2.7.so;vtkWrappingPythonCore;vtkWrappingTools;vtkGUISupportQt;vtkFiltersPoints;vtkGeovisCore;vtkInfovisLayout;vtkViewsCore;vtkproj4;vtkFiltersGeneric;vtkIOMINC;vtkNetCDF;vtkNetCDF_cxx;vtkViewsInfovis;vtkRenderingLabel;vtkFiltersSMP;vtkDomainsChemistry;vtkIOParallel;vtkFiltersParallel;vtkIOGeometry;vtkIONetCDF;vtkexoIIc;vtkjsoncpp;vtkFiltersSelection;vtkoggtheora;vtkFiltersParallelImaging;vtkIOMovie;vtkIOInfovis;vtkIOTecplotTable;vtkIOEnSight;vtkIOParallelXML;vtkIOExodus;vtkIOLSDyna;vtkViewsContext2D;vtkRenderingVolumeOpenGL;vtkRenderingLOD;vtkFiltersTexture;vtkImagingMath;vtkIOVideo;vtkImagingStencil;vtkFiltersProgrammable;vtkRenderingLIC;vtkIOImport;vtkImagingStatistics |
@patmarion Could you please specify what the VTK_LIBRARIES should output? VTK_LIBRARIES is: vtkInteractionWidgets;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingCore;vtkRenderingOpenGL;vtkFiltersExtraction;vtkFiltersCore;vtkCommonCore Director compiles, but segfaults. (that's without Maps' Server) |
Earlier in
I suspect that later, when If director segfaults, I guess it could be because there are multiple versions of vtk installed. So director compiles and links against vtk7.1, but at runtime the python code |
@patmarion I did have VTK6.2 installed systemwide. I have removed it since, and trying to compile once again. I have manually unpacked (i.e. ctrl+c and ctrl+v) the precompiled vtk7.1 into software/build: And I'm trying to get director to use that, however, the following packages cannot be found from that compiled version of VTK 7.1:
as well as:
When checking the where python's vtk is pointing at (
Which seems correct. Do you have any suggestions where to get the aforementioned packages, if they're not included in the precompiled version of VTK7.1? |
What is printing that error message? Could you post this in the context of the build log? Also can you post the CmakeCache.txt file? |
I'm trying to build director using Thanks in advance for your help! |
I think the problem is PCL. You'll need to make sure that PCL is compiled with the same version of VTK 7.1.
If you just rm the pcl build and re-run it then it might just work. You can always help ensure it finds the correct version of VTK by setting this environment variable: |
You were correct, the PCL was build under the old version of VTK (6.2). I'm currently re-building PCL w/ VTK7.1 and will try again. |
It might cause an issue, but it might be ok. But you can |
support for the OpenHumanoids/DRC build of Director in ubuntu 16.06
these changes are against the RL/director master (as of yesterday)
core modifications: use the same versions of qt (4), vtk-pre-compiled (7.1) and pythonqt, PCL (1.8) and PointCloudLibraryPlugin using in the superbuild.
uses the 'oh fork' of drake and ddDrakeModelOH.cpp - which is 1 year old.
Key changes are in: src/vtk/DRCFilters/CMakeLists.txt
minor API changes in C++ code.
Remaining issues are that
(1) map server has to be disabled because it fails to compile against into a Python library
(2) octomap has a related issue
(3) various calls to setInput() still need to change to setInputData() in python segmentation code.
(4) the 'Task Panel' pop up doesnt work. (Pose utility does work)
Proof:
https://www.dropbox.com/s/pjoje19c2a63uys/2017-08-director-16-04.mp4?dl=0