Jeremy, Do you have the ChronoEngine_sensor.dll file in the "C:\Users\<user name>\anaconda3\pkgs\pychrono-8.0.0-py39_0\Library\bin" folder?
I installed the same chrono build in a windows system within a conda environment with python 3.9.15 and managed to run the sensor demos without any issues. The issue in your build likely stems from an incomplete install of any of the dependencies for the sensor module (CUDA, GLFW,...). Would you be open to trying installing pychrono from the C++ sources? You can follow the instructions in Section B of https://api.projectchrono.org/pychrono_installation.html. Best, Nevindu On Monday, February 13, 2023 at 7:59:53 PM UTC-6 Jeremy Kimball wrote: > Thanks so much for the info Dan. Those papers look quite interesting and > I'm sure that repo will be an extremely useful resource. > > Now I just need to get the sensor module to import! > > Best, > > Jeremy > > On Monday, February 13, 2023 at 9:46:42 PM UTC-4 Dan Negrut wrote: > >> Hey Jeremy - This is an interesting project. >> >> The pieces are there I think. Probably start with a demo of the HMMWV and >> use rigid terrain. You can add sensors to the HMMWV model. In the past, we >> also did something like this with SCM deformable terrain. For instance, see >> here: >> >> “Enabling Artificial Intelligence Studies in Off-Road Mobility Through >> Physics-Based Simulation of Multi-Agent Scenarios,” A. Young, J. Taves, A. >> Elmquist, S. Benatti, A. Tasora, R. Serban, D. Negrut, ASME Journal on >> Computational and Nonlinear Dynamics, 17(5): 051001, 2022 >> >> “End-to-end learning for off-road terrain navigation using the Chrono >> open-source simulation platform,” S. Benatti, A. Young, A. Elmquist, J. >> Taves, A. Tasora, R. Serban, D. Negrut, Multibody System Dynamics, vol. 54, >> 399–414, 2022 >> >> >> >> Beyond looking at the examples provided in demos, another place where you >> can look for tidbits is here: https://github.com/uwsbel/public-metadata . >> >> Dan >> >> >> >> ------------------------------------------------- >> >> Bernard A. and Frances M. Weideman Professor >> >> NVIDIA CUDA Fellow >> >> Director, Wisconsin Applied Computing Center >> >> Department of Mechanical Engineering >> >> Department of Computer Science >> >> University of Wisconsin - Madison >> >> 4150ME, 1513 University Avenue >> >> Madison, WI 53706-1572 >> >> 608 772 0914 <(608)%20772-0914> >> >> http://sbel.wisc.edu/ >> >> http://projectchrono.org/ >> >> ------------------------------------------------- >> >> >> >> *From:* [email protected] <[email protected]> *On >> Behalf Of *Jeremy Kimball >> *Sent:* Monday, February 13, 2023 7:23 PM >> *To:* ProjectChrono <[email protected]> >> *Subject:* Re: [chrono] Re: PyChrono sensor import failed >> >> >> >> Hi Dan, >> >> >> >> Sure thing. My research is pertaining to active suspension control with >> terrain preview for off-road vehicles, and so I was hoping to use Project >> Chrono to play around with simulating sensor readings (LiDAR, stereo >> camera) that could be used for extracting road profile information for >> upcoming terrain. >> >> >> >> The ultimate goal would be to feed that sensor data into a controller to >> generate the active suspension control action. I also want to look at >> reinforcement learning control methods for active suspension and was >> considering using Chrono as a training environment. >> >> >> >> Any thoughts on that? >> >> >> >> Jeremy >> >> >> >> On Monday, February 13, 2023 at 9:09:46 PM UTC-4 Dan Negrut wrote: >> >> Jeremy – also tell us, ball park, what you want to do. >> >> We might be able to give you one of our models, with sensors and >> everything, for you to get going fast, rather than struggling to put things >> together… >> >> Are you into small AVs and such? I think we have one such model all set >> up, ready to go. >> >> Dan >> >> >> >> ------------------------------------------------- >> >> Bernard A. and Frances M. Weideman Professor >> >> NVIDIA CUDA Fellow >> >> Director, Wisconsin Applied Computing Center >> >> Department of Mechanical Engineering >> >> Department of Computer Science >> >> University of Wisconsin - Madison >> >> 4150ME, 1513 University Avenue >> >> Madison, WI 53706-1572 >> >> 608 772 0914 <(608)%20772-0914> >> >> http://sbel.wisc.edu/ >> >> http://projectchrono.org/ >> >> ------------------------------------------------- >> >> >> >> *From:* [email protected] <[email protected]> *On >> Behalf Of *Jeremy Kimball >> *Sent:* Monday, February 13, 2023 6:20 PM >> *To:* ProjectChrono <[email protected]> >> *Subject:* [chrono] Re: PyChrono sensor import failed >> >> >> >> Thanks for the response! >> >> >> >> 1) My operating system is Windows 10 Enterprise >> >> 2) I am using Python 3.9.15 >> >> 3) I specified a specific package with *conda install* >> *<pychrono_package>.tar.bz2. >> *I used 'pychrono 8.0.0-py39_0.tar.bz2'. >> >> 4) Yes, I have a directory called pychrono-8.0.0-py39_0. >> >> >> >> As far as I can tell when I run "conda list" I have all of the correct >> versions of the required packages. I have attached a .txt file of the >> "conda list" output in the venv. Maybe there is something out of place >> there that I am missing. >> >> >> >> Any ideas / other troubleshooting steps I could take? >> >> >> >> Thanks so much, >> >> >> >> Jeremy >> >> >> >> On Monday, February 13, 2023 at 7:52:04 PM UTC-4 [email protected] wrote: >> >> Hi Jeremy, >> >> >> >> Can you please answer a few questions so I can understand your issue >> better, >> >> 1. What is your Operating System? >> 2. Which version of Python are you using? >> 3. When you used conda to install Chrono, did you use * "conda >> install -c projectchrono pychrono" *command or did you specify a >> specific package with *conda install* *<pychrono_package>.tar.bz2*? >> 4. Go to the anaconda installation folder: In windows: >> "C:\Users\<username>\anaconda3\pkgs\", In linux: "~/anaconda3/pkgs" and >> see >> if you have a directory called: *pychrono-X.0.0-py3X_XXXX. *Is the *py3X >> *version consistent with your own python version? Ex: If you have >> python 3.10, you should have a directory called: >> pychrono-X.0.0-py310_XXXX. >> >> If there is a version mismatch for question 4, you need to install the >> correct chrono package corresponding to your python version. Go to: >> https://anaconda.org/projectchrono/pychrono/files to find the relevant >> package name and use *conda install* *<pychrono_package>.tar.bz2 *to >> install the package. >> >> >> >> Also, make sure you have all the requirements listed in >> https://api.projectchrono.org/pychrono_installation.html properly >> installed. >> >> >> >> Hope these steps fix your problem. Please let me know if this doesn't >> work, so we can further look into it. >> >> >> >> Best, >> >> Nevindu >> >> On Monday, February 13, 2023 at 3:46:38 PM UTC-6 Jeremy Kimball wrote: >> >> Hello everyone, >> >> >> >> I am relatively new to python programming and am just getting started >> with PyChrono for my masters thesis research, specifically I am interested >> in the sensor module. >> >> >> >> I have installed pychrono according to the steps outlined at: >> https://api.projectchrono.org/pychrono_installation.html. >> >> >> >> All of the demos other than the sensor ones run on my machine, however, >> when I attempt to run any of the sensor demos I get an import >> error: ImportError: cannot import name '_sensor' from 'pychrono'. >> >> >> >> I have Nvidia graphics driver version 528.02 and my machine has an Nvidia >> GeForce MX250 GPU. All of the packages in my venv seem to align with the >> required versions as per chrono documentation. >> >> >> >> I would also like to mention that I have only had success running the >> other demos when either 1) in VSCode I paste all of the .dll chrono files >> into the active folder or 2) when I run the demo scripts directly from the >> anaconda prompt. >> >> >> >> I am hopeful that there is a simple fix here that I am overlooking or >> that other users have encountered the same issue and found a solution. >> >> >> >> Any help would be greatly appreciated. >> >> >> >> Thanks, >> >> >> >> Jeremy >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ProjectChrono" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/projectchrono/07475c16-26a5-40e3-b563-c30b74d36c29n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/projectchrono/07475c16-26a5-40e3-b563-c30b74d36c29n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ProjectChrono" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/projectchrono/20f28c6a-7755-413f-a7f7-944dafdec4cen%40googlegroups.com >> >> <https://groups.google.com/d/msgid/projectchrono/20f28c6a-7755-413f-a7f7-944dafdec4cen%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/1f72302c-a397-4310-9771-4183d227dbb8n%40googlegroups.com.
