riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
203 stars 129 forks source link

Getting SUMO position instead of latitude/longitude in sensor object detection {help wanted} #234

Closed gsohan closed 2 years ago

gsohan commented 2 years ago

Hi Riebl,

I was able to measure the position information of detected objects using Envmod service. But I noticed the position information is in terms of latitude and longitude. Can we measure position information of detected objects in terms of SUMO map position not latitude/longitude (similar to the position information in veins)?

Your help will be highly appreciated.

Thank you!

riebl commented 2 years ago

Hi @gsohan,

the EnvironmentModelObject class has a getCentrePoint method returning Cartesian coordinates (x & y) as Position structure. I guess this is what you are looking for, aren't you?

gsohan commented 2 years ago

Thank you so much for the information.