Skip to content

Commit

Permalink
⬆️ 6.5.0 (#155)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Sep 5, 2020
1 parent 87d3406 commit bf1e3e2
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
#============================================================================
# Initialize the project
#============================================================================
project(ignition-math6 VERSION 6.4.0)
project(ignition-math6 VERSION 6.5.0)

#============================================================================
# Find ignition-cmake
Expand Down
59 changes: 59 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,60 @@

## Ignition Math 6.x.x

## Ignition Math 6.5.0 (2020-09-04)

1. Add string to time function
* [Pull request 152](https://github.com/ignitionrobotics/ign-math/pull/152)

1. Added functions to convert between time_point and secNsec
* [Pull request 150](https://github.com/ignitionrobotics/ign-math/pull/150)

1. Fix IGNITION_MATH_XXX_VERSION
* [Pull request 151](https://github.com/ignitionrobotics/ign-math/pull/151)

1. Add Max and Min function to Vector2.hh
* [Pull request 133](https://github.com/ignitionrobotics/ign-math/pull/133)
* [Pull request 148](https://github.com/ignitionrobotics/ign-math/pull/148)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Round, Rounded, Correct, Distance(x, y, z, w) and operator< addition to Vector 4
* [Pull request 146](https://github.com/ignitionrobotics/ign-math/pull/146)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Sum and normalized functions for Vector4
* [Pull request 140](https://github.com/ignitionrobotics/ign-math/pull/140)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Vector4 Ruby tests - Vector4.i and Vector4_TEST.rb
* [Pull request 137](https://github.com/ignitionrobotics/ign-math/pull/137)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Vector3 to vector4 functions
* [Pull request 132](https://github.com/ignitionrobotics/ign-math/pull/132)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Update vector2 fuctions from vector3
* [Pull request 130](https://github.com/ignitionrobotics/ign-math/pull/130)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Add Abs, Dot and AbsDot and respective tests to Vector4
* [Pull request 135](https://github.com/ignitionrobotics/ign-math/pull/135)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Create abs, absDot and Correct functions for Vector2d
* [Pull request 143](https://github.com/ignitionrobotics/ign-math/pull/143)
* [Issue 71](https://github.com/ignitionrobotics/ign-math/issues/71)

1. Document Ruby tests
* [Pull request 145](https://github.com/ignitionrobotics/ign-math/pull/145)

1. Add header for numeric_limits allowing build on ubuntu 16.04
* [Pull request 119](https://github.com/ignitionrobotics/ign-math/pull/119)

1. Add setter/getter for Pose's each element
* [Pull request 125](https://github.com/ignitionrobotics/ign-math/pull/125)
* [Issue 35](https://github.com/ignitionrobotics/ign-math/issues/35)

1. Implement AxisAlignedBox Volume function
* [Pull request 126](https://github.com/ignitionrobotics/ign-math/pull/126)

Expand All @@ -11,6 +65,11 @@
1. Make alpha optional when parsing a Color from an input stream.
* [Pull request 106](https://github.com/ignitionrobotics/ign-math/pull/106)

1. GitHub actions CI and workflow updates
* [Pull request 117](https://github.com/ignitionrobotics/ign-math/pull/117)
* [Pull request 139](https://github.com/ignitionrobotics/ign-math/pull/139)
* [Pull request 110](https://github.com/ignitionrobotics/ign-math/pull/110)

1. Added a Gauss-Markov Process class.
* [BitBucket pull request 342](https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-math/pull-requests/342)

Expand Down
9 changes: 5 additions & 4 deletions include/ignition/math/Helpers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -835,12 +835,13 @@ namespace ignition
/// \param[in] _timeString The string to convert in general format
/// "dd hh:mm:ss.nnn" where n is millisecond value
/// \return A std::chrono::steady_clock::time_point containing the
/// string's time value
/// string's time value. If it isn't possible to convert, the time will
/// be negative 1 second.
inline std::chrono::steady_clock::time_point stringToTimePoint(
const std::string &_timeString)
{
std::chrono::steady_clock::time_point timePoint =
math::secNsecToTimePoint(-1, 0);
using namespace std::chrono_literals;
std::chrono::steady_clock::time_point timePoint{-1s};

if (_timeString.empty())
return timePoint;
Expand Down Expand Up @@ -908,7 +909,7 @@ namespace ignition
{
numberDays = std::stoi(dayString);
}
catch (const std::out_of_range &oor)
catch (const std::out_of_range &)
{
return timePoint;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Helpers_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,10 @@ TEST(HelpersTest, timePointToString)
/////////////////////////////////////////////////
TEST(HelpersTest, stringToTimePoint)
{
std::chrono::steady_clock::time_point zeroTime =
math::secNsecToTimePoint(0, 0);
std::chrono::steady_clock::time_point negTime =
math::secNsecToTimePoint(-1, 0);
using namespace std::chrono_literals;

std::chrono::steady_clock::time_point zeroTime{0s};
std::chrono::steady_clock::time_point negTime{-1s};

std::string time = "0 00:00:00.000";
std::chrono::steady_clock::time_point resultTime =
Expand Down

0 comments on commit bf1e3e2

Please sign in to comment.