Skip to content

Commit 7e43fca

Browse files
authored
Merge branch 'master' into feature/set_route
2 parents e80970f + e9151b2 commit 7e43fca

File tree

76 files changed

+499
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+499
-94
lines changed

common/agnocast_wrapper/CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ Changelog for package agnocast_wrapper
55
16.4.2 (2025-05-23)
66
-------------------
77

8+
16.4.4 (2025-05-28)
9+
-------------------
10+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
11+
* Merge branch 'master' into feature/delay_curventure_calculation
12+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
13+
* Merge remote-tracking branch 'origin/master' into feature/speed_up
14+
* Contributors: Masaya Kataoka
15+
816
16.4.3 (2025-05-27)
917
-------------------
1018
* Merge branch 'master' into refactor/behavior-tree-2

common/agnocast_wrapper/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>agnocast_wrapper</name>
5-
<version>16.4.3</version>
5+
<version>16.4.4</version>
66
<description>A wrapper package for agnocast</description>
77
<maintainer email="[email protected]">Mateusz Palczuk</maintainer>
88
<license>Apache License 2.0</license>

common/get_parameter/CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ Changelog for package get_parameter
55
16.4.2 (2025-05-23)
66
-------------------
77

8+
16.4.4 (2025-05-28)
9+
-------------------
10+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
11+
* Merge branch 'master' into feature/delay_curventure_calculation
12+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
13+
* Merge remote-tracking branch 'origin/master' into feature/speed_up
14+
* Contributors: Masaya Kataoka
15+
816
16.4.3 (2025-05-27)
917
-------------------
1018
* Merge branch 'master' into refactor/behavior-tree-2

common/get_parameter/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>get_parameter</name>
5-
<version>16.4.3</version>
5+
<version>16.4.4</version>
66
<description>Thin wrapper for rclcpp::Node::get_parameter</description>
77
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer>
88
<license>Apache License 2.0</license>

common/math/arithmetic/CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ Changelog for package arithmetic
2424
16.4.2 (2025-05-23)
2525
-------------------
2626

27+
16.4.4 (2025-05-28)
28+
-------------------
29+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
30+
* Merge branch 'master' into feature/delay_curventure_calculation
31+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
32+
* Merge remote-tracking branch 'origin/master' into feature/speed_up
33+
* Contributors: Masaya Kataoka
34+
2735
16.4.3 (2025-05-27)
2836
-------------------
2937
* Merge branch 'master' into refactor/behavior-tree-2

common/math/arithmetic/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>arithmetic</name>
5-
<version>16.4.3</version>
5+
<version>16.4.4</version>
66
<description>arithmetic library for scenario_simulator_v2</description>
77
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer>
88
<license>Apache License 2.0</license>

common/math/geometry/CHANGELOG.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ Changelog for package geometry
2424
16.4.2 (2025-05-23)
2525
-------------------
2626

27+
16.4.4 (2025-05-28)
28+
-------------------
29+
* Merge pull request `#1609 <https://github.com/tier4/scenario_simulator_v2/issues/1609>`_ from tier4/feature/delay_curventure_calculation
30+
Feature/delay curventure calculation
31+
* check resolution is not zero
32+
* use const &
33+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
34+
* Merge branch 'master' into feature/delay_curventure_calculation
35+
* apply reformat
36+
* make isApproximatelyEqualTo function to public
37+
* Merge remote-tracking branch 'origin/master' into feature/delay_curventure_calculation
38+
* fix test case
39+
* fix typo
40+
* check waypoint duplication
41+
* delay curventure calculation
42+
* delay curventure calculation
43+
* Merge remote-tracking branch 'origin/master' into feature/speed_up
44+
* enable calculate route before requestFollowTrajectory
45+
* enable construct polyline trajectory from spline
46+
* Speed up by changing to logic that does not use exceptions
47+
* Contributors: Masaya Kataoka, Taiga
48+
2749
16.4.3 (2025-05-27)
2850
-------------------
2951
* Merge branch 'master' into refactor/behavior-tree-2

common/math/geometry/include/geometry/solver/polynomial_solver.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ class PolynomialSolver
101101
*/
102102
constexpr static double tolerance = 1e-7;
103103

104+
/**
105+
* @brief check the value0 and value1 is equal or not with considering tolerance.
106+
* @param value0 the value you want to compare
107+
* @param value1 the value you want to compared
108+
* @return true value0 and value1 are equal
109+
* @return false value0 and value1 are not equal
110+
*/
111+
auto isApproximatelyEqualTo(const double value0, const double value1) const -> bool;
112+
104113
private:
105114
/**
106115
* @brief solve cubic equation x^3 + a*x^2 + b*x + c = 0
@@ -119,14 +128,6 @@ class PolynomialSolver
119128
auto filterByRange(
120129
const std::vector<double> & values, const double min_value, const double max_value) const
121130
-> std::vector<double>;
122-
/**
123-
* @brief check the value0 and value1 is equal or not with considering tolerance.
124-
* @param value0 the value you want to compare
125-
* @param value1 the value you want to compared
126-
* @return true value0 and value1 are equal
127-
* @return false value0 and value1 are not equal
128-
*/
129-
auto isApproximatelyEqualTo(const double value0, const double value1) const -> bool;
130131
};
131132
} // namespace geometry
132133
} // namespace math

common/math/geometry/include/geometry/spline/catmull_rom_spline.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
#include <geometry/spline/catmull_rom_spline_interface.hpp>
2020
#include <geometry/spline/hermite_curve.hpp>
2121
#include <geometry_msgs/msg/point.hpp>
22+
#include <memory>
2223
#include <optional>
2324
#include <string>
25+
#include <traffic_simulator_msgs/msg/polyline_trajectory.hpp>
2426
#include <utility>
2527
#include <vector>
2628

@@ -33,6 +35,9 @@ class CatmullRomSpline : public CatmullRomSplineInterface
3335
public:
3436
CatmullRomSpline() = default;
3537
explicit CatmullRomSpline(const std::vector<geometry_msgs::msg::Point> & control_points);
38+
explicit CatmullRomSpline(
39+
const geometry_msgs::msg::Point & start_point,
40+
const std::shared_ptr<traffic_simulator_msgs::msg::PolylineTrajectory> & trajectory);
3641
auto getLength() const -> double override { return total_length_; }
3742
auto getMaximum2DCurvature() const -> double;
3843
auto getPoint(const double s) const -> geometry_msgs::msg::Point;
@@ -43,6 +48,8 @@ class CatmullRomSpline : public CatmullRomSplineInterface
4348
auto getTrajectory(
4449
const double start_s, const double end_s, const double resolution,
4550
const double offset = 0.0) const -> std::vector<geometry_msgs::msg::Point>;
51+
auto getTrajectoryPoses(const double start_s, const double end_s, const double resolution) const
52+
-> std::vector<geometry_msgs::msg::Pose>;
4653
auto getSValue(const geometry_msgs::msg::Pose & pose, double threshold_distance = 3.0) const
4754
-> std::optional<double>;
4855
auto getSquaredDistanceIn2D(const geometry_msgs::msg::Point & point, const double s) const
@@ -78,7 +85,8 @@ class CatmullRomSpline : public CatmullRomSplineInterface
7885
std::vector<LineSegment> line_segments_;
7986
std::vector<HermiteCurve> curves_;
8087
std::vector<double> length_list_;
81-
std::vector<double> maximum_2d_curvatures_;
88+
/// @note Since curvature calculation requires a large computational cost, it is inefficient to calculate it in the member initializer list and must be calculated when the getMaximum2DCurvature function is first called.
89+
mutable std::vector<double> maximum_2d_curvatures_;
8290
double total_length_;
8391
};
8492
} // namespace geometry

common/math/geometry/include/geometry/vector3/operator.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <geometry_msgs/msg/point.hpp>
2121
#include <geometry_msgs/msg/quaternion.hpp>
2222
#include <geometry_msgs/msg/vector3.hpp>
23+
#include <limits>
2324

2425
namespace math
2526
{
@@ -131,6 +132,16 @@ auto operator+=(T & a, const U & b) -> decltype(auto)
131132
a.z += b.z;
132133
return a;
133134
}
135+
136+
template <
137+
typename T, typename U,
138+
std::enable_if_t<std::conjunction_v<IsLikeVector3<T>, IsLikeVector3<U>>, std::nullptr_t> =
139+
nullptr>
140+
auto operator==(const T & a, const U & b) -> bool
141+
{
142+
constexpr decltype(a.x) e = std::numeric_limits<decltype(a.x)>::epsilon();
143+
return (std::abs(a.x - b.x) < e) && (std::abs(a.y - b.y) < e) && (std::abs(a.z - b.z) < e);
144+
}
134145
} // namespace geometry
135146
} // namespace math
136147

0 commit comments

Comments
 (0)