Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
vehicle_state.hpp
Go to the documentation of this file.
1#ifndef __ARBITRATOR_INCLUDE_VEHICLE_STATE_HPP__
2#define __ARBITRATOR_INCLUDE_VEHICLE_STATE_HPP__
3
4/*
5 * Copyright (C) 2022 LEIDOS.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 * use this file except in compliance with the License. You may obtain a copy of
9 * the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations under
17 * the License.
18 */
19
20#include <lanelet2_core/Forward.h>
21#include <rclcpp/rclcpp.hpp>
22
23namespace arbitrator
24{
29{
30 rclcpp::Time stamp; // Time stamp of position data used to populate struct
31 double x = 0; // Vehicle x axis position in map frame (m)
32 double y = 0; // Vehicle y axis position in map frame (m)
33 double downtrack = 0; // Vehicle route downtrack (m)
34 double velocity = 0; // Vehicle logitudinal velocity
35 lanelet::Id lane_id = lanelet::InvalId; // Vehicle lane id based on downtrack
36};
37} // namespace arbitrator
38
39#endif //__ARBITRATOR_INCLUDE_VEHICLE_STATE_HPP__
Struct defining the vehicle state required for maneuver planning.