Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ae07b6

Browse files
committed
Small tweaks to QuatExpMap test
1 parente49446e commit9ae07b6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎tests/cplusplus/Util/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ endforeach()
88

99
target_link_libraries(Projection eigen-headers)
1010
target_link_libraries(QuatExpMap eigen-headers vendored-vrpn)
11+
target_compile_definitions(QuatExpMapPRIVATE HAVE_QUATLIB)

‎tests/cplusplus/Util/QuatExpMap.cpp‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
// Copyright 2016 Sensics, Inc.
12+
// Copyright 2019 Collabora, Ltd.
1213
//
1314
// Licensed under the Apache License, Version 2.0 (the "License");
1415
// you may not use this file except in compliance with the License.
@@ -22,8 +23,6 @@
2223
// See the License for the specific language governing permissions and
2324
// limitations under the License.
2425

25-
#defineHAVE_QUATLIB
26-
2726
// Internal Includes
2827
#include"CatchEigen.h"
2928
#include<osvr/Util/EigenQuatExponentialMap.h>
@@ -37,6 +36,13 @@
3736
// Standard includes
3837
#include<array>
3938

39+
#ifndef HAVE_QUATLIB
40+
#defineQ_X0
41+
#defineQ_Y1
42+
#defineQ_Z2
43+
#defineQ_W3
44+
#endif// !HAVE_QUATLIB
45+
4046
using osvr::util::quat_exp_map;
4147

4248
staticconstdouble SMALL =0.1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp