Skip to content

Added possibility to set history policy - #1098

Merged
jhanca-robotecai merged 2 commits into
o3de:developmentfrom
RobotecAI:nprokopiuk/extend_QoS
Sep 22, 2026
Merged

jhanca-robotecai merged 2 commits into
o3de:developmentfrom
RobotecAI:nprokopiuk/extend_QoS

Conversation

@norbertprokopiuk

Copy link
Copy Markdown
Contributor

What does this PR do?

Pr adds possibility to control topic QoS history policy. Previously all topics were hardcoded as KeepLast

How was this PR tested?

built as non-unity and created topic with new KeepAll policy. policy verified using ros2 topic info /topic_name --verbose

Signed-off-by: Norbert Prokopiuk <norbert.prokopiuk@robotec.ai>
@norbertprokopiuk
norbertprokopiuk requested review from a team as code owners September 18, 2026 12:01

@jhanca-robotecai jhanca-robotecai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test are failing due to some hardcoded values in WheelOdometry:


[ctest] cwd = /home/jhanca/devroot/projects/AllTemplates/build/2610/External/ROS2Controllers-197b7cdd/Code
[ctest] LIB: /home/jhanca/devroot/projects/AllTemplates/build/2610/bin/profile/libROS2Controllers.Editor.Tests.so
[ctest] Loading: /home/jhanca/devroot/projects/AllTemplates/build/2610/bin/profile/libROS2Controllers.Editor.Tests.so
[ctest] OKAY Library loaded: /home/jhanca/devroot/projects/AllTemplates/build/2610/bin/profile/libROS2Controllers.Editor.Tests.so
[ctest] OKAY Symbol found: AzRunUnitTests
[ctest] WARNING: unrecognized parameters: --platform, minimal, 
[ctest] Note: Google Test filter = -*SUITE_smoke*:*SUITE_periodic*:*SUITE_benchmark*:*SUITE_sandbox*:*SUITE_awsi*
[ctest] [==========] Running 2 tests from 1 test suite.
[ctest] [----------] Global test environment set-up.
[ctest] [----------] 2 tests from ROS2ControllersTestFixture
[ctest] [ RUN      ] ROS2ControllersTestFixture.Deserialize_WhenOldSchemaProvided_StoresSuccessfully
[ctest] /home/jhanca/devroot/2610/o3de-extras/Gems/ROS2Controllers/Code/Tests/WheelOdometrySensorConfigurationSerializationTest.cpp:85: Failure
[ctest] Value of: actualJson == expectedJson
[ctest]   Actual: false
[ctest] Expected: true
[ctest] 
[ctest] [  FAILED  ] ROS2ControllersTestFixture.Deserialize_WhenOldSchemaProvided_StoresSuccessfully (0 ms)
[ctest] [ RUN      ] ROS2ControllersTestFixture.Deserialize_WhenNewSchemaProvided_StoresSuccessfully
[ctest] /home/jhanca/devroot/2610/o3de-extras/Gems/ROS2Controllers/Code/Tests/WheelOdometrySensorConfigurationSerializationTest.cpp:154: Failure
[ctest] Value of: actualJson == expectedJson
[ctest]   Actual: false
[ctest] Expected: true
[ctest] 
[ctest] [  FAILED  ] ROS2ControllersTestFixture.Deserialize_WhenNewSchemaProvided_StoresSuccessfully (0 ms)
[ctest] [----------] 2 tests from ROS2ControllersTestFixture (1 ms total)
[ctest] 
[ctest] [----------] Global test environment tear-down
[ctest] [==========] 2 tests from 1 test suite ran. (511 ms total)
[ctest] [  PASSED  ] 0 tests.
[ctest] [  FAILED  ] 2 tests, listed below:
[ctest] [  FAILED  ] ROS2ControllersTestFixture.Deserialize_WhenOldSchemaProvided_StoresSuccessfully
[ctest] [  FAILED  ] ROS2ControllersTestFixture.Deserialize_WhenNewSchemaProvided_StoresSuccessfully
[ctest] 
[ctest]  2 FAILED TESTS
[ctest] OKAY AzRunUnitTests() returned 1
[ctest] Retry command: 
[ctest] /home/jhanca/devroot/projects/AllTemplates/build/2610/bin/profile/AzTestRunner /home/jhanca/devroot/projects/AllTemplates/build/2610/bin/profile/libROS2Controllers.Editor.Tests.so AzRunUnitTests
[ctest] Returning code: 1
[ctest] 
[ctest] 
[ctest] 0% tests passed, 1 tests failed out of 1

Comment thread Gems/ROS2/Code/Include/ROS2/Communication/QoS.h
Comment thread Gems/ROS2/Code/Include/ROS2/Communication/QoS.h
Comment thread Gems/ROS2/Code/Include/ROS2/Communication/QoS.h
Signed-off-by: Norbert Prokopiuk <norbert.prokopiuk@robotec.ai>
@norbertprokopiuk

Copy link
Copy Markdown
Contributor Author

@jhanca-robotecai thanks for review, I applied fixes to your comments

@jhanca-robotecai
jhanca-robotecai merged commit d7b3858 into o3de:development Sep 22, 2026
4 of 5 checks passed
@jhanca-robotecai
jhanca-robotecai deleted the nprokopiuk/extend_QoS branch September 22, 2026 12:17
jhanca-robotecai added a commit that referenced this pull request Oct 12, 2026
* Ability to get inertial property from AddToArticulationConfig (#1088)

Signed-off-by: welber-zhang <welber.zhang@huawei.com>
(cherry picked from commit bc9eb68)

* Added possibility to set history policy (#1098)

Signed-off-by: Norbert Prokopiuk <norbert.prokopiuk@robotec.ai>
(cherry picked from commit d7b3858)

* [MachineLearning] Update ScriptCanvas after engine changes (#1101)

* [MachineLearning] Update ScriptCanvas after engine changes

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>

* [MachineLearning] Fix build

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>

---------

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
(cherry picked from commit ee2ff33)

* [Tests] redo spawning test (w/o AssetProcessor) (#1100)

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
(cherry picked from commit f23e7ae)

* [ROS2RobotImporter] Add warning banner for registries and articulations (#1099)

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
(cherry picked from commit 2518837)

---------

Signed-off-by: welber-zhang <welber.zhang@huawei.com>
Signed-off-by: Norbert Prokopiuk <norbert.prokopiuk@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Co-authored-by: 张东 <welber.zhang@huawei.com>
Co-authored-by: Norbert Prokopiuk <norbert.prokopiuk@robotec.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants