From f5840ff3f6618f79fadc684083dff4f1d5a9a9b3 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Wed, 26 Jul 2023 14:05:59 +0000 Subject: [PATCH] update --- src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp | 4 ++-- src/v2i-hub/CDASimAdapter/test/sensors.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp b/src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp index 188064087..c8102c9b6 100644 --- a/src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp +++ b/src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp @@ -267,7 +267,7 @@ namespace CDASimAdapter{ if(_sensors_json_v.isArray()) { std::for_each( _sensors_json_v.begin(), _sensors_json_v.end(), [&result, &sensor_id](auto& item){ - if(item["id"] == sensor_id) + if(item["sensor_id"] == sensor_id) { result = item; } @@ -275,7 +275,7 @@ namespace CDASimAdapter{ } else if(_sensors_json_v.isObject()) { - if(_sensors_json_v["id"] == sensor_id) + if(_sensors_json_v["sensor_id"] == sensor_id) { result = _sensors_json_v; } diff --git a/src/v2i-hub/CDASimAdapter/test/sensors.json b/src/v2i-hub/CDASimAdapter/test/sensors.json index 0299b6734..8c869554f 100755 --- a/src/v2i-hub/CDASimAdapter/test/sensors.json +++ b/src/v2i-hub/CDASimAdapter/test/sensors.json @@ -1,6 +1,6 @@ [ { - "id": "SomeID", + "sensor_id": "SomeID", "type": "SematicLidar", "location": { "x": 0.0, @@ -15,7 +15,7 @@ "proj_string": "+proj=tmerc +lat_0=38.95197911150576 +lon_0=-77.14835128349988 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +geoidgrids=egm96_15.gtx +vunits=m +no_defs" }, { - "id": "SomeID2", + "sensor_id": "SomeID2", "type": "LIDAR", "location": { "x": 1.0,