0

Hello StackEx community.

I am running a scenario in Veins 3.0 where I am using the commandDistanceRequest()function to find out the distance between two nodes. I am getting values which, I suppose, is in the domain of the MiXiM - OMNeT++ simulation play-field.

My questions here are:

  1. What is the unit of this distance returned by commandDistanceRequest()?

  2. I know that OMNeT++ and SUMO use different sets of coordinate spaces. Is it different for both of them or only the coordinate space differs here?

4

1 回答 1

1
  1. 返回的单位commandDistanceRequest()m(米)

链接:目前地理学中普遍使用两种坐标系:地理坐标系和矩形(也称为笛卡尔)坐标系。

  1. SUMO 和 OMNeT++ 都使用笛卡尔坐标。然而,在 SUMO 中,y轴被翻转并且存在偏移。
于 2015-06-11T16:28:48.327 回答