Skip to content

Commit a6cc0a9

Browse files
committed
update content
1 parent 7081a61 commit a6cc0a9

File tree

2,306 files changed

+108488
-68623
lines changed

Some content is hidden

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

2,306 files changed

+108488
-68623
lines changed

README.md

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
# Autoware Universe
1+
# autoware.universe
22

3-
## Welcome to Autoware Universe
3+
For Autoware's general documentation, see [Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/).
44

5-
Autoware Universe serves as a foundational pillar within the Autoware ecosystem, playing a critical role in enhancing the core functionalities of autonomous driving technologies.
6-
This repository is a pivotal element of the Autoware Core/Universe concept, managing a wide array of packages that significantly extend the capabilities of autonomous vehicles.
5+
For detailed documents of Autoware Universe components, see [Autoware Universe Documentation](https://autowarefoundation.github.io/autoware.universe/).
76

8-
![autoware_universe_front](docs/assets/images/autoware_universe_front.png)
9-
10-
## Getting Started
11-
12-
To dive into the vast world of Autoware and understand how Autoware Universe fits into the bigger picture, we recommend starting with the [Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/). This resource provides a thorough overview of the Autoware ecosystem, guiding you through its components, functionalities, and how to get started with development.
13-
14-
### Explore Autoware Universe documentation
15-
16-
For those looking to explore the specifics of Autoware Universe components, the [Autoware Universe Documentation](https://autowarefoundation.github.io/autoware.universe/), deployed with MKDocs, offers detailed insights.
7+
---

common/autoware_ad_api_specs/package.xml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<version>0.0.0</version>
66
<description>The autoware_ad_api_specs package</description>
77
<maintainer email="isamu.takagi@tier4.jp">Takagi, Isamu</maintainer>
8+
<maintainer email="makoto.yabuta@tier4.jp">yabuta</maintainer>
9+
<maintainer email="kahhooi.tan@tier4.jp">Kah Hooi Tan</maintainer>
810
<maintainer email="ryohsuke.mitsudome@tier4.jp">Ryohsuke Mitsudome</maintainer>
911
<license>Apache License 2.0</license>
1012

common/autoware_auto_common/design/comparisons.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ The `exclusive_or` function will test whether two values cast to different boole
2222
## Example Usage
2323

2424
```c++
25-
#include "autoware_auto_common/common/bool_comparisons.hpp"
26-
#include "autoware_auto_common/common/float_comparisons.hpp"
25+
#include "common/bool_comparisons.hpp"
26+
#include "common/float_comparisons.hpp"
2727

2828
#include <iostream>
2929

common/autoware_auto_common/include/autoware_auto_common/common/types.hpp

-125
This file was deleted.

common/autoware_auto_common/include/autoware_auto_common/common/visibility_control.hpp

-38
This file was deleted.

common/autoware_auto_common/include/autoware_auto_common/common/type_traits.hpp common/autoware_auto_common/include/common/type_traits.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
//
1515
// Developed by Apex.AI, Inc.
1616

17-
#include "autoware_auto_common/common/types.hpp"
18-
#include "autoware_auto_common/common/visibility_control.hpp"
17+
#include <common/types.hpp>
18+
#include <common/visibility_control.hpp>
1919

2020
#include <cstdint>
2121
#include <tuple>
2222
#include <type_traits>
2323

24-
#ifndef AUTOWARE_AUTO_COMMON__COMMON__TYPE_TRAITS_HPP_
25-
#define AUTOWARE_AUTO_COMMON__COMMON__TYPE_TRAITS_HPP_
24+
#ifndef COMMON__TYPE_TRAITS_HPP_
25+
#define COMMON__TYPE_TRAITS_HPP_
2626

2727
namespace autoware
2828
{
@@ -219,4 +219,4 @@ struct intersect
219219
} // namespace common
220220
} // namespace autoware
221221

222-
#endif // AUTOWARE_AUTO_COMMON__COMMON__TYPE_TRAITS_HPP_
222+
#endif // COMMON__TYPE_TRAITS_HPP_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// Copyright 2017-2020 the Autoware Foundation, Arm Limited
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// Co-developed by Tier IV, Inc. and Apex.AI, Inc.
16+
/// \file
17+
/// \brief This file includes common type definition
18+
19+
#ifndef COMMON__TYPES_HPP_
20+
#define COMMON__TYPES_HPP_
21+
22+
#include "common/visibility_control.hpp"
23+
#include "helper_functions/float_comparisons.hpp"
24+
25+
#include <cstdint>
26+
#include <limits>
27+
#include <vector>
28+
29+
namespace autoware
30+
{
31+
namespace common
32+
{
33+
namespace types
34+
{
35+
// Aliases to conform to MISRA C++ Rule 3-9-2 (Directive 4.6 in MISRA C).
36+
// Similarly, the stdint typedefs should be used instead of plain int, long etc. types.
37+
// We don't currently require code to comply to MISRA, but we should try to where it is
38+
// easily possible.
39+
using bool8_t = bool;
40+
using char8_t = char;
41+
using uchar8_t = unsigned char;
42+
// If we ever compile on a platform where this is not true, float32_t and float64_t definitions
43+
// need to be adjusted.
44+
static_assert(sizeof(float) == 4, "float is assumed to be 32-bit");
45+
using float32_t = float;
46+
static_assert(sizeof(double) == 8, "double is assumed to be 64-bit");
47+
using float64_t = double;
48+
49+
/// pi = tau / 2
50+
constexpr float32_t PI = 3.14159265359F;
51+
/// pi/2
52+
constexpr float32_t PI_2 = 1.5707963267948966F;
53+
/// tau = 2 pi
54+
constexpr float32_t TAU = 6.283185307179586476925286766559F;
55+
56+
struct COMMON_PUBLIC PointXYZIF
57+
{
58+
float32_t x{0};
59+
float32_t y{0};
60+
float32_t z{0};
61+
float32_t intensity{0};
62+
uint16_t id{0};
63+
static constexpr uint16_t END_OF_SCAN_ID = 65535u;
64+
friend bool operator==(const PointXYZIF & p1, const PointXYZIF & p2) noexcept
65+
{
66+
using autoware::common::helper_functions::comparisons::rel_eq;
67+
const auto epsilon = std::numeric_limits<float32_t>::epsilon();
68+
return rel_eq(p1.x, p2.x, epsilon) && rel_eq(p1.y, p2.y, epsilon) &&
69+
rel_eq(p1.z, p2.z, epsilon) && rel_eq(p1.intensity, p2.intensity, epsilon) &&
70+
(p1.id == p2.id);
71+
}
72+
};
73+
74+
struct COMMON_PUBLIC PointXYZF
75+
{
76+
float32_t x{0};
77+
float32_t y{0};
78+
float32_t z{0};
79+
uint16_t id{0};
80+
static constexpr uint16_t END_OF_SCAN_ID = 65535u;
81+
friend bool operator==(const PointXYZF & p1, const PointXYZF & p2) noexcept
82+
{
83+
using autoware::common::helper_functions::comparisons::rel_eq;
84+
const auto epsilon = std::numeric_limits<float32_t>::epsilon();
85+
return rel_eq(p1.x, p2.x, epsilon) && rel_eq(p1.y, p2.y, epsilon) &&
86+
rel_eq(p1.z, p2.z, epsilon) && (p1.id == p2.id);
87+
}
88+
};
89+
90+
struct COMMON_PUBLIC PointXYZI
91+
{
92+
float32_t x{0.0F};
93+
float32_t y{0.0F};
94+
float32_t z{0.0F};
95+
float32_t intensity{0.0F};
96+
friend bool operator==(const PointXYZI & p1, const PointXYZI & p2) noexcept
97+
{
98+
return helper_functions::comparisons::rel_eq(
99+
p1.x, p2.x, std::numeric_limits<float32_t>::epsilon()) &&
100+
101+
helper_functions::comparisons::rel_eq(
102+
p1.y, p2.y, std::numeric_limits<float32_t>::epsilon()) &&
103+
104+
helper_functions::comparisons::rel_eq(
105+
p1.z, p2.z, std::numeric_limits<float32_t>::epsilon()) &&
106+
107+
helper_functions::comparisons::rel_eq(
108+
p1.intensity, p2.intensity, std::numeric_limits<float32_t>::epsilon());
109+
}
110+
};
111+
112+
using PointBlock = std::vector<PointXYZIF>;
113+
using PointPtrBlock = std::vector<const PointXYZIF *>;
114+
/// \brief Stores basic configuration information, does some simple validity checking
115+
static constexpr uint16_t POINT_BLOCK_CAPACITY = 512U;
116+
117+
// TODO(yunus.caliskan): switch to std::void_t when C++17 is available
118+
/// \brief `std::void_t<> implementation
119+
template <typename... Ts>
120+
using void_t = void;
121+
} // namespace types
122+
} // namespace common
123+
} // namespace autoware
124+
125+
#endif // COMMON__TYPES_HPP_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright 2017-2019 the Autoware Foundation
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// Co-developed by Tier IV, Inc. and Apex.AI, Inc.
16+
17+
#ifndef COMMON__VISIBILITY_CONTROL_HPP_
18+
#define COMMON__VISIBILITY_CONTROL_HPP_
19+
20+
#if defined(_MSC_VER) && defined(_WIN64)
21+
#if defined(COMMON_BUILDING_DLL) || defined(COMMON_EXPORTS)
22+
#define COMMON_PUBLIC __declspec(dllexport)
23+
#define COMMON_LOCAL
24+
#else // defined(COMMON_BUILDING_DLL) || defined(COMMON_EXPORTS)
25+
#define COMMON_PUBLIC __declspec(dllimport)
26+
#define COMMON_LOCAL
27+
#endif // defined(COMMON_BUILDING_DLL) || defined(COMMON_EXPORTS)
28+
#elif defined(__GNUC__) && defined(__linux__)
29+
#define COMMON_PUBLIC __attribute__((visibility("default")))
30+
#define COMMON_LOCAL __attribute__((visibility("hidden")))
31+
#elif defined(__GNUC__) && defined(__APPLE__)
32+
#define COMMON_PUBLIC __attribute__((visibility("default")))
33+
#define COMMON_LOCAL __attribute__((visibility("hidden")))
34+
#else // !(defined(__GNUC__) && defined(__APPLE__))
35+
#error "Unsupported Build Configuration"
36+
#endif // _MSC_VER
37+
38+
#endif // COMMON__VISIBILITY_CONTROL_HPP_

0 commit comments

Comments
 (0)