Skip to content

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
rs2_stream fourcc_to_rs2_stream(uint32_t fourcc_format) const;

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 realsenseai: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