You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found your work very interesting and I appreciate the efforts in open-sourcing the codes. But I'm having trouble use python from MATLAB itself on my Windows machine. I followed the instructions (Writing your first MATLAB script for Carla using the Python interface), but I keep getting an error message when i Getting to step 3 ( client.set_timeout(2.0);). The client class is successfully created in the workspace, but cannot be used further. Here's the error message I'm seeing:
Error using py.carla.libcarla.Client/set_timeout If not in the active function, the number of named parameters cannot be returned.
But I can actually run the third demo you provided (Getting sensors data in Simulink), and i have the same problem run the first demo. I've tried searching for a solution online, but haven't been able to find anything that works. Can anyone help me troubleshoot this issue? Thank you.
Hi @dokhyi, I'm facing a similar problem, but I cannot create a client itself, in the first place. Did you happen to find a workaround? Creating a client works fine for me when I'm running normal python scripts in my conda environment, but unable to do so in matlab.
MATLAB System block '[Carla/MATLAB System](matlab:open_and_hilite_hyperlink ('Carla/MATLAB System','error'))' error occurred when invoking 'setupImpl' method of 'CarlaEnvironment'. Caused by: Unable to resolve the name py.carla.Client.
Hi @dokhyi, I'm facing a similar problem, but I cannot create a client itself, in the first place. Did you happen to find a workaround? Creating a client works fine for me when I'm running normal python scripts in my conda environment, but unable to do so in matlab.
MATLAB System block '[Carla/MATLAB System](matlab:open_and_hilite_hyperlink ('Carla/MATLAB System','error'))' error occurred when invoking 'setupImpl' method of 'CarlaEnvironment'. Caused by: Unable to resolve the name py.carla.Client.
Python version: 3.7
Carla version: 0.9.8
Matlab version: R2021b
Thanks, in advance!
At that time, I also encountered a similar problem. As far as I know, this was caused by the Matlab software version and may involve some lower-level issues. However, I did not troubleshoot the specific reason. On my Windows 10 20H2 computer, Carla version 0.9.13, the Matlab versions that can run this project normally are 2019a to 2020b. Although Carla actors can be created normally, Matlab generally crashes when destroying or stopping the simulation. The cause of this problem is also unknown. I hope this can be helpful to you.
Hi there,
I found your work very interesting and I appreciate the efforts in open-sourcing the codes. But I'm having trouble use python from MATLAB itself on my Windows machine. I followed the instructions (Writing your first MATLAB script for Carla using the Python interface), but I keep getting an error message when i Getting to step 3 (
client.set_timeout(2.0);
). The client class is successfully created in the workspace, but cannot be used further. Here's the error message I'm seeing:Error using py.carla.libcarla.Client/set_timeout
If not in the active function, the number of named parameters cannot be returned.
But I can actually run the third demo you provided (Getting sensors data in Simulink), and i have the same problem run the first demo. I've tried searching for a solution online, but haven't been able to find anything that works. Can anyone help me troubleshoot this issue? Thank you.
My Software Version:
Matlab version: R2021b
`
PythonEnvironment - :
Carla version: 0.9.13
The text was updated successfully, but these errors were encountered: