Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly show inputs and outputs for Services/Topics/Actions #100

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

Oberacda
Copy link
Contributor

@Oberacda Oberacda commented Aug 8, 2024

Services/Topics/Actions get a Request/Response or Message as input or output. This PR changes it so that the fields of the messages are shown directly on the node.

@Oberacda Oberacda added enhancement New feature or request Core Library Issues concerning the core BT library. High Priority labels Aug 8, 2024
@Oberacda Oberacda added this to the ROSCon 2024 milestone Aug 8, 2024
@Oberacda Oberacda requested a review from nspielbau August 8, 2024 14:26
@Oberacda Oberacda self-assigned this Aug 8, 2024
@Oberacda Oberacda linked an issue Aug 8, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Aug 8, 2024

Test Results

  3 files  ±0    3 suites  ±0   41s ⏱️ ±0s
202 tests ±0  202 ✅ ±0  0 💤 ±0  0 ❌ ±0 
591 runs  ±0  591 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 3332750. ± Comparison against base commit bf3fea0.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@nspielbau nspielbau left a comment

Choose a reason for hiding this comment

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

Is there any case where we would still want the "normal" In/Outputs of Goal/Request/Response/Result/Feedback?

Copy link
Contributor

@nspielbau nspielbau left a comment

Choose a reason for hiding this comment

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

I think we should implement this for all Interface Types and then do some testing, hard to judge if this is all we need without proper testing

node_inputs[field] = type(getattr(msg, field))
self.passthrough = False
else:
node_inputs["in"] = self.options["service_type"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this default make sense? Why would we not fail if the request_type is not a Message Type?

node_outputs[field] = type(getattr(msg, field))
self.passthrough = False
else:
node_outputs["out"] = self.options["service_type"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@codecov-commenter
Copy link

codecov-commenter commented Sep 12, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 41.68126% with 333 lines in your changes missing coverage. Please review.

Project coverage is 46.80%. Comparing base (bf3fea0) to head (3332750).
Report is 7 commits behind head on dev.

Files with missing lines Patch % Lines
ros_bt_py/ros_bt_py/ros_nodes/action.py 12.39% 303 Missing and 1 partial ⚠️
ros_bt_py/ros_bt_py/ros_nodes/service.py 85.20% 24 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #100      +/-   ##
==========================================
- Coverage   50.92%   46.80%   -4.12%     
==========================================
  Files          58       58              
  Lines        7348     8915    +1567     
  Branches     1604     2250     +646     
==========================================
+ Hits         3742     4173     +431     
- Misses       3540     4626    +1086     
- Partials       66      116      +50     

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

@Oberacda Oberacda marked this pull request as ready for review September 12, 2024 09:37
@Oberacda Oberacda merged commit 4531201 into dev Sep 12, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Library Issues concerning the core BT library. enhancement New feature or request High Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Action/Service Creation
4 participants