Skip to content
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

Add the depenency required to test the example #4

Open
GiulioRomualdi opened this issue Feb 24, 2024 · 4 comments
Open

Add the depenency required to test the example #4

GiulioRomualdi opened this issue Feb 24, 2024 · 4 comments

Comments

@GiulioRomualdi
Copy link
Member

In this issue, I will list the required example to run the example:

  • scipy
  • resolve-robotics-uri-py
  • icub-models

(all of them are available in conda)

We may think of adding them somewhere

@traversaro
Copy link

traversaro commented Feb 24, 2024

I also tried the example, and I noticed that if you are not interested in using Blender interactively (for example if you want just to generate images programmatically), just install via pip the bpy module works fine. However, the example on its own does not anything, I tried to add a rendering of the image, but for some reason a big cube appear (during some frames I see the iCub head in the top of the cube, so I guess we just need to remove the cube from the default scene or something like that).
The code to render the image is in traversaro@c221e48, while the packages I installed via:

mamba create -n testblend scipy resolve-robotics-uri-py numpy python=3.10 pip
pip install bpy blend-my-bot

are:

(testblend) traversaro@IITBMP014LW012:~/blend-my-bot$ mamba list
# packages in environment at /home/traversaro/miniforge3/envs/testblend:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
ampl-mp                   3.1.0             h2cc385e_1006    conda-forge
assimp                    5.3.1                hfb0e8fe_2    conda-forge
attr                      2.5.1                h166bdaf_1    conda-forge
blend-my-bot              1.0.1                    pypi_0    pypi
bpy                       3.6.0                    pypi_0    pypi
bzip2                     1.0.8                hd590300_5    conda-forge
ca-certificates           2024.2.2             hbcca054_0    conda-forge
certifi                   2024.2.2                 pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
cython                    3.0.8                    pypi_0    pypi
dbus                      1.13.6               h5008d03_3    conda-forge
eigen                     3.4.0                h00ab1b0_0    conda-forge
expat                     2.5.0                hcb278e6_1    conda-forge
gettext                   0.21.1               h27087fc_0    conda-forge
glfw                      3.3.10               hd590300_0    conda-forge
icu                       73.2                 h59595ed_0    conda-forge
icub-models               2.5.0           py310hc6cd4ac_0    conda-forge
idna                      3.6                      pypi_0    pypi
idyntree                  10.3.0          py310h3478c64_0    conda-forge
ipopt                     3.14.14              h04b96a2_1    conda-forge
irrlicht                  1.8.5                h2a6caf8_4    conda-forge
lame                      3.100             h166bdaf_1003    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libblas                   3.9.0           21_linux64_openblas    conda-forge
libboost                  1.82.0               h6fcfa73_6    conda-forge
libcap                    2.69                 h0f662aa_0    conda-forge
libcblas                  3.9.0           21_linux64_openblas    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libexpat                  2.5.0                hcb278e6_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libflac                   1.4.3                h59595ed_0    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    conda-forge
libgcrypt                 1.10.3               hd590300_0    conda-forge
libgfortran-ng            13.2.0               h69a702a_5    conda-forge
libgfortran5              13.2.0               ha4646dd_5    conda-forge
libglib                   2.78.4               h783c2da_0    conda-forge
libglu                    9.0.0             hac7e632_1003    conda-forge
libgomp                   13.2.0               h807b86a_5    conda-forge
libgpg-error              1.48                 h71f35ed_0    conda-forge
libhwloc                  2.9.3           default_h554bfaf_1009    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
liblapack                 3.9.0           21_linux64_openblas    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopenblas               0.3.26          pthreads_h413a1c8_0    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libosqp                   0.6.3                h59595ed_0    conda-forge
libpng                    1.6.42               h2797004_0    conda-forge
libqdldl                  0.1.5                h27087fc_1    conda-forge
libscotch                 7.0.4                h91e35bf_1    conda-forge
libsndfile                1.2.2                hc60ed4a_1    conda-forge
libspral                  2023.09.07           h6aa6db2_2    conda-forge
libsqlite                 3.45.1               h2797004_0    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_5    conda-forge
libsystemd0               255                  h3516f8a_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libxcb                    1.15                 h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.5               h232c23b_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
metis                     5.1.0             h59595ed_1007    conda-forge
mpg123                    1.32.4               h59595ed_0    conda-forge
mumps-include             5.6.2                ha770c72_4    conda-forge
mumps-seq                 5.6.2                hfef103a_4    conda-forge
ncurses                   6.4                  h59595ed_2    conda-forge
numpy                     1.26.4          py310hb13e2d6_0    conda-forge
openssl                   3.2.1                hd590300_0    conda-forge
osqp-eigen                0.8.1                hdd734ac_0    conda-forge
pcre2                     10.42                hcad00b1_0    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pulseaudio-client         17.0                 hb77b528_0    conda-forge
python                    3.10.13         hd12c33a_1_cpython    conda-forge
python_abi                3.10                    4_cp310    conda-forge
readline                  8.2                  h8228510_1    conda-forge
requests                  2.31.0                   pypi_0    pypi
resolve-robotics-uri-py   0.1.0              pyhd8ed1ab_0    conda-forge
scipy                     1.12.0          py310hb13e2d6_2    conda-forge
scotch                    7.0.4                h23d43cc_1    conda-forge
sdl                       1.2.68               h293081c_0    conda-forge
sdl2                      2.28.5               hdbcbe63_1    conda-forge
setuptools                69.1.1             pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
unixodbc                  2.3.12               h661eb56_0    conda-forge
urllib3                   2.2.1                    pypi_0    pypi
wheel                     0.42.0             pyhd8ed1ab_0    conda-forge
xorg-fixesproto           5.0               h7f98852_1002    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libx11               1.8.7                h8ee46fc_0    conda-forge
xorg-libxau               1.0.11               hd590300_0    conda-forge
xorg-libxcursor           1.2.0                h0b41bf4_1    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h0b41bf4_2    conda-forge
xorg-libxfixes            5.0.3             h7f98852_1004    conda-forge
xorg-libxinerama          1.1.5                h27087fc_0    conda-forge
xorg-libxrandr            1.5.2                h7f98852_1    conda-forge
xorg-libxrender           0.9.11               hd590300_0    conda-forge
xorg-randrproto           1.5.0             h7f98852_1001    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h0b41bf4_1003    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstandard                 0.22.0                   pypi_0    pypi
zstd                      1.5.5                hfc55251_0    conda-forge

fyi this could be useful for our investigations @pattacini @STaliani @AleTarsi @SimoneCortinovis97

@Giulero
Copy link
Collaborator

Giulero commented Feb 26, 2024

That's great @traversaro! We might add this to the examples!
I guess the cube appears since when Blender is opened, the scene is composed of a cube, a light, and a camera.

@traversaro
Copy link

I guess the cube appears since when Blender is opened, the scene is composed of a cube, a light, and a camera.

Yes, I imagined something like that, probably we need to remove it. I guess import bpy does something different when invoked inside the blender python interpreter or when invoked in a standalone python interpreter.

@traversaro
Copy link

fyi @AlessiaDMiit @AleMel @giotherobot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants