Skip to content

Conversation

@maloel
Copy link
Contributor

@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
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
Contributor 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
Contributor 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
Contributor 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 realsenseai:development Nov 1, 2023
@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.

2 participants