Skip to content

[RTDE client] Test reconnect#433

Merged
urfeex merged 5 commits intoUniversalRobots:masterfrom
urfeex:test_reconnect
Feb 11, 2026
Merged

[RTDE client] Test reconnect#433
urfeex merged 5 commits intoUniversalRobots:masterfrom
urfeex:test_reconnect

Conversation

@urfeex
Copy link
Member

@urfeex urfeex commented Feb 11, 2026

This PR adds an integration test for reconnecting to the RTDE server. For this, a fake RTDEServer is added that can be stopped and restarted inside the tests easier than managing a URSim instance.

The fake server doesn't have full functionality which is why it lives inside the test repository and is not part of the client library shared library target.

I've added a refactoring to merge two existing splitStrings functions along the way before adding a third one.

Before, it was tied to port 30004. However, it might be good to attach
it to another port, e.g. to do local testing with a custom server.
The integration test uses the fake RTDEServer
@urfeex urfeex requested a review from a team February 11, 2026 14:15
@urfeex urfeex added the CI label Feb 11, 2026
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 86.84211% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.00%. Comparing base (68fe8be) to head (2870b2a).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/rtde/rtde_client.cpp 78.26% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #433      +/-   ##
==========================================
+ Coverage   74.35%   75.00%   +0.65%     
==========================================
  Files         103      102       -1     
  Lines        5131     5117      -14     
  Branches      545      544       -1     
==========================================
+ Hits         3815     3838      +23     
+ Misses       1034      994      -40     
- Partials      282      285       +3     
Flag Coverage Δ
start_ursim 82.28% <ø> (+0.73%) ⬆️
ur5-3.14.3 73.18% <86.84%> (+0.74%) ⬆️
ur5e-10.7.0 65.05% <86.84%> (+0.52%) ⬆️
ur5e-5.9.4 73.42% <86.84%> (+0.54%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@urrsk urrsk left a comment

Choose a reason for hiding this comment

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

Good job

@urfeex urfeex merged commit 08c33c3 into UniversalRobots:master Feb 11, 2026
25 of 28 checks passed
@urfeex urfeex deleted the test_reconnect branch February 11, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants