Skip to content

Conversation

xFrenchy
Copy link
Contributor

Summary

Adding Python example for property_qos example

Checks

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@alexcamposruiz alexcamposruiz requested a review from Alxe December 10, 2024 17:47
@xFrenchy
Copy link
Contributor Author

Was delaying PR to add the interoperability test framework with it, however, considering that this example targets master, and the test will be in dev, I think I will split the PRs in 2 instead.

So this PR is ready for review now @Alxe

Copy link
Contributor

@alexcamposruiz alexcamposruiz left a comment

Choose a reason for hiding this comment

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

I just realized I had feedback I hadn't submitted.


```plaintext
INFO com.rti.ndds.nddsgen.Main Running rtiddsgen version 4.3.0, please wait ...
WARN com.rti.ndds.nddsgen.emitters.FileEmitter File exists and will not be overwritten : some/path/numbers.py
Copy link
Contributor

Choose a reason for hiding this comment

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

numbers.py is not checked in

<value>65507</value>
</element>
<element>
<name>dds.transport.UDPv4.builtin.send_socket_buffer_size</name>
Copy link
Contributor

Choose a reason for hiding this comment

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

formatting

NEW_SOCKET_BUFFER_SIZE_STRING = "65507"

@staticmethod
def create_participant(domain_id: int):
Copy link
Contributor

Choose a reason for hiding this comment

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

apply typing annotations consistently

Suggested change
def create_participant(domain_id: int):
def create_participant(domain_id: int) -> dds.DomainParticipant:

# DomainParticipant QoS is configured in USER_QOS_PROFILES.xml
participant = dds.DomainParticipant(domain_id)

# If you want to change the DomainParticipant's QoS programmatically
Copy link
Contributor

Choose a reason for hiding this comment

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

let's do this programmatically by default

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