7cb7c87f70
1. Create an arena for the mjData instance used by the passive viewer visualization. When using the passive viewer, stuff gets copied from the real mjData into a minimal struct. That struct didn't have a stack, and now visualization for Flex does stack allocs. 2. Add missing a missing field in scene state for flex visualization. 3. Fix a memory leak where mjvScene wasn't released on exit in the passive viewer. 4. Add some locks in places where the render thread and Simulate::Sync collide. This fixes #1280. PiperOrigin-RevId: 591891676 Change-Id: I592f286cab9719c8d9af84e42f9756ea1f9f1971
109 lines
3.1 KiB
CMake
109 lines
3.1 KiB
CMake
# Copyright 2021 DeepMind Technologies Limited
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
mujoco_test(engine_collision_box_test)
|
|
target_link_libraries(engine_collision_box_test fixture gmock)
|
|
|
|
mujoco_test(engine_collision_convex_test)
|
|
target_link_libraries(engine_collision_convex_test fixture gmock)
|
|
|
|
mujoco_test(engine_collision_driver_test)
|
|
target_link_libraries(engine_collision_driver_test fixture gmock)
|
|
|
|
mujoco_test(engine_core_constraint_test)
|
|
target_link_libraries(engine_core_constraint_test fixture gmock)
|
|
|
|
mujoco_test(engine_core_smooth_test)
|
|
target_link_libraries(engine_core_smooth_test fixture gmock absl::span)
|
|
|
|
mujoco_test(engine_derivative_test)
|
|
target_link_libraries(engine_derivative_test fixture gmock)
|
|
|
|
mujoco_test(engine_forward_test)
|
|
target_link_libraries(engine_forward_test fixture gmock)
|
|
|
|
mujoco_test(engine_inverse_test)
|
|
target_link_libraries(engine_inverse_test fixture gmock)
|
|
|
|
mujoco_test(engine_island_test)
|
|
target_link_libraries(engine_island_test fixture gmock)
|
|
|
|
mujoco_test(engine_io_test)
|
|
target_link_libraries(
|
|
engine_io_test
|
|
fixture
|
|
gmock
|
|
absl::str_format
|
|
)
|
|
|
|
mujoco_test(
|
|
engine_plugin_test
|
|
PROPERTIES
|
|
ENVIRONMENT
|
|
"MUJOCO_PLUGIN_DIR=$<TARGET_FILE_DIR:elasticity>"
|
|
)
|
|
target_link_libraries(
|
|
engine_plugin_test
|
|
fixture
|
|
gmock
|
|
absl::str_format
|
|
)
|
|
|
|
mujoco_test(engine_passive_test)
|
|
target_link_libraries(engine_passive_test fixture gmock)
|
|
|
|
mujoco_test(engine_print_test)
|
|
target_link_libraries(engine_print_test fixture gmock)
|
|
|
|
mujoco_test(engine_ray_test)
|
|
target_link_libraries(engine_ray_test fixture gmock)
|
|
|
|
mujoco_test(engine_resource_test)
|
|
target_link_libraries(engine_resource_test fixture gmock)
|
|
|
|
mujoco_test(engine_sensor_test)
|
|
target_link_libraries(engine_sensor_test fixture gmock)
|
|
|
|
mujoco_test(engine_solver_test)
|
|
target_link_libraries(engine_solver_test fixture gmock)
|
|
|
|
mujoco_test(engine_support_test)
|
|
target_link_libraries(engine_support_test fixture gmock)
|
|
|
|
mujoco_test(engine_thread_test)
|
|
target_link_libraries(engine_thread_test fixture gmock)
|
|
|
|
mujoco_test(engine_util_blas_test)
|
|
target_link_libraries(engine_util_blas_test fixture gmock)
|
|
|
|
mujoco_test(engine_util_errmem_test)
|
|
target_link_libraries(engine_util_errmem_test fixture gmock)
|
|
|
|
mujoco_test(engine_util_solve_test)
|
|
target_link_libraries(engine_util_solve_test fixture gmock)
|
|
|
|
mujoco_test(engine_util_spatial_test)
|
|
target_link_libraries(engine_util_spatial_test fixture gmock)
|
|
|
|
mujoco_test(engine_vfs_test)
|
|
target_link_libraries(engine_vfs_test fixture gmock)
|
|
|
|
mujoco_test(
|
|
engine_vis_state_test
|
|
PROPERTIES
|
|
ENVIRONMENT
|
|
"MUJOCO_PLUGIN_DIR=$<TARGET_FILE_DIR:elasticity>"
|
|
)
|
|
target_link_libraries(engine_vis_state_test fixture gmock)
|