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.
trajectory_follower_wrapper_config.hpp
Go to the documentation of this file.
1#pragma once
2
3/*
4 * Copyright (C) 2024 LEIDOS.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 * use this file except in compliance with the License. You may obtain a copy of
8 * the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 * License for the specific language governing permissions and limitations under
16 * the License.
17 */
18
19#include <iostream>
20
22{
23
28 {
29 double vehicle_response_lag = 0.2; // (in seconds) approximation of the delay between sent vehicle commands and the vehicle beginning a meaningful acceleration to that command" - set and modified in carma config
30 double incoming_cmd_time_threshold = 1.0; // (in second) acceptable time difference from autoware's contrl command to still use the command
31 double vehicle_wheel_base = 2.79; //(in meter) distance between the centers of the front and rear axles - set and modified in carma config
32
33
34 // Stream operator for this config
35 friend std::ostream &operator<<(std::ostream &output, const TrajectoryFollowerWrapperConfig &c)
36 {
37 output << "trajectory_follower_wrapper::TrajectoryFollowerWrapperConfig { " << std::endl
38 << "vehicle_response_lag: " << c.vehicle_response_lag << std::endl
39 << "vehicle_wheel_base: " << c.vehicle_wheel_base << std::endl
40 << "incoming_cmd_time_threshold: " << c.incoming_cmd_time_threshold << std::endl
41 << "}" << std::endl;
42 return output;
43 }
44 };
45
46} // trajectory_follower_wrapper
Stuct containing the algorithm configuration values for trajectory_follower_wrapper.
friend std::ostream & operator<<(std::ostream &output, const TrajectoryFollowerWrapperConfig &c)