How to use mobilityType as 'TraCIMobility' instead of 'VeinsInetMobility' in Simu5G NRCar module?

178 views
Skip to first unread message

Gulabi Mandal

unread,
Dec 2, 2021, 12:59:53 AM12/2/21
to OMNeT++ Users
The NRCar in Simu5G extends -> NRUe which inturn extends -> Ue. In the Ue, the mobility module used is of type IMobility which extends 'inet.mobility.contract.IMobility'.and the default mobilityType is set as  "StationaryMobility" for Ue. In the NRCar module this default mobilityType is set to "VeinsInetMobility".

We need an NRCar module of mobilitytype "org.car2x.veins.modules.mobility.traci.TraCIMobility" instead of "VeinsInetMobility". To do so, the mobility module must extend  "org.car2x.veins.base.modules.*".  How do we do this? What specific code  in the .ned/ .ini/.h/.cc file will help attain this compatible new Car module? 

Regards, 
Gulabi Mandal




Message has been deleted

Surya Pusapati

unread,
Apr 26, 2022, 6:30:48 PM4/26/22
to OMNeT++ Users
Hi Gulabi,

I'm researching on how to record the following vectors { posx, posy, acceleration, and co2emission} at the NRCar node level?
I tried and failed to replace VeinsInetMobility with TraCIMobility.
Have you archived it??

Thanks in advance,
Surya

Surya Pusapati

unread,
Apr 26, 2022, 7:15:38 PM4/26/22
to OMNeT++ Users
After a detailed review, I found that,

"inet.mobility.contract.IMobility" was module interface of  "VeinsInetMobility"
"org.car2x.veins.base.modules.IMobility" was the module interface of "TraCIMobility"

Inheritance of Ue is as follows [ Ue --(extends)--> NRUe --(extends)--> NRCar ]. Therefore to change to mobilityType in NRCar the corresponding simple module "IMobility" must be modified in Ue module.
So in the source code of Ue {Ref}, I tried to interchange mobilityType to "TraCIMobilityand import "org.car2x.veins.base.modules.IMobility". This approach did not resolve the issue.


Best,
Surya

rania gharbi

unread,
Jun 2, 2022, 3:23:41 AM6/2/22
to OMNeT++ Users
Hello everyone, 
did you find a solution to this problem, I am in the same situation
Thank you

Reply all
Reply to author
Forward
0 new messages