'Thorben Iggena' via ns-3-users
2018-07-31 15:08:00 UTC
Hi all,
I have some questions regarding some "real world" sensors in a simulation.
I have about 100 sensors with GPS coordinates. At the moment I read in the
coordinates and transform them to Cartesian coordinates:
Vector position = geopgraphicPositions.GeographicToCartesianCoordinates(
sensor->getLatitude1(), sensor->getLongitude1(), 0, GeographicPositions::
WGS84);
Ptr<ConstantPositionMobilityModel> nodeMobility = nodes.Get(i++)->GetObject<
ConstantPositionMobilityModel>();
nodeMobility->SetPosition(position);
Is this right what I am doing? As the visualisation is not working (some
python libraries do not work under Mint 19) I wanted at least to check the
distance between some nodes with the CalculateDistance function but this
gives me some strange values.
Within the tutorials I didn't found anything on how to work with WGS84
coordinates.
So does anyone have some links to tutorials etc. on how to do this? I think
I am not the first one but I didn't found anything useful yet.
Thanks and kind regards,
tanktoo
I have some questions regarding some "real world" sensors in a simulation.
I have about 100 sensors with GPS coordinates. At the moment I read in the
coordinates and transform them to Cartesian coordinates:
Vector position = geopgraphicPositions.GeographicToCartesianCoordinates(
sensor->getLatitude1(), sensor->getLongitude1(), 0, GeographicPositions::
WGS84);
Ptr<ConstantPositionMobilityModel> nodeMobility = nodes.Get(i++)->GetObject<
ConstantPositionMobilityModel>();
nodeMobility->SetPosition(position);
Is this right what I am doing? As the visualisation is not working (some
python libraries do not work under Mint 19) I wanted at least to check the
distance between some nodes with the CalculateDistance function but this
gives me some strange values.
Within the tutorials I didn't found anything on how to work with WGS84
coordinates.
So does anyone have some links to tutorials etc. on how to do this? I think
I am not the first one but I didn't found anything useful yet.
Thanks and kind regards,
tanktoo
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.