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
Error on SUMO versions #14
Comments
Dear Lucia,
Let me know if this fixes your problem. |
Hi Michele, I am following up on this... Just to see if I understand.. the installation has to be done as follows: VEINSDownload VEINS from here https://veins.car2x.org/download/ PLEXE-VEINS
PLEXE-SUMO
|
It would be better to clone it from https://github.com/sommer/veins into
Yes, you need to compile it.
Yes, choose the new version.
As you wish. If you keep
Plexe-SUMO is not required anymore, as of SUMO 1.2.0 my platooning models have been integrated into the official release. So you can just download and install the SUMO 1.6.0 binaries and you are ready to go without compiling SUMO. |
Hello Michele, Thank you for the Plexe, It greatly helps for my MSc dissertation as I'm starting my project on cyber threats on the platoon formations and its communications. I hope your libraries will help me a lot with my experiments. In the meantime, I am trying to install the latest version of the Plexe by referring to the above comments, and I'm hitting with the below error while compiling. I am trying to compile on the macOS 10.15.6. Appreciate any help here thanks. "plexe/messages/UpdatePlatoonFormation_m.cc I just need to try it out with my host machine before going into VMs. If the latest version not ready for macOS yet I may look for alternatives. Thanks. Regards, |
Plexe depends on Veins, the error is indicating that the Veins library cannot be found. Have you built it, and passed its location to Plexe's configure? |
Hi mightyCelu, Thank you for the prompt response.
then I tried to build the Plexe and the error is gone. However, I got some error when try to run the first example.
It seems I build the Veins without specifying the MODE. so I rebuilt again with the release mode. this time I got a different error when trying to run the first example.
Please help with this error. Is it something to do with the OMNET++ version? I install the 5.1.1 version. Thanks Regards, |
The above issue is related to not properly installing omnet++. Once I build the omnet++ properly its works fine. Thanks. |
Hi @SafrasIqbal sorry to jump in. I am interested in your Thesis once it's done. If you can share it, I will be happy to read. I am working on Platooning and Reinforcement Learning. Cheers. PD: I will make a "Pull request" with an updated version of the installation steps, in the case Michele wants to update the tutorial. |
Hi Lucian, Thank you for the interest, yes sure I am happy to share the thesis one it's done. I should thank you for initiating this thread, it did enlighten me with the PLEXE version 3.0. It was much easier to get it up and running the simulator. In fact, I was struggling with the 2.5 version in 3 different environments. However, with the 3.0 version, I have some issues with generating the results. Regards, |
I would like to confirm the following: This wont work with SUMO 1.6, right? Thanks! |
For me yes, it did work with SUMO 1.6, no issues.
|
Yes, Veins will work with SUMO 1.6. |
Hi all, thank you very much for your kind replies. *Import the project into your OMNeT++ IDE workspace by clicking File > Import > General: Existing Projects into Workspace and selecting the directory you unpacked the module framework to. Build the newly imported project by choosing Project > Build All in the OMNeT++ 5 IDE. After the project built, you are ready to run your first IVC evaluations, but to ease debugging, the next step will ensure that SUMO works as it should.* I just wanted to check whether this step was correct. As I am not given the option to do "Next" just to "Finish". Thank you very much. |
Finish should work just fine, it's simply the last step in the process. |
Thank you very mych @mightyCelu ! I am following the tutorial. I am finding this step a little bit bananas :) I believe it is written with Windows in mind (hence the mention of MinGW) . Even so, I guess the initial directory change to VEINS' folder is not needed if one just wants to test SUMO. Is this step aimed to test SUMO's GUI working?
Or is this step aimed to some other configuration that I am missing. Thank you very much for your time. See below: _Step 4: Make sure SUMO is working In the OMNeT++ MinGW command line window, you should be able to have SUMO simulate an example scenario by changing the current directory to /c/Users/user/src/veins-5.0/examples/veins/ using cd ../veins-5.0/examples/veins and running /c/Users/user/src/sumo-1.2.0/bin/sumo.exe -c erlangen.sumo.cfg_ |
Yes, the tutorial is executed on Windows. On Linux it should work similarly, just that the paths will be different, and the binaries don't have |
Hi @mightyCelu , Thank you very much for your reply. Now I have made progress up to STEP 5: "Final step: Run the Veins demo scenario" I was able to do the following:
In my case: Then for the equivalent of this line, I did: I left that there and opened a new Terminal window and did: It will start OMNET++ and throw these messages. Since It's my first time with this application, I am not sure what to select Thank you very much: |
The
|
Hello @mightyCelu , thank you very much for all your answers. I have been searching online with no luck so far. Do you have an idea what it could be? |
From the screenshot you shared it looks to me like you only included/importet the example directory of veins ( Otherwise, I need a bit more context to be able to help, such as details to the error message or an console/error log. |
Hi @mightyCelu , thank you for your assistance. The way I've imported the projects is following the screen I've pasted above. I am pasting it here for your reference. It seems to me that it imported everything. Then I've built the project as indicated on the tutorial. How can I get more context on the error beyond the pop up screen? |
This is interesting. I just tried to import Veins as well, for me it looks different, in particular, the first project in your list is |
First of all, thank you very much @mightyCelu for all your time dedicated to solving my issues. I believe I've found the light at the end of the tunnel. In exchange, I offer to make a nice "Pull Request" with a Linux installation tutorial to help other Linux users. Now, I will explain where the issue was: If you look above, one of the messages, says "It would be better to clone it from https://github.com/sommer/veins into ~/src/veins so it is easier to do upgrades later." This actually was complicating importing VEINS into Omnet, simply due to the folder structure, as you pointed out.
Or this is what I did (POLEMIC DECISION, can be undone if necessary):
(We need to unzip it, as omnet doesn't allow to load .zip files) To test SUMO (step 4) To run the VEINS scenario (step 5) On a new terminal:
And here are the resulting screens, which seem to indicate that everything run as planned (RIGHT??): Except for this part, which I don't see (see the screenshots below): "If everything worked as intended this will give you a working simulation scenario using OMNeT++ and SUMO running in parallel to simulate a stream of vehicles that gets interrupted by an accident." |
Great to hear that everything worked out for you and thanks for posting this guide, it might help someone. The screenshots you posted look like everything's working fine now. |
Hi @mightyCelu thank you very much for all this help. Once this issue is closed, the instructions will be hidden. So I plan to make a Pull Request on the GitHub Repo, that you can use for following users. Now that I have compiled VEINS, I would like to compile PLEXE-VEINS. The instructions I was given by @michele-segata above are as follows:
Here it complains that it can't find the git Repo:
Error message: Is the address of the git checkout correct? Thanks. Then the rest of the instructions, as I understand them, are as follows:
|
As I understood, I think it is because the branch |
Hi @whatgit. That is true. I am not sure why Michele recommended Version Alpha-2... In any case, I checked out that branch, and then execute the following commands:
Getting this lovely error message:
|
I am not sure what could cause the error, it just did not find the header file. Hopefully it exists? Perhaps you could try to configure it like this instead? I have not done this for a very long time, so I have no experience configuring it with |
Thank you very much @whatgit. The make file is searching on this directory: #include "veins/modules/messages/BaseFrame1609_4_m.h" While I've found the header file on these directories: It seems to me that I didn't build VEINS correctly into Omnet :) |
Hi Lucia, I assume you have built the Veins 5.0 through OMNET++ IDE as per the tutorial. I would suggest trying below steps which worked for me.
Once the above steps completed, try to build the Plexe-Veins 3.0 again in Release mode. The first time it worked for me in release mode. If I don't specify the mode, it will compile in debugging and release mode both, in that case, I did encounter some issue in debug mode. So it's better try in release mode first and compile again for debug mode if necessary. |
Hi @SafrasIqbal thank you very much. Then I compiled VEINS with OMNET as you can see my screenshots above. Then, Michele suggested me above to do the following:
|
Hi Lucia, Sorry for the confusion, my suggestion is on Veins 5.0 which you need to built before compiling Plexe-Veins. The all the steps you mentioned above are applicable after compiling Veins 5.0.
just ./configure will not work in "Plexe-veins" it should be tried on Veins folder. |
Hi @SafrasIqbal , my confussion comes with the fact that now I have 2 set of directives: Safras:
While @michele-segata :
|
Hi Lucia, I can see 2 different directives for 2 different software. Both are not same.
If you notice: Apologies if I try to confuse you further. |
Hi @SafrasIqbal Thank you very much for this. I first compiled VEINS (using the GitHub link and some screenshots that you will see above) and following this tutorial: https://veins.car2x.org/tutorial Supposedly, my compilation of VEINS was successful (see the chain above where @mightyCelu tells me that my compilation was successful. So I don't know what I am doing wrong. My guess is that I need to "recompile" veins again, is this what you are saying?
and then this:
Thanks |
Yes you have complied Veins above using OMNET++ IDE and the path for this I can see
I think easiest way to resolve your issue to include above path while compiling Plexe-Veins.
Please try this first. if this is not working will try some alternatives. |
@SafrasIqbal SUCCESS! thank you very very much. Now, This is my understanding, if you can please confirm: There are 3 options to run PLEXE:
Is my understanding correct? |
Ok great. finally, it worked. :) I think above option 1 & 2 should be combined into one option. The second option is as option 3, so there're 2 options. |
yes, indeed you are right. I'll put them together in the tutorial. So option 1 above, doesn't allow one to do V2V communications, right? it's just to test platooning in Sumo? I guess that's the difference between (1) and (3) above (that will be called "2") |
I'm glad you finally made it work. I'll try to clear some doubts.
Plexe is composed by two parts. The mobility part (control algorithms and vehicle dynamics) which is implemented in SUMO, and the communication and applications part which is this repository. Option 1+2 and option 3 are exactly the same thing. The only difference is that, in option 3, you are building Veins using the OMNeT++ GUI instead of doing it on the command line. The option of using Plexe without simulating communication is a different thing. You don't need OMNeT++, nor Veins, nor Plexe in this repository. You just need SUMO (post version 1.2.0, because Plexe modules have been embedded into SUMO as of version 1.2.0) and the Python APIs for Plexe. The Python APIs control the SUMO simulation and the tells vehicles how to behave. Another doubt you had was about To sum up, this is the complete procedure I follow to build this repository (I am assuming SUMO and OMNeT++ are already installed).
|
Thank you very much to everyone who has helped me through the installation of all these libraries. I'll close the issue now as all my questions have been answered and I am able to run the examples provided. |
Hello Michele,
Thank you very much for these libraries.
I am on Ubuntu 18 and I have some problems on installation that I've fixed them this way:
Error: undefined-reference-to-symbol-pthread-key-deleteglibc-2-2-5
Solution:
$ make -j <my number of CPUs> **–pthread**
I believe this solved the problem... however, I am trying to run the tutorials:
Now, I am trying:
./run -u Cmdenv -c Sinusoidal -r 2
However, I am getting the following error:
<!> Model error: TraCI server "SUMO 1.6.0" reports API version 20, which is unsupported. We recommend using SUMO 0.32.0 -- in module (Veins::TraCIScenarioManagerForker) Highway.manager (id=6), at t=0s, event #2
QUESTION: Should I downgrade my SUMO version to 0.32 or is there any other solution available?
Downgrading will not be convenient since I am using CARLA on this same machine which needs the latest SUMO
Thank you very much.
The text was updated successfully, but these errors were encountered: