Skip to content

sw-dev profiles work; shorter rs-enum-devs output; use-basic-formats -> format-conversion #12109

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

Merged
merged 20 commits into from
Aug 21, 2023

Conversation

maloel
Copy link
Contributor

@maloel maloel commented Aug 15, 2023

  • refactored some stuff in sensor_base and split off raw_sensor_base
  • _profiles now only in sensor_base; software_device uses _sw_profiles and no more _raw_rs_profiles
  • added sensor_interface::get_raw_stream_profiles()
  • DDS color profiles were previously using only RGB8; now all the permutations supported by LibRS
  • DDS profiles are now sorted, same as elsewhere
  • profiles can now be raw, basic, or full (use-basic-formats -> format-conversion)
  • rs-enumerate-devices output now aggregates all FPS lines together, so more readable
  • fix non-basic format removal for DDS IR
  • adjust dds-adapter default Color res for D405 to 848x480
  • add realdds/scripts/devices.py and fps.py

Tracked on [LRS-848]

@maloel maloel requested a review from OhadMeir August 15, 2023 09:20
protected:
// Since _profiles is private, we need a way to get the final profiles
Copy link
Contributor

Choose a reason for hiding this comment

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

This is sensor_base, that is, intended to be inherited from.
Why not make the member protected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The member is pretty advanced (lazy) and really should be private, I didn't want to make it accessible.

args.add_argument( '--time', metavar='<seconds>', type=time_arg, default=2, help='seconds to gather devices for (default 2)' )
def domain_arg(x):
t = int(x)
if t <= 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not check > 232? Same for other script

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy paste :)
Fixed.

from argparse import ArgumentParser
args = ArgumentParser()
args.add_argument( '--debug', action='store_true', help='enable debug mode' )
args.add_argument( '--quiet', action='store_true', help='No output; just the minimum FPS as a number' )
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment left from FPS script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. Removed.

tags.push_back( { RS2_STREAM_COLOR,
-1, // index
color_width, color_height,
( format_conversion == format_conversion::full ) ? RS2_FORMAT_RGB8 : RS2_FORMAT_YUYV,
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be more readable to have variables color_format / infrared_format and set them in the list above.

if( ! context )
return format_conversion::full;
std::string const format_conversion( "format-conversion", 17 );
std::string const full( "full", 4 );
Copy link
Contributor

Choose a reason for hiding this comment

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

Why use string only for one option?

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 reused, I guess.

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 30d5bcf into IntelRealSense:development Aug 21, 2023
@maloel maloel deleted the dds2 branch August 21, 2023 15:11
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