How to Add A Custom Sumo Simulation to OMNET++ - 雙語字幕
Hi everybody.
In this video, we are going to take the sumo simulations that we have created using sumo and put them in our Veins iNet simulation.
So first, before we just jump right into modifying our Veins iNet project, let's understand what is going on.
Under the hood.
I have our VANET tutorial project right here and this is the VANES iNet subfolder.
This comes from the VANES iNet subproject from the VANES project.
So within the VANES iNet subproject we have an omnet PPI and i file.
This is our configuration for our simulation.
And if you see in here we have our node which is the type name which this is doing the application.
So our node is actually our vehicle and then its application that it's running is the iNet sample application.
Then we have the setup for our wireless LAN interface and then after that we have our Vane's iNet mobility
This is setting the
mobility of our vehicle to use the Vane's iNet mobility that's applied within our
Source folder that was given to us in the Vane's sub Then we have the veins eye net manager.
This is setting up the manager with intervals for updates What hosted choosing which is going to be our local host and our port.
This is how it actually connects to sumo So port 9999 that's what sumo is listening to and we actually connect there and the main
manager is talking to our zoom out and within that we have set our launch config
with the square dot launch D XML and then our model type.
So what we are going to be making a change to is the launch configuration.
So let's look at the square launch D XML.
So if you look at the square launch the XML you will see that we have the launch
tag and then within that we have a copy file for our net file,
our root file,
a poly file which we have not created yet and a sumo config file which all these
files we've created aside from the poly file and we're not going to worry about the poly file when we're doing this tutorial.
So let's make a new simulation that's going to use the sumo sim that we tutorial video.
So I'm going to make a new folder and I'm going to call this veins, dinette, custom, because it's our custom map.
So this doesn't have anything in it.
It's an empty folder.
Let's copy and our Baines INET simulation and put it right here.
So we're going to have a few changes.
We to update our certain audio to use the new package path.
So we're going to go to I'm going to this to Vane's INET underscore custom.
So now our path is fine.
Now let's go to our omnet PPI ny file.
We had a custom sumo file and what I used was downtown Orlando.
So what I'm going to put in here is downtown Orlando.
So I'm going to make a launch D file that's going to be called downtown.
And actually I'm going to take this launch D that copied and rename it to be downtown.
So let's go in here and let's now move over our downtown net root and sumo config.
So this is the resulting downtown simulation that we created from our earlier tutorial video.
So we're going to copy the downtown net root and sumo.config.
We're going to put them in this folder.
We do not need any of these squares so I'm going to delete them.
So now we need to remain the squares to be downtown.
We do not have a poly file this hold of the poly structure for all the shadowing and obstacles and
this is something that you may want to create later on but we're sticking with
a more simple tutorial right now so we do not need this so we're going have our downtown.
dot CFG.
And save this.
Now, we can just run this simulation right now.
So if we right click our on that PPI and I file and we run as an on that simulation.
we'll begin launching.
Before we hit run, we need to make sure that we also start up sumo.
So let's start up sumo.
So I'm going to start up sumo here.
And now sumo is listening in on port 9999 and we're going to hit run.
So we start running our simulation.
We are going to see Zoom out a so we can see our vehicles running up.
This is our simulation and our vehicles are running on our map.
So now we are running the custom sumo simulation that we created in our last video using veins.
Now remember this is doing a random root that we just created for a quick simulation.
If you wanted to have it follow a specific path you would need to code those things.
So, congratulations, you just learned how to take a custom sumo simulation and put it into omnet plus plus.
If you liked what you saw, please remember to subscribe to my channel.
And if you have any questions about Vein's iNet or the VANET tutorials that I have put in on YouTube,
please join us on our Discord channel so that I can help you with anything that you need or make tutorial requests.
解鎖更多功能
安裝 Trancy 擴展,可以解鎖更多功能,包括AI字幕、AI單詞釋義、AI語法分析、AI口語等

兼容主流視頻平台
Trancy 不僅提供對 YouTube、Netflix、Udemy、Disney+、TED、edX、Kehan、Coursera 等平台的雙語字幕支持,還能實現對普通網頁的 AI 劃詞/劃句翻譯、全文沉浸翻譯等功能,真正的語言學習全能助手。

支持全平臺瀏覽器
Trancy 支持全平臺使用,包括iOS Safari瀏覽器擴展
多種觀影模式
支持劇場、閱讀、混合等多種觀影模式,全方位雙語體驗
多種練習模式
支持句子精聽、口語測評、選擇填空、默寫等多種練習方式
AI 視頻總結
使用 OpenAI 對視頻總結,快速視頻概要,掌握關鍵內容
AI 字幕
只需3-5分鐘,即可生成 YouTube AI 字幕,精準且快速
AI 單詞釋義
輕點字幕中的單詞,即可查詢釋義,並有AI釋義賦能
AI 語法分析
對句子進行語法分析,快速理解句子含義,掌握難點語法
更多網頁功能
Trancy 支持視頻雙語字幕同時,還可提供網頁的單詞翻譯和全文翻譯功能