Skip to content
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

Add sensor extensions #5468

Merged
merged 8 commits into from
Dec 30, 2019

Conversation

doronhi
Copy link
Contributor

@doronhi doronhi commented Dec 17, 2019

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

Copy link
Collaborator

@ev-mp ev-mp left a comment

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
Collaborator

Choose a reason for hiding this comment

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

no motioncolor sensor

@@ -3823,6 +3823,108 @@ TEST_CASE("Per-frame metadata sanity check", "[live][!mayfail]") {
}
}

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

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
Collaborator

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
Collaborator

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