Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated rotation example windows instructions #631

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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