Skip to content

Commit 709829a

Browse files
Adjust code of ROS2ScriptIntegration to 2510. (#144)
Signed-off-by: Michał Pełka <[email protected]> Signed-off-by: Jan Hanca <[email protected]> Co-authored-by: Jan Hanca <[email protected]>
1 parent 51fe4a2 commit 709829a

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Gems/ROS2ScriptIntegration/Code/Source/Clients/PublisherSystemComponent.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "PublisherSystemComponent.h"
2+
3+
#include <ROS2/Clock/ROS2ClockRequestBus.h>
4+
25
#include <ROS2ScriptIntegration/ROS2ScriptIntegrationTypeIds.h>
36
#include <ROS2ScriptIntegration/ROS2ScriptSubscriberBus.h>
47

@@ -184,7 +187,7 @@ namespace ROS2ScriptIntegration
184187
const AZStd::string& topicName, const AZStd::string& frame, const AZ::Transform& transform)
185188
{
186189
geometry_msgs::msg::PoseStamped message;
187-
message.header.stamp = ROS2::ROS2Interface::Get()->GetROSTimestamp();
190+
message.header.stamp = ROS2::ROS2ClockInterface::Get()->GetROSTimestamp();
188191
message.header.frame_id = std::string(frame.c_str());
189192
message.pose.position.x = transform.GetTranslation().GetX();
190193
message.pose.position.y = transform.GetTranslation().GetY();

Gems/ROS2ScriptIntegration/Code/Source/Clients/PublisherSystemComponent.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <AzCore/Component/TickBus.h>
88
#include <AzCore/std/parallel/shared_mutex.h>
99
#include <ROS2/ROS2Bus.h>
10-
#include <ROS2/ROS2GemUtilities.h>
1110
#include <ROS2/Utilities/ROS2Conversions.h>
1211
#include <ROS2ScriptIntegration/ROS2ScriptIntegrationBus.h>
1312
#include <ROS2ScriptIntegration/ROS2ScriptPublisherBus.h>

Gems/ROS2ScriptIntegration/Code/Source/Clients/ROS2ScriptIntegrationSystemComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <AzCore/Component/TickBus.h>
88
#include <AzCore/std/parallel/shared_mutex.h>
99
#include <ROS2/ROS2Bus.h>
10-
#include <ROS2/ROS2GemUtilities.h>
10+
1111
#include <ROS2/Utilities/ROS2Conversions.h>
1212
#include <ROS2ScriptIntegration/ROS2ScriptIntegrationBus.h>
1313
#include <ROS2ScriptIntegration/ROS2ScriptPublisherBus.h>

Gems/ROS2ScriptIntegration/Code/Source/Clients/SubscriberSystemComponent.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
#include "SubscriberSystemComponent.h"
3-
#include <ROS2ScriptIntegration/ROS2ScriptIntegrationTypeIds.h>
4-
#include <ROS2ScriptIntegration/ROS2ScriptSubscriberBus.h>
5-
63
#include <AzCore/RTTI/BehaviorContext.h>
74
#include <AzCore/Serialization/SerializeContext.h>
5+
#include <ROS2/Clock/ROS2ClockRequestBus.h>
6+
#include <ROS2/ROS2Bus.h>
7+
#include <ROS2ScriptIntegration/ROS2ScriptIntegrationTypeIds.h>
8+
#include <ROS2ScriptIntegration/ROS2ScriptSubscriberBus.h>
89

910
#include <geometry_msgs/msg/point32.hpp>
1011
#include <geometry_msgs/msg/pose_stamped.hpp>

Gems/ROS2ScriptIntegration/Code/Source/Clients/SubscriberSystemComponent.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#include <AzCore/Component/Component.h>
77
#include <AzCore/Component/TickBus.h>
88
#include <AzCore/std/parallel/shared_mutex.h>
9-
#include <ROS2/ROS2Bus.h>
10-
#include <ROS2/ROS2GemUtilities.h>
11-
#include <ROS2/Utilities/ROS2Conversions.h>
129
#include <ROS2ScriptIntegration/ROS2ScriptIntegrationBus.h>
1310
#include <ROS2ScriptIntegration/ROS2ScriptPublisherBus.h>
1411
#include <ROS2ScriptIntegration/ROS2ScriptSubscriberBus.h>

Gems/ROS2ScriptIntegration/gem.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"gem_name": "ROS2ScriptIntegration",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"display_name": "ROS2ScriptIntegration",
55
"license": "Apache-2.0",
66
"license_url": "https://opensource.org/licenses/Apache-2.0",
@@ -21,7 +21,7 @@
2121
"requirements": "This gem requires ROS2 to be installed and running and ROS 2 Gem",
2222
"documentation_url": "",
2323
"dependencies": [
24-
"ROS2"
24+
"ROS2>=4.0.0"
2525
],
2626
"repo_uri": "https://github.com/RobotecAI/robotec-o3de-tools",
2727
"compatible_engines": [],

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Note that this is not a "Canonical" part of O3DE - those gems are third-party co
2323
| **RobotecSplineTools** | not verified |
2424
| **RobotecWatchdogTools** | not verified |
2525
| **ROS2PoseControl** | not verified |
26-
| **ROS2ScriptIntegration** | not verified |
26+
| **ROS2ScriptIntegration** | compatible |
2727
| **SensorDebug** | not verified |
2828
| **Smoothing** | not verified |
2929
| **ViewportStreamer** | not verified |
@@ -506,4 +506,4 @@ The component needs:
506506

507507
It should be attached to Dynamic rigid body. The component will compute Jacobian matrix (w.r.t wheel locatio, radius and model) of the robot locomotion.
508508
Jacobian will be used to find wheels rotation speed.
509-
More in dedicated [readme.md](Gems/WheelAnimTool/readme.md)
509+
More in dedicated [readme.md](Gems/WheelAnimTool/readme.md)

0 commit comments

Comments
 (0)