From 3b0208c6c223fd725481dd5635b5934c757007b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Thu, 12 Sep 2024 10:15:37 +0200 Subject: [PATCH] Updated rotation example windows instructions (#631) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- tutorials/rotation_example.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tutorials/rotation_example.md b/tutorials/rotation_example.md index 0a077a62..ecb892bd 100644 --- a/tutorials/rotation_example.md +++ b/tutorials/rotation_example.md @@ -12,7 +12,11 @@ cd gz-math/examples mkdir build cd build cmake .. +# Linux and macOS make +# Windows +cd .. +cmake --build build --config Release ``` When the code is compiled, you can run two different examples, one which converts from quaternion to euler angles: @@ -38,7 +42,10 @@ Example The ouput of each program, respectively: ```{.sh} +# Linux and macOS ./quaternion_to_euler 0.5 0.5 0.5 0.5 +# Windows +.\build\Release\quaternion_to_euler.exe 0.5 0.5 0.5 0.5 Normalizing Quaternion components: W 0.5 X 0.5 @@ -66,7 +73,10 @@ to Rotation matrix ``` ```{.sh} +# Linux and macOS ./quaternion_from_euler 0 0 1.57 +# Windows +.\build\Release\quaternion_from_euler.exe 0 0 1.57 Converting Euler angles: roll 0.000000 radians pitch 0.000000 radians