Skip to content

Commit

Permalink
Updated rotation example windows instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Sep 12, 2024
1 parent 68c2025 commit 3850b3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tutorials/rotation_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ git clone https://github.com/gazebosim/gz-math/ -b gz-math8
cd gz-math/examples
mkdir build
cd build
# linux and macOS
cmake ..
# Windows
cmake --build build --config Release
make
```

Expand All @@ -38,7 +41,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 +72,10 @@ to Rotation matrix
```

```{.sh}
# Linux and macOS
./quaternion_from_euler 0 0 1.57
# Windows
.\build\Release\quaternion_to_euler.exe 0 0 1.57
Converting Euler angles:
roll 0.000000 radians
pitch 0.000000 radians
Expand Down

0 comments on commit 3850b3b

Please sign in to comment.