Nav2 Navigation Stack - kilted
kilted
ROS 2 Navigation Stack
nav2_mppi_controller
include
nav2_mppi_controller
models
control_sequence.hpp
1
// Copyright (c) 2022 Samsung Research America, @artofnothingness Alexey Budyakov
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
#ifndef NAV2_MPPI_CONTROLLER__MODELS__CONTROL_SEQUENCE_HPP_
16
#define NAV2_MPPI_CONTROLLER__MODELS__CONTROL_SEQUENCE_HPP_
17
18
#include <Eigen/Dense>
19
20
namespace
mppi::models
21
{
22
27
struct
Control
28
{
29
float
vx, vy, wz;
30
};
31
36
struct
ControlSequence
37
{
38
Eigen::ArrayXf vx;
39
Eigen::ArrayXf vy;
40
Eigen::ArrayXf wz;
41
42
void
reset(
unsigned
int
time_steps)
43
{
44
vx.setZero(time_steps);
45
vy.setZero(time_steps);
46
wz.setZero(time_steps);
47
}
48
};
49
50
}
// namespace mppi::models
51
52
#endif
// NAV2_MPPI_CONTROLLER__MODELS__CONTROL_SEQUENCE_HPP_
mppi::models::ControlSequence
A control sequence over time (e.g. trajectory)
Definition:
control_sequence.hpp:37
mppi::models::Control
A set of controls.
Definition:
control_sequence.hpp:28
Generated by
1.9.1