Skip to content

Conversation

@urfeex
Copy link
Member

@urfeex urfeex commented Mar 26, 2025

Since PolyScopeX robots don't have a dashboard server, we'll have to make sure to

a) not start the dashboard client when interacting with a PolyScopeX robot
b) replace the robot_state_helper's functions to the dashboard server with primary_client API calls.

This requires UniversalRobots/Universal_Robots_Client_Library#296 to work.

@urfeex urfeex force-pushed the support_polyscope_x branch from b53e894 to 674407c Compare March 26, 2025 15:28
@urfeex urfeex marked this pull request as ready for review March 31, 2025 07:47
@codecov
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

Attention: Patch coverage is 0% with 66 lines in your changes missing coverage. Please review.

Project coverage is 5.58%. Comparing base (1b121b7) to head (648b5ef).
Report is 418 commits behind head on main.

Files with missing lines Patch % Lines
ur_robot_driver/src/robot_state_helper.cpp 0.00% 47 Missing ⚠️
ur_robot_driver/src/dashboard_client_node.cpp 0.00% 7 Missing ⚠️
ur_robot_driver/src/robot_state_helper_node.cpp 0.00% 7 Missing ⚠️
ur_robot_driver/src/dashboard_client_ros.cpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1318      +/-   ##
========================================
+ Coverage   3.59%   5.58%   +1.99%     
========================================
  Files         13      31      +18     
  Lines        947    3117    +2170     
  Branches     152     377     +225     
========================================
+ Hits          34     174     +140     
- Misses       843    2941    +2098     
+ Partials      70       2      -68     
Flag Coverage Δ
unittests 5.58% <0.00%> (+1.99%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@urfeex urfeex requested a review from a team April 3, 2025 07:08
urfeex added 3 commits April 3, 2025 09:08
Before trying to establish a connection to the dashboard server, check
the version of the connected robot. If it is a PolyScopeX robot,
shutdown the dashboard client.
Otherwise it will go out of scope afterwards and it will not be usable.
@urfeex urfeex force-pushed the support_polyscope_x branch from 5201c69 to d9d6922 Compare April 3, 2025 07:08
@urfeex urfeex requested a review from urmahp April 4, 2025 05:04
@urfeex urfeex merged commit 5162bf4 into UniversalRobots:main Apr 4, 2025
8 of 12 checks passed
@urfeex urfeex deleted the support_polyscope_x branch April 4, 2025 11:09
mergify bot pushed a commit that referenced this pull request Apr 4, 2025
* Shutdown dashboard client when connected to PolyScopeX robot

Before trying to establish a connection to the dashboard server, check
the version of the connected robot. If it is a PolyScopeX robot,
shutdown the dashboard client.

* Make robot_state_helper use primary_client whenever possible

(cherry picked from commit 5162bf4)

# Conflicts:
#	ur_robot_driver/src/robot_state_helper.cpp
urfeex added a commit that referenced this pull request Apr 7, 2025
* Shutdown dashboard client when connected to PolyScopeX robot

Before trying to establish a connection to the dashboard server, check
the version of the connected robot. If it is a PolyScopeX robot,
shutdown the dashboard client.

* Make robot_state_helper use primary_client whenever possible
urfeex pushed a commit that referenced this pull request Apr 7, 2025
* Shutdown dashboard client when connected to PolyScopeX robot

Before trying to establish a connection to the dashboard server, check
the version of the connected robot. If it is a PolyScopeX robot,
shutdown the dashboard client.

* Make robot_state_helper use primary_client whenever possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants