Skip to content
Snippets Groups Projects
Commit a0d1ef1c authored by Josef Jiru's avatar Josef Jiru
Browse files

Changed position representation from center to front bumper

parent 843b77f6
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ TraCiMobilityModel::UpdateFromTraCi (void) const
// update the helper state as well
try
{
Vector pos = vehicle->GetCenterPosition ();
Vector pos = vehicle->GetPosition ();
double height = 0;
......
......@@ -151,7 +151,7 @@ RoiManager::UpdateWithRegion ()
if (now >= it->second.nextCheck)
{
auto const& vehicle = it->second.vehicle;
auto pos = vehicle->GetCenterPosition ();
auto pos = vehicle->GetPosition ();
if (m_roi.IsInside(pos))
{
NS_LOG_LOGIC ("Vehicle entered ROI: " << it->first);
......@@ -188,7 +188,7 @@ RoiManager::UpdateWithRegion ()
for (auto it = m_insideRoi.begin (); it != m_insideRoi.end (); )
{
auto const& vehicle = it->second.vehicle;
auto pos = vehicle->GetCenterPosition ();
auto pos = vehicle->GetPosition ();
if (!m_roi.IsInside(pos))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment