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

misc DDS changes #12467

Merged
merged 10 commits into from
Dec 5, 2023
Merged

misc DDS changes #12467

merged 10 commits into from
Dec 5, 2023

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Dec 3, 2023

Separating out from DFU PR... commits are mostly self-explanatory, but:

  • add ability for writers to wait for acks, and use in send-topic
  • add load_rs_settings() in pyrealdds for loading (script-specific) settings in realsense-config.json
  • the sniffer uses the librs config, too
  • small improvement to pyrs.test.check_false output
  • dds GUID output is now easier to read; added guid_from_string(), too
  • made realdds::print variants more verbose: print_guid, print_raw_guid, print_raw_guid_prefix

@maloel maloel requested a review from OhadMeir December 3, 2023 09:09

with test.closure( 'from string: generic format' ):
test.check_false( dds.guid.from_string( '' ) )
test.check_equal( repr( dds.guid.from_string( '001122334455667788990011.100' ) ), '001122334455667788990011.100' )
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't want to test here stuff that you have tested in the previous test, like hex letters or invalid characters?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The difference is the format - chances are the same rules apply. I thought this is a good start and didn't want to spend any more time on it.

dds.message.flexible( message ).write_to( writer )
i( f'Sent {message} on {topic_path}' )
if args.ack:
if not writer.wait_for_acks( dds.time( 5. ) ): # seconds
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we take the timeout from the settings?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, but really I see no need. We can improve the script as we go.

Copy link
Contributor

@OhadMeir OhadMeir left a comment

Choose a reason for hiding this comment

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

LGTM

@maloel maloel merged commit 7bc0026 into IntelRealSense:development Dec 5, 2023
17 checks passed
@maloel maloel deleted the settings branch December 5, 2023 12:33
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