Autoware.Auto
noise_interface.hpp
Go to the documentation of this file.
1
// Copyright 2021 Apex.AI, Inc.
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 STATE_ESTIMATION__NOISE_MODEL__NOISE_INTERFACE_HPP_
18
#define STATE_ESTIMATION__NOISE_MODEL__NOISE_INTERFACE_HPP_
19
20
#include <
state_estimation/visibility_control.hpp
>
21
22
#include <chrono>
23
24
namespace
autoware
25
{
26
namespace
common
27
{
28
namespace
state_estimation
29
{
30
37
template
<
typename
Derived>
38
class
STATE_ESTIMATION_PUBLIC
NoiseInterface
39
{
40
public
:
48
inline
auto
covariance
(
const
std::chrono::nanoseconds & dt)
const
49
{
50
return
static_cast<
const
Derived &
>
(*this).crtp_covariance(dt);
51
}
52
};
53
54
}
// namespace state_estimation
55
}
// namespace common
56
}
// namespace autoware
57
58
#endif // STATE_ESTIMATION__NOISE_MODEL__NOISE_INTERFACE_HPP_
autoware::common::state_estimation::NoiseInterface
A CRTP interface for implementing noise models used for providing motion model noise covariance.
Definition:
noise_interface.hpp:38
autoware
This file defines the lanelet2_map_provider_node class.
Definition:
quick_sort.hpp:24
autoware::common::state_estimation::NoiseInterface::covariance
auto covariance(const std::chrono::nanoseconds &dt) const
Get a covariance matrix for this noise model.
Definition:
noise_interface.hpp:48
visibility_control.hpp