PyChrono Sensor

87 views
Skip to first unread message

Bo Zhou

unread,
May 16, 2022, 5:49:28 AM5/16/22
to ProjectChrono
Hello,

I've installed PyChrono through Conda on Windows 10. Our research has a lot to do with sensors and we want to evaluate the potential of using pyChrono for generating sensor data from mechanical simulations. However, the installation does not include the sensor module. For example when I ran the demo SensorTest0.py, it outputs

import pychrono.sensor as sens

ModuleNotFoundError: No module named 'pychrono.sensor'

Under the directory \Anaconda3\pkgs\pychrono-7.0.0-py38_0\Lib\site-packages\pychrono, there is also no file named sensor.py

I'm able to run all the demos in core and irrlicht so far.

The Python version is 3.8.13, conda version 4.12.0

If I run 'conda install -c projectchrono pychrono' then it generates:
# All requested packages already installed.

Has anyone else encountered similar issues or knows how to solve it? I would much appreciate any help.

Thanks


Dmitriy Ivolga

unread,
Dec 19, 2022, 1:54:26 AM12/19/22
to ProjectChrono
Hello,
I faced exactly the same problem. Perhaps lack of skills. Dear authors of the engine, can you describe the process of installing the sensor module for PyChrono in more detail.
Thank you in advance!

Best regards, Dmitriy

понедельник, 16 мая 2022 г. в 12:49:28 UTC+3, Bo Zhou:

Nevindu Batagoda

unread,
Dec 27, 2022, 10:29:52 AM12/27/22
to ProjectChrono
Hello,

Make sure you have installed all the necessary dependencies for PyChrono Sensor and satisfy all the requirements,
  1. NVIDIA graphics driver 515.xx +
  2. cuda 11.7 from conda : conda install -c nvidia/label/cuda-11.7.0 cuda-toolkit
  3. glfw:conda install -c conda-forge glfw
I was able to successfully build PyChrono with sensor support in Win10 w/ Anaconda and Python 3.9 and 3.8.13. A detailed installation guide can be found here: https://api.projectchrono.org/pychrono_installation.html. Let me know if there's anything else I can help with.

Best,
Nevindu

Reply all
Reply to author
Forward
0 new messages