Skip to content

Commit

Permalink
[render] Add the unit tests for RenderEngineVtk (RobotLocomotion#11518)
Browse files Browse the repository at this point in the history
Port the RgbdRendererVtk tests to the RenderEngineVtkTest and expand the tests for the new 
functionality. The new functionality includes:

1. Generalize the framework
  - Can't hard-code image size.
  - utilities to compare the different color types
  - test utilities that return ::testing::AssertionResult
  - refactor Render() method to do the work on an arbitrary renderer.
2. Reformulate the existing ShapeTest tests (box, sphere, etc.)
3. Add a host of new tests:
  - textured mesh
  - geometry removal
  - Cloning
  - Use of single render engine with cameras with different configurations
  - RenderLabel semantics
  • Loading branch information
SeanCurtis-TRI authored May 24, 2019
1 parent ceed96b commit f16241d
Show file tree
Hide file tree
Showing 2 changed files with 902 additions and 0 deletions.
28 changes: 28 additions & 0 deletions geometry/render/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,34 @@ drake_cc_googletest(
],
)

drake_cc_googletest(
name = "render_engine_vtk_test",
data = [
"//systems/sensors:test_models",
],
# Mitigates driver-related issues when running under `bazel test`. For more
# information, see #7004.
local = 1,
tags = [
# Disable under LeakSanitizer and Valgrind Memcheck due to
# driver-related leaks. For more information, see #7520.
"no_lsan",
"no_memcheck",
# Mitigates driver-related issues when running under `bazel test`. For
# more information, see #7004.
"no-sandbox",
],
deps = [
":render_engine_vtk",
":render_label_manager",
"//common:find_resource",
"//common/test_utilities:eigen_matrix_compare",
"//common/test_utilities:expect_throws_message",
"//geometry/test_utilities:dummy_render_engine",
"//math:geometric_transform",
],
)

drake_cc_googletest(
name = "render_label_test",
deps = [
Expand Down
Loading

0 comments on commit f16241d

Please sign in to comment.