-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/slope_inaccuracies
- Loading branch information
Showing
170 changed files
with
3,333 additions
and
1,858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.4.7</version> | ||
<version>8.0.0</version> | ||
<description>arithmetic library for scenario_simulator_v2</description> | ||
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
common/math/geometry/include/geometry/quaternion/direction_to_quaternion.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// 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__DIRECTION_TO_QUATERNION_HPP_ | ||
#define GEOMETRY__QUATERNION__DIRECTION_TO_QUATERNION_HPP_ | ||
|
||
#include <cmath> | ||
#include <geometry/quaternion/euler_to_quaternion.hpp> | ||
#include <geometry/vector3/is_like_vector3.hpp> | ||
#include <geometry_msgs/msg/quaternion.hpp> | ||
#include <geometry_msgs/msg/vector3.hpp> | ||
|
||
namespace math | ||
{ | ||
namespace geometry | ||
{ | ||
auto convertDirectionToQuaternion(const double dx, const double dy, const double dz) | ||
{ | ||
const auto euler_angles = geometry_msgs::build<geometry_msgs::msg::Vector3>() | ||
.x(0.0) | ||
.y(std::atan2(-dz, std::hypot(dx, dy))) | ||
.z(std::atan2(dy, dx)); | ||
return math::geometry::convertEulerAngleToQuaternion(euler_angles); | ||
} | ||
|
||
template < | ||
typename T, std::enable_if_t<std::conjunction_v<IsLikeVector3<T>>, std::nullptr_t> = nullptr> | ||
auto convertDirectionToQuaternion(const T & v) | ||
{ | ||
return convertDirectionToQuaternion(v.x, v.y, v.z); | ||
} | ||
} // namespace geometry | ||
} // namespace math | ||
|
||
#endif // GEOMETRY__QUATERNION__DIRECTION_TO_QUATERNION_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.4.7</version> | ||
<version>8.0.0</version> | ||
<description>geometry math library for scenario_simulator_v2 application</description> | ||
<maintainer email="[email protected]">Masaya Kataoka</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>scenario_simulator_exception</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>Exception types for scenario simulator</description> | ||
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>simple_junit</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>Lightweight JUnit library for ROS 2</description> | ||
<maintainer email="[email protected]">Masaya Kataoka</maintainer> | ||
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>status_monitor</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>none</description> | ||
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>concealer</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>Provides a class 'Autoware' to conceal miscellaneous things to simplify Autoware management of the simulator.</description> | ||
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>embree_vendor</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>vendor packages for intel raytracing kernel library</description> | ||
<maintainer email="[email protected]">masaya</maintainer> | ||
<license>Apache 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>kashiwanoha_map</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>map package for kashiwanoha</description> | ||
<maintainer email="[email protected]">Masaya Kataoka</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>simple_cross_map</name> | ||
<version>7.4.7</version> | ||
<version>8.0.0</version> | ||
<description>map package for simple cross</description> | ||
<maintainer email="[email protected]">Masaya Kataoka</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
Oops, something went wrong.