Add CMake entry for engine_util_spatial_benchmark_test.
PiperOrigin-RevId: 454424726 Change-Id: If79e9452c18220ddf0107157d78a2f08ce099a04
This commit is contained in:
committed by
Copybara-Service
parent
5ac797965c
commit
f8b9e3e00f
@@ -55,3 +55,11 @@ target_link_libraries(
|
|||||||
gmock
|
gmock
|
||||||
benchmark::benchmark
|
benchmark::benchmark
|
||||||
)
|
)
|
||||||
|
|
||||||
|
mujoco_benchmark_test(engine_util_spatial_benchmark_test)
|
||||||
|
target_link_libraries(
|
||||||
|
engine_util_spatial_benchmark_test
|
||||||
|
fixture
|
||||||
|
gmock
|
||||||
|
benchmark::benchmark
|
||||||
|
)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ void BM_RotVecQuat(benchmark::State& state) {
|
|||||||
|
|
||||||
// Create axis-angle and convert to a quaternion
|
// Create axis-angle and convert to a quaternion
|
||||||
mjtNum quat[4];
|
mjtNum quat[4];
|
||||||
const mjtNum angle = 33 * M_PI / 180;
|
const mjtNum angle = 33 * mjPI / 180;
|
||||||
mjtNum vec[] = {0.2672612419124244, 0.5345224838248488, 0.8017837257372732};
|
mjtNum vec[] = {0.2672612419124244, 0.5345224838248488, 0.8017837257372732};
|
||||||
mju_axisAngle2Quat(quat, vec, angle);
|
mju_axisAngle2Quat(quat, vec, angle);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user