Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/is_in_inter…
Browse files Browse the repository at this point in the history
…section
  • Loading branch information
hakuturu583 committed Dec 18, 2024
2 parents 07364ce + fc3108c commit 18602c0
Show file tree
Hide file tree
Showing 111 changed files with 4,275 additions and 232 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/custom_spell.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"Tschirnhaus",
"walltime",
"xerces",
"xercesc"
"xercesc",
"Szymon",
"Parapura"
]
}
101 changes: 101 additions & 0 deletions common/math/arithmetic/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,107 @@ Changelog for package arithmetic
* Merge remote-tracking branch 'origin/master' into feature/publish_empty_context
* Contributors: Masaya Kataoka

7.3.1 (2024-12-17)
------------------
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Contributors: Kotaro Yoshimoto

7.3.0 (2024-12-16)
------------------
* Merge branch 'master' into feature/multi-level-lanelet-support
* Merge branch 'master' into feature/multi-level-lanelet-support
* Merge branch 'master' into feature/multi-level-lanelet-support
* Merge branch 'master' into feature/multi-level-lanelet-support
* Merge branch 'master' into feature/multi-level-lanelet-support
* Contributors: Kotaro Yoshimoto, SzymonParapura

7.2.0 (2024-12-16)
------------------
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Contributors: Tatsuya Yamasaki, yamacir-kit

7.1.0 (2024-12-16)
------------------
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Contributors: Tatsuya Yamasaki, yamacir-kit

7.0.4 (2024-12-13)
------------------
* Merge branch 'master' into fix/speed-condition/backward-compatibility
* Merge remote-tracking branch 'origin/master' into fix/speed-condition/backward-compatibility
* Contributors: Tatsuya Yamasaki, yamacir-kit

7.0.3 (2024-12-13)
------------------
* Merge branch 'master' into fix/request-enable-autoware-control
* Merge branch 'master' into fix/request-enable-autoware-control
* Merge branch 'master' into fix/request-enable-autoware-control
* Merge branch 'master' into fix/request-enable-autoware-control
* Contributors: Kotaro Yoshimoto

7.0.2 (2024-12-12)
------------------
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Contributors: Masaya Kataoka, Taiga

7.0.1 (2024-12-11)
------------------
* Merge branch 'master' into feature/act-starttrigger-optional
* Merge branch 'master' into feature/act-starttrigger-optional
* Contributors: Kotaro Yoshimoto, ぐるぐる

7.0.0 (2024-12-10)
------------------
* Merge remote-tracking branch 'origin/master' into RJD-736/autoware_msgs_support
Expand Down
2 changes: 1 addition & 1 deletion common/math/arithmetic/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>arithmetic</name>
<version>7.0.0</version>
<version>7.3.1</version>
<description>arithmetic library for scenario_simulator_v2</description>
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer>
<license>Apache License 2.0</license>
Expand Down
125 changes: 125 additions & 0 deletions common/math/geometry/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,131 @@ Changelog for package geometry
* Merge remote-tracking branch 'origin/master' into feature/publish_empty_context
* Contributors: Masaya Kataoka

7.3.1 (2024-12-17)
------------------
* Merge pull request `#1475 <https://github.com/tier4/scenario_simulator_v2/issues/1475>`_ from tier4/fix/math-closest-point
Fix bug in `math::geometry::getClosestPoses`
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Merge branch 'master' into fix/math-closest-point
* Fix spell mistake
* Fix getClosestPoses with naive algorithm
* Apply clang-format
* Add some test cases for getClosestPoses
* Contributors: Kotaro Yoshimoto, f0reachARR

7.3.0 (2024-12-16)
------------------
* Merge pull request `#1481 <https://github.com/tier4/scenario_simulator_v2/issues/1481>`_ from tier4/feature/multi-level-lanelet-support
Feature/multi level lanelet support
* Merge branch 'master' into feature/multi-level-lanelet-support
* Merge branch 'master' into feature/multi-level-lanelet-support
* Merge branch 'master' into feature/multi-level-lanelet-support
* ref(traffic_simulator, simple_sensor_simulator): refactor altitude checks
* Refactor code to improve readability based on SonarQube findings
* Merge branch 'master' into feature/multi-level-lanelet-support
* Remove comment
* Merge branch 'master' into feature/multi-level-lanelet-support
* Fix missing newline at end of file
* [RJD-1369] Improve Collision Solving for Multi-Level Support
- Enhanced BehaviorTree to consider altitude when detecting potential obstacles,
allowing to ignore objects located at different altitudes.
- Modified the detection sensor by introducing Ego plane determination to exclude objects below the Ego plane,
preventing unnecessary slowing or stopping caused by incorrect detections.
* Contributors: Dawid Moszynski, Kotaro Yoshimoto, SzymonParapura

7.2.0 (2024-12-16)
------------------
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge branch 'master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/master' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' into RJD-736/autoware_msgs_support_and_localization_sim_mode_support
* Contributors: Tatsuya Yamasaki, yamacir-kit

7.1.0 (2024-12-16)
------------------
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Cleanup
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Add new static member function `RelativeSpeedCondition::evaluate`
* Merge branch 'master' into feature/time-to-collision-condition
* Merge remote-tracking branch 'origin/master' into feature/time-to-collision-condition
* Contributors: Tatsuya Yamasaki, yamacir-kit

7.0.4 (2024-12-13)
------------------
* Merge branch 'master' into fix/speed-condition/backward-compatibility
* Merge remote-tracking branch 'origin/master' into fix/speed-condition/backward-compatibility
* Contributors: Tatsuya Yamasaki, yamacir-kit

7.0.3 (2024-12-13)
------------------
* Merge branch 'master' into fix/request-enable-autoware-control
* Merge branch 'master' into fix/request-enable-autoware-control
* Merge branch 'master' into fix/request-enable-autoware-control
* Merge branch 'master' into fix/request-enable-autoware-control
* Contributors: Kotaro Yoshimoto

7.0.2 (2024-12-12)
------------------
* Merge pull request `#1470 <https://github.com/tier4/scenario_simulator_v2/issues/1470>`_ from tier4/fix/snor-cloud-issue-8-1
Fix/sonor cloud issue 8-1
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Fixed bugs and added comments.
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Merge branch 'master' into fix/snor-cloud-issue-8-1
* Remove the commented out code.
Replace this declaration by a structured binding declaration.
* Contributors: Masaya Kataoka, Taiga, Taiga Takano

7.0.1 (2024-12-11)
------------------
* Merge branch 'master' into feature/act-starttrigger-optional
* Merge branch 'master' into feature/act-starttrigger-optional
* Contributors: Kotaro Yoshimoto, ぐるぐる

7.0.0 (2024-12-10)
------------------
* Merge remote-tracking branch 'origin/master' into RJD-736/autoware_msgs_support
Expand Down
45 changes: 45 additions & 0 deletions common/math/geometry/include/geometry/plane.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2015 TIER IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef GEOMETRY__PLANE_HPP_
#define GEOMETRY__PLANE_HPP_

#include <geometry_msgs/msg/point.hpp>
#include <geometry_msgs/msg/vector3.hpp>
#include <optional>

namespace math
{
namespace geometry
{

/// @class Plane
/// @brief Represents a plane in 3D space, defined by a normal vector and a point on the plane.
///
/// The plane is described using the equation:
/// Ax + By + Cz + D = 0
/// where:
/// - A, B, C are the components of the normal vector (normal_ attribute).
/// - D is the offset from the origin, calculated using the point and normal vector (d_ attribute).
struct Plane
{
Plane(const geometry_msgs::msg::Point & point, const geometry_msgs::msg::Vector3 & normal);
auto offset(const geometry_msgs::msg::Point & point) const -> double;

const geometry_msgs::msg::Vector3 normal_;
const double d_;
};
} // namespace geometry
} // namespace math
#endif // GEOMETRY__PLANE_HPP_
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright 2015 TIER IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef GEOMETRY__QUATERNION__GET_ANGLE_DIFFERENCE_HPP_
#define GEOMETRY__QUATERNION__GET_ANGLE_DIFFERENCE_HPP_

#include <Eigen/Geometry>
#include <geometry/quaternion/is_like_quaternion.hpp>

namespace math
{
namespace geometry
{
template <
typename T, std::enable_if_t<std::conjunction_v<IsLikeQuaternion<T>>, std::nullptr_t> = nullptr>
auto getAngleDifference(const T & quat1, const T & quat2) -> double
{
const Eigen::Quaterniond q1(quat1.w, quat1.x, quat1.y, quat1.z);
const Eigen::Quaterniond q2(quat2.w, quat2.x, quat2.y, quat2.z);

const Eigen::AngleAxisd delta(q1.inverse() * q2);

return std::abs(delta.angle()); // [rad]
}
} // namespace geometry
} // namespace math

#endif // GEOMETRY__QUATERNION__GET_ANGLE_DIFFERENCE_HPP_
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2015 TIER IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef GEOMETRY__VECTOR3__GET_NORMAL_VECTOR_HPP_
#define GEOMETRY__VECTOR3__GET_NORMAL_VECTOR_HPP_

#include <geometry/quaternion/get_rotation_matrix.hpp>
#include <geometry/quaternion/is_like_quaternion.hpp>
#include <geometry_msgs/msg/vector3.hpp>

namespace math
{
namespace geometry
{
template <
typename T, std::enable_if_t<std::conjunction_v<IsLikeQuaternion<T>>, std::nullptr_t> = nullptr>
auto getNormalVector(const T & orientation) -> geometry_msgs::msg::Vector3
{
const Eigen::Matrix3d rotation_matrix = getRotationMatrix(orientation);

return geometry_msgs::build<geometry_msgs::msg::Vector3>()
.x(rotation_matrix(0, 2))
.y(rotation_matrix(1, 2))
.z(rotation_matrix(2, 2));
}

} // namespace geometry
} // namespace math

#endif // GEOMETRY__VECTOR3__GET_NORMAL_VECTOR_HPP_
2 changes: 1 addition & 1 deletion common/math/geometry/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>geometry</name>
<version>7.0.0</version>
<version>7.3.1</version>
<description>geometry math library for scenario_simulator_v2 application</description>
<maintainer email="[email protected]">Masaya Kataoka</maintainer>
<license>Apache License 2.0</license>
Expand Down
Loading

0 comments on commit 18602c0

Please sign in to comment.