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

Syncer debug #12342

Merged
merged 8 commits into from Nov 1, 2023
Merged

Syncer debug #12342

merged 8 commits into from Nov 1, 2023

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Oct 31, 2023

These are additional debug changes I made for the syncer with the AH investigation.
Added the use-case unit-test that we saw, though I'm not sure if it adds value. Comments welcome.
No functional changes to librealsense.

Related to [RSDSO-19336]

@maloel maloel requested a review from Nir-Az October 31, 2023 11:34
@@ -48,6 +48,7 @@ std::ostream & operator<<( std::ostream & out, rs2_option option );
bool try_parse( const std::string & option_name, rs2_option & result );

RS2_ENUM_HELPERS( rs2_stream, STREAM )
LRS_EXTENSION_API char const * get_abbr_string( rs2_stream );
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you give it a meaningfull name?
abbr is not understood

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's the standard shorthand for abbreviated.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I had to open google translate to even understand what abbreviated means.
I would normally use more common words, but it's your call here

src/frame.cpp Outdated
s << "[" << f.get_stream()->get_stream_type();
s << "/" << f.get_stream()->get_unique_id();
s << "[" << get_abbr_string( f.get_stream()->get_stream_type() );
s /*<< "."*/ << f.get_stream()->get_unique_id();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not needed? remove

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. Removed.

{
switch( value )
{
case RS2_STREAM_ANY: return "any";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why use only lower case here and all other start with uppercase?
Conf for exanple?
Consider aligning it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wanted it to stand out, but OK: changed.

# know what to match to in the beginning)

# (sync.cpp:396) ... missing Color/66, next expected 63231.348758
sw.generate_color_frame( frame_number=1730, timestamp=63198.01542, next_expected=63231.348758 )
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is some kind of regression no?
Before the changes the syncer could output this first set?

sw.expect( depth_frame=1749, nothing_else=True )


#ing-block.cpp:55) --> syncing [Depth/63 #1750 @63481.48]
Copy link
Collaborator

Choose a reason for hiding this comment

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

#ing on purpose?

@maloel maloel merged commit 8f97c09 into IntelRealSense:development Nov 1, 2023
13 of 17 checks passed
@maloel maloel deleted the syncer-debug branch November 1, 2023 12:47
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.

None yet

2 participants