Closed fenaux closed 2 years ago
Could you use meshcat solution instead?
I installed it with pip install meshcat
And error message are longer :( python -i meshcat-viewer.py leads to
Traceback (most recent call last):
File "/home/fenaux/anaconda3/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/fenaux/anaconda3/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/home/fenaux/anaconda3/lib/python3.9/site-packages/meshcat/init.py", line 5, in
Traceback (most recent call last):
File "/home/fenaux/Documents/robot/examples/meshcat-viewer.py", line 33, in
Everything works fine on our side. It looks like your whole linux environment is dirty. I would rather recommend starting from a clean install.
By the way, it seems that you have installed everything in the base env of conda, while you create a new one where you install stuff. Please see with your supervisor to get some tips.
Thanks for your prompt answers. Yes everything is installed in base env of conda.
I am afraid I am my own supervisor ;)
I am afraid I am my own supervisor ;)
OK. Then just start from a fresh install, without mixing different package managers and use conda env for isolating your developments. This is the only help I can provide due to my limited bandwith.
Hello @fenaux, you should get a clean conda base environment first. There are two options:
Afterwards, from a clean base environment you should create a specific conda environment for Pinocchio (see Section “Managing environments” https://conda.io/projects/conda/en/latest/user-guide/getting-started.html )
Now depending on what you want to do, inside the specific conda environment you do a conda install -c conda-forge pinocchio to get the master branch of Pinocchio installed.
If you want to use the Pinocchio-3x-preview branch with some new features, you can do conda install -c conda-forge pinocchio --only-deps , then you clone the repo , switch to the desired branch and built from source. In this Pinocchio environment you then install Meshcat using again conda. I hope it helps you.
I continue my journey in pinocchio world
I could run the examples as described in example page of this repo. But the ones with viewer give this error message : command line : python -i gepetto-viewer.py display /home/fenaux/Documents/robot/examples/gepetto-viewer.py:26: UserWarning: Error while starting the viewer client. Check whether gepetto-viewer is properly started viz.initViewer() Error while loading the viewer model. It seems you should start gepetto-viewer 'GepettoVisualizer' object has no attribute 'viewer' Traceback (most recent call last): File "/home/fenaux/Documents/robot/examples/gepetto-viewer.py", line 33, in viz.loadViewerModel("pinocchio")
File "/home/fenaux/anaconda3/lib/python3.9/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 137, in loadViewerModel
gui = self.viewer.gui
AttributeError: 'GepettoVisualizer' object has no attribute 'viewer'
I installed gepetto with conda : conda install gepetto-viewer-corba -c conda-forge as witten here https://github.com/stack-of-tasks/pinocchio/tree/devel/examples If I run gepetto-gui directly in a console I obtain the window interface but I do not know how to load a model with it while window's opening, this message appears 4 times in the console : libpng warning: iCCP: known incorrect sRGB profile
Thanks for your help