Skip to content

Commit 6668806

Browse files
Adjusted RobotecSplineTools To Support 2505 (#123)
* Adjusted RobotecSplineToolsTo2505 Signed-off-by: Michał Pełka <[email protected]> * Version bump and compatibility marked Signed-off-by: Norbert Prokopiuk <[email protected]> --------- Signed-off-by: Michał Pełka <[email protected]> Signed-off-by: Norbert Prokopiuk <[email protected]> Co-authored-by: Norbert Prokopiuk <[email protected]>
1 parent 8c6a58b commit 6668806

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

Gems/RobotecSplineTools/Code/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ly_add_target(
5454
Gem::Atom_RPI.Public
5555
Gem::AtomLyIntegration_CommonFeatures.Static
5656
Gem::ROS2.Static
57+
Gem::LevelGeoreferencing.API
5758
)
5859

5960
# Here add ${gem_name} target, it depends on the Private Object library and Public API interface

Gems/RobotecSplineTools/Code/Source/Clients/SplineSubscriber.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include <AzCore/Component/TransformBus.h>
44
#include <AzCore/Serialization/EditContext.h>
55
#include <AzCore/Serialization/SerializeContext.h>
6+
#include <Georeferencing/GeoreferenceBus.h>
67
#include <LmbrCentral/Scripting/TagComponentBus.h>
78
#include <LmbrCentral/Shape/SplineComponentBus.h>
8-
#include <ROS2/Georeference/GeoreferenceBus.h>
99

1010
namespace SplineTools
1111
{
@@ -115,13 +115,14 @@ namespace SplineTools
115115
}
116116
else if (frame == "WGS84" && m_config.m_allowWGS84)
117117
{
118-
ROS2::WGS::WGS84Coordinate currentPositionWGS84;
118+
using namespace Georeferencing;
119+
WGS::WGS84Coordinate currentPositionWGS84;
119120
currentPositionWGS84.m_latitude = pose.position.x;
120121
currentPositionWGS84.m_longitude = pose.position.y;
121122
currentPositionWGS84.m_altitude = pose.position.z;
122123
AZ::Vector3 levelPosition{ 0 };
123-
ROS2::GeoreferenceRequestsBus::BroadcastResult(
124-
levelPosition, &ROS2::GeoreferenceRequests::ConvertFromWGS84ToLevel, currentPositionWGS84);
124+
GeoreferenceRequestsBus::BroadcastResult(
125+
levelPosition, &GeoreferenceRequests::ConvertFromWGS84ToLevel, currentPositionWGS84);
125126
points[i] = worldTm.TransformPoint(levelPosition);
126127
}
127128
else

Gems/RobotecSplineTools/Code/Source/Tools/SplineToolsEditorComponent.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#include <AzCore/Component/TransformBus.h>
44
#include <AzCore/Serialization/EditContext.h>
55
#include <AzToolsFramework/UI/UICore/WidgetHelpers.h>
6+
#include <Georeferencing/GeoreferenceBus.h>
7+
#include <Georeferencing/GeoreferenceStructures.h>
68
#include <LmbrCentral/Shape/SplineComponentBus.h>
79
#include <QFileDialog>
810
#include <QMessageBox>
9-
#include <ROS2/Georeference/GeoreferenceBus.h>
10-
#include <ROS2/Georeference/GeoreferenceStructures.h>
1111
#include <csv/csv.hpp>
1212

1313
namespace SplineTools
@@ -240,13 +240,13 @@ namespace SplineTools
240240
{
241241
for (csv::CSVRow& row : reader)
242242
{
243-
ROS2::WGS::WGS84Coordinate coordinate;
243+
using namespace Georeferencing;
244+
WGS::WGS84Coordinate coordinate;
244245
coordinate.m_latitude = row[*indexLat].get<double>();
245246
coordinate.m_longitude = row[*indexLon].get<double>();
246247
coordinate.m_altitude = row[*indexAlt].get<float>();
247248
auto coordinateInLevel = AZ::Vector3(-1);
248-
ROS2::GeoreferenceRequestsBus::BroadcastResult(
249-
coordinateInLevel, &ROS2::GeoreferenceRequests::ConvertFromWGS84ToLevel, coordinate);
249+
GeoreferenceRequestsBus::BroadcastResult(coordinateInLevel, &GeoreferenceRequests::ConvertFromWGS84ToLevel, coordinate);
250250

251251
ret.emplace_back(AZStd::move(coordinateInLevel));
252252
}

Gems/RobotecSplineTools/gem.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"gem_name": "SplineTools",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"display_name": "SplineTools",
55
"license": "Apache-2.0",
66
"license_url": "https://opensource.org/licenses/Apache-2.0",
@@ -20,9 +20,9 @@
2020
"icon_path": "preview.png",
2121
"requirements": "No requirements",
2222
"documentation_url": "",
23-
"dependencies": ["ROS2"],
23+
"dependencies": ["ROS2", "LevelGeoreferencing"],
2424
"repo_uri": "",
25-
"compatible_engines": [],
25+
"compatible_engines": ["o3de>=2.4.0"],
2626
"engine_api_dependencies": [],
2727
"restricted": "SplineTools"
2828
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Note that this is not a "Canonical" part of O3DE - those gems are third-party co
2020
| **RandomizeUtils** | not verified |
2121
| **RobotecRecordingTools** | not verified |
2222
| **RobotecSpectatorCamera** | not verified |
23-
| **RobotecSplineTools** | incompatible |
23+
| **RobotecSplineTools** | compatible |
2424
| **RobotecWatchdogTools** | not verified |
2525
| **ROS2PoseControl** | incompatible |
2626
| **ROS2ScriptIntegration** | not verified |

0 commit comments

Comments
 (0)