Skip to content

Commit

Permalink
Merge branch 'gz-math8' into merge_8_main_20241007
Browse files Browse the repository at this point in the history
  • Loading branch information
iche033 committed Oct 7, 2024
2 parents 99398fa + eeb17ea commit ab6c73d
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 538 deletions.
17 changes: 12 additions & 5 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
## Gazebo Math 8.x

### Gazebo Math 8.0.0 (2024-09-XX)
### Gazebo Math 8.0.0 (2024-09-25)

1. Miscellaneous documentation fixes
* [Pull request #632](https://github.com/gazebosim/gz-math/pull/632)
* [Pull request #631](https://github.com/gazebosim/gz-math/pull/631)
* [Pull request #630](https://github.com/gazebosim/gz-math/pull/630)
* [Pull request #628](https://github.com/gazebosim/gz-math/pull/628)

1. Fix Vector examples
* [Pull request #629](https://github.com/gazebosim/gz-math/pull/629)

1. Added CoordinateVector3 and used it in SphericalCoordinates
* [Pull request #616](https://github.com/gazebosim/gz-math/pull/616)

1. Clamping color channel values to within [0, 1]
* [Pull request #613](https://github.com/gazebosim/gz-math/pull/613)

1. Implement rule of zero part 2
* [Pull request #614](https://github.com/gazebosim/gz-math/pull/614)

1. Use ImplPtr, fix rule of 0 part 1
1. Use ImplPtr, Implement rule of zero
* [Pull request #608](https://github.com/gazebosim/gz-math/pull/608)
* [Pull request #614](https://github.com/gazebosim/gz-math/pull/614)

1. Fix flaky Stopwatch test
* [Pull request #610](https://github.com/gazebosim/gz-math/pull/610)
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

Build | Status
-- | --
Test coverage | [![codecov](https://codecov.io/gh/gazebosim/gz-math/branch/main/graph/badge.svg)](https://codecov.io/gh/gazebosim/gz-math/branch/main)
Ubuntu Noble | [![Build Status](https://build.osrfoundation.org/buildStatus/icon?job=gz_math-ci-main-noble-amd64)](https://build.osrfoundation.org/job/gz_math-ci-main-noble-amd64)
Homebrew | [![Build Status](https://build.osrfoundation.org/buildStatus/icon?job=gz_math-ci-main-homebrew-amd64)](https://build.osrfoundation.org/job/gz_math-ci-main-homebrew-amd64)
Windows | [![Build Status](https://build.osrfoundation.org/buildStatus/icon?job=gz_math-main-win)](https://build.osrfoundation.org/job/gz_math-main-win)
Test coverage | [![codecov](https://codecov.io/gh/gazebosim/gz-math/branch/gz-math8/graph/badge.svg)](https://codecov.io/gh/gazebosim/gz-math/tree/gz-math8)
Ubuntu Noble | [![Build Status](https://build.osrfoundation.org/buildStatus/icon?job=gz_math-ci-gz-math8-noble-amd64)](https://build.osrfoundation.org/job/gz_math-ci-gz-math8-noble-amd64)
Homebrew | [![Build Status](https://build.osrfoundation.org/buildStatus/icon?job=gz_math-ci-gz-math8-homebrew-amd64)](https://build.osrfoundation.org/job/gz_math-ci-gz-math8-homebrew-amd64)
Windows | [![Build Status](https://build.osrfoundation.org/buildStatus/icon?job=gz_math-8-win)](https://build.osrfoundation.org/job/gz_math-8-win)

Gazebo Math, a component of [Gazebo](https://gazebosim.org), provides general purpose math
classes and functions designed for robotic applications.
Expand All @@ -27,9 +27,9 @@ classes and functions designed for robotic applications.

[Folder Structure](#folder-structure)

[Code of Conduct](#code-of-conduct)
[Contributing](#contributing)

[Contributing](#code-of-contributing)
[Code of Conduct](#code-of-conduct)

[Versioning](#versioning)

Expand All @@ -47,11 +47,11 @@ Math types.

# Install

See the [installation tutorial](https://gazebosim.org/api/math/7/install.html).
See the [installation tutorial](https://gazebosim.org/api/math/8/install.html).

# Usage

Please refer to the [examples directory](https://github.com/gazebosim/gz-math/raw/main/examples/).
Please refer to the [examples directory](https://github.com/gazebosim/gz-math/raw/gz-math8/examples/).

# Folder Structure

Expand Down Expand Up @@ -90,4 +90,4 @@ This library uses [Semantic Versioning](https://semver.org/). Additionally, this

# License

This library is licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0). See also the [LICENSE](https://github.com/gazebosim/gz-math/blob/main/LICENSE) file.
This library is licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0). See also the [LICENSE](https://github.com/gazebosim/gz-math/blob/gz-math8/LICENSE) file.
1 change: 0 additions & 1 deletion eigen3/include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
add_subdirectory(gz)
install(DIRECTORY ignition DESTINATION ${GZ_INCLUDE_INSTALL_DIR_FULL})
19 changes: 0 additions & 19 deletions eigen3/include/ignition/math/eigen3.hh

This file was deleted.

19 changes: 0 additions & 19 deletions eigen3/include/ignition/math/eigen3/Conversions.hh

This file was deleted.

19 changes: 0 additions & 19 deletions eigen3/include/ignition/math/eigen3/Util.hh

This file was deleted.

2 changes: 1 addition & 1 deletion examples/vector3_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import gz.math8

v1 = gz.math8.Vector3d(0, 0, 3)
print("v =: {} {} {}\n".format(v1.x(), v1.y(), v1.z()))
print("v1 = {} {} {}\n".format(v1.x(), v1.y(), v1.z()))

v2 = gz.math8.Vector3d(4, 0, 0)
print("v2 = {} {} {}\n".format(v2.x(), v2.y(), v2.z()))
Expand Down
2 changes: 1 addition & 1 deletion examples/vector3_example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require 'gz/math'

v1 = Gz::Math::Vector3d.new(0, 0, 0)
printf("v =: %f %f %f\n", v1.X(), v1.Y(), v1.Z())
printf("v1 = %f %f %f\n", v1.X(), v1.Y(), v1.Z())

v2 = Gz::Math::Vector3d.new(1, 0, 0)
printf("v2 = %f %f %f\n", v2.X(), v2.Y(), v2.Z())
Expand Down
122 changes: 0 additions & 122 deletions tutorials/angle.md

This file was deleted.

2 changes: 1 addition & 1 deletion tutorials/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ You can also set or read a color in HSV.

\snippet examples/color_example.cc Set value from HSV

There are more functions in `Color`. Take a look at the [API](https://gazebosim.org/api/math/7/classgz_1_1math_1_1Color.html)
There are more functions in `Color`. Take a look at the [API](https://gazebosim.org/api/math/8/classgz_1_1math_1_1Color.html)
7 changes: 7 additions & 0 deletions tutorials/example_angle.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ 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, run:

```{.sh}
# Linux and macOS
./angle_example
# Windows
.\build\Release\angle_example.exe
```

The ouput of the program:
Expand Down
9 changes: 8 additions & 1 deletion tutorials/example_triangle.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ 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, run:

```{.sh}
# Linux and macOS
./triangle_example
# Windows
.\build\Release\triangle_example.exe
```

The ouput of the program:
Expand Down Expand Up @@ -69,4 +76,4 @@ The `Intersects` function checks if a line segment intersects the triangle. It a

\snippet examples/triangle_example.cc intersect

There are more functions in `Triangle`. Take a look at the [API](https://gazebosim.org/api/math/7/)
There are more functions in `Triangle`. Take a look at the [API](https://gazebosim.org/api/math/8/)
Loading

0 comments on commit ab6c73d

Please sign in to comment.