compiling problem
Closed this issue · 5 comments
Problem Description
My OS is Ubuntu18.04.
First, I installed PInocchio successfully following the instructions on this website https://stack-of-tasks.github.io/pinocchio/download.html :
- Add robotpkg apt repository
- Install Pinocchio
sudo apt install robotpkg-py27-pinocchio - Configure environment variables(add the following to the file ~/.bashrc and source it)
export PATH=/opt/openrobots/bin:$PATH
export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/opt/openrobots/lib/python2.7/site-packages:$PYTHONPATH
Then, I started installing tsid following the instructions on this website and failed when executing cmake:
I am really confused.
Dear @xuhuairuogu
Several solutions are possible
1/ You want to continue with sources:
I would suggest to try:
export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig/:$PKG_CONFIG_PATH
Note that there is '/' just after pkgconfig
You can put the following script here. Thiis the same page that you followed but I updated it.
2/ You might try to use the binaries:
apt-get install robotpkg-tsid
apt-get install robotpkg-py27-tsid
Note that there is currently a problem with the python bindings, and I will push a PR to fix this problem this week-end.
Thanks for your reply. Now I have successfully compiled and installed pinocchio, OpenSceneGraph3.4, PythonQt, gepetto-viewer, gepetto-viewer-corba and tsid all from source. However, when I execute examples related to Gepetto GUI, for example exercizes/ex_1.py, 3D models cannot be displayed. It seems that everything except for model displaying works well.
Hi @xuhuairuogu,
It seems that you did not install the osg-dae pluging necessary to load your meshes (because they are collada files).
You can do that using the following command:
sudo apt-get install robotpkg-osg-dae
See stack-of-tasks/pinocchio#705 for additional details.
Best,
Justin
I have converted all dae files to stl files by Blender and changed the 3D model file path in romeo.urdf. Although it is not an elegant way, it really works.