Skip to content

Add sensor extensions - #5468

Merged
dorodnic merged 8 commits into
realsenseai:developmentfrom
doronhi:add_sensor_extensions
Dec 30, 2019
Merged

Add sensor extensions#5468
dorodnic merged 8 commits into
realsenseai:developmentfrom
doronhi:add_sensor_extensions

Conversation

@doronhi

@doronhi doronhi commented Dec 17, 2019

Copy link
Copy Markdown
Contributor

Add color_sensor, motion_sensor and fisheye_sensor extensions.
Enable the option to dev.firstrs2::color_sensor() or sensor.isrs2::color_sensor() etc.

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pls verify C#, Matlab and NodeJS bindings

std::string("0B3A"),
std::string("0B3D") }))
{
WARN("Skipping test - no motion sensor is device type: " << PID.first << (PID.second ? " USB3" : " USB2"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no motioncolor sensor

}
}

TEST_CASE("color sensor API", "[live][options]")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is better to rearrange the test so that there will be a concentrated map of all the sensors extensions per PID for clearness and maintenance instead of having separate tests per sensor type.

TEST_CASE("color sensor API", "[live][options]")
{
rs2::context ctx;
if (make_context(SECTION_FROM_TEST_NAME, &ctx, "2.17.1"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2.17.12.31.0

REQUIRE(profile);
REQUIRE_NOTHROW(dev = profile.get_device());
REQUIRE(dev);
dev_type PID = get_PID(dev);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Using pipe can be avoided here as you'd probably iterate over ctx.query_devices() list

@dorodnic
dorodnic changed the base branch from master to development December 30, 2019 10:59
@dorodnic
dorodnic merged commit 823fde6 into realsenseai:development Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants