-
Notifications
You must be signed in to change notification settings - Fork 4
Approximate Run time of the code #1
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
Comments
Hello, Glad to hear you are trying out the simulator! The game starts in a 'paused' state, you just need to press the spacebar to start the game. I just added the instructions for interfacing with the simulator in the readme. I also packaged the src code now using flit, which is better practice than the weird implicit imports I did before. Let me know how it goes! Best, |
Thanks a lot for your feedback. After pressing space bar I start getting the following message. Could you please have a quick glance below and give me a feedback again what could be going wrong. Many Thanks again for your help. NEW GAME ITERATION__________ File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\examples\merging_ scenario_paper.py", line 126, in File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\visualize.py", line 725, in run File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\app_init_.py", line 107, in run File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\app\base.py", line 167, in run File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\app\base.py", line 237, in idle File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\clock.py", line 292, in call_scheduled_functions File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\visualize.py", line 304, in control_loop File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\car.py", line 767, in control File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\car.py", line 747, in initialize_solvers File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\lagrangiansolver.py", line 144, in init File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\solvers.py", line 186, in get_panocpy_solver File "C:\Users\pulom\anaconda3\lib\site-packages\panocpy\casadi_problem.py", line 415, in generate_and_compile_casadi_problem_full File "C:\Users\pulom\anaconda3\lib\subprocess.py", line 528, in run CalledProcessError: Command '['cmake', '-B', 'C:\Users\pulom\AppData\Local\Temp\panocpy\cache\build\build', '-S', 'C:\Users\pulom\AppData\Local\Temp\panocpy\cache\build']' returned non-zero exit status 1. |
That is strange, it seems like the provided 'panocpy' package is unable to build the quadratic penalty solver. Basically, as you probably have noticed, I am using a forked version of PANOC-ALM as my solver since the numerical experiments seem to perform better when using a quadratic penalty method instead of ALM. Could you try the following things?
Finally, some additional questions:
|
Hello, Many Thanks again for your inputs and time. I am working on Windows 11 Home, with Anaconda and using Python 3.9.7 version. File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\examples\merging_scenario_paper.py", line 129, in File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\visualize.py", line 725, in run File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\app_init_.py", line 107, in run File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\app\base.py", line 167, in run File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\app\base.py", line 237, in idle File "C:\Users\pulom\anaconda3\lib\site-packages\pyglet\clock.py", line 292, in call_scheduled_functions File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\visualize.py", line 304, in control_loop File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\car.py", line 767, in control File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\car.py", line 747, in initialize_solvers File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\lagrangiansolver.py", line 141, in init File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\solvers.py", line 120, in get_OpEn_solver File "C:\Users\pulom\Downloads\GPG-drive-master\GPG-drive-master\src\solvers.py", line 73, in build_OpEn_problem File "C:\Users\pulom\anaconda3\lib\site-packages\opengen\builder\optimizer_builder.py", line 632, in build File "C:\Users\pulom\anaconda3\lib\site-packages\opengen\builder\optimizer_builder.py", line 225, in __generate_icasadi_lib File "C:\Users\pulom\anaconda3\lib\site-packages\jinja2\environment.py", line 1090, in render File "C:\Users\pulom\anaconda3\lib\site-packages\jinja2\environment.py", line 832, in handle_exception File "C:\Users\pulom\anaconda3\lib\site-packages\jinja2_compat.py", line 28, in reraise File "C:\Users\pulom\anaconda3\lib\site-packages\opengen\templates\icasadi\icasadi_lib.rs", line 23, in top-level template code File "C:\Users\pulom\anaconda3\lib\site-packages\opengen\builder\problem.py", line 118, in dim_decision_variables TypeError: 'int' object is not callable |
Hmmm, I am quite surprised to see that. Doesn't cmake give an error? I guess panocpy is unable to find a C++ compiler. Do you have a C compiler installed, such as MSVC on Windows? For the problem you encountered with OpEn, I encountered this as well a couple of days ago as well when packaging the repository and testing OpEn. This is due to OpEn not being compatible with casadi.tools. Commit 7a6b467 contains a fix to this. Basically, I think you just need to change these lines: GPG-drive/src/GPGdrive/lagrangiansolver.py Lines 140 to 147 in 7a6b467
|
Let me check deeper about panocpy and then I will give you a feedback. Regarding OpEn, I did as you proposed, I get some progress but then get the following error in Building Optimizer. |
I met the same problem when using desktop computer, but my laptop runs this repository successfully, I recall that the visual studio 2019 is pre-installed in my laptop, I am downloading the same version of visual studio in my desktop now |
Hello, Many Thanks for your repository. I was trying to run merging_scenario_paper.py code. It displayed the following output in the console and then seems to have stucked since 4 hrs now. Does the code really takes time or something has gone wrong in my installation? Many Thanks for your help.
added constraint between 0 and 1 for 0
added constraint between 1 and 2 for 0
added constraint between 1 and 3 for 0
added constraint between 0 and 2 for 0
added constraint between 0 and 3 for 0
added constraint between 1 and 0 for 1
added constraint between 0 and 2 for 1
added constraint between 0 and 3 for 1
added constraint between 1 and 2 for 1
added constraint between 1 and 3 for 1
The text was updated successfully, but these errors were encountered: