-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Syncer debug #12342
Conversation
@@ -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 ); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed? remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Removed.
src/to-string.cpp
Outdated
{ | ||
switch( value ) | ||
{ | ||
case RS2_STREAM_ANY: return "any"; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ) |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ing on purpose?
# Conflicts: # src/sync.cpp
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]