Skip to content

Commit

Permalink
Updated rotation example windows instructions (#631)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Sep 12, 2024
1 parent 68c2025 commit 3b0208c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tutorials/rotation_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3b0208c

Please sign in to comment.