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.
stop_controlled_intersection_config.hpp
Go to the documentation of this file.
1#pragma once
2
3/*
4 * Copyright (C) 2022 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{
27{
28 double trajectory_time_length = 6.0; // Trajectory length in seconds
29 double curve_resample_step_size = 1.0; // Curve re-sampling step size in m
30 double centerline_sampling_spacing = 1.0; // The gap in meters between points sampled from the lanelet centerlines for planning trajectory positions
31 int curvature_moving_average_window_size = 9; // Size of the window used in the moving average filter to smooth the curvature profile
32 // computed curvature and output speeds
33 double lateral_accel_limit = 2.5; // Maximum allowable lateral acceleration m/s^2
34 int speed_moving_average_window_size = 5; // Size of the window used in the moving average filter to smooth both the speed profile
35 double back_distance = 20; // Number of meters behind the first maneuver that need to be included in points for curvature calculation
36
37 friend std::ostream& operator<<(std::ostream& output, const StopControlledIntersectionTacticalPluginConfig& c)
38 {
39 output <<"StopControlledIntersectionTacticalPluginConfig { " <<std::endl
40 << "trajectory_time_length: " << c.trajectory_time_length << std::endl
41 << "curve_resample_step_size: " << c.curve_resample_step_size << std::endl
42 << "centerline_sampling_spacing: " << c.centerline_sampling_spacing << std::endl
43 << "curvature_moving_average_window_size: " << c.curvature_moving_average_window_size << std::endl
44 << "lateral_accel_limit: " << c.lateral_accel_limit << std::endl
45 << "speed_moving_average_window_size: " << c.speed_moving_average_window_size << std::endl
46 << "back_distance: " << c.back_distance << std::endl
47 << "}" << std::endl;
48 return output;
49 }
50};
51
52} //namespace stop_controlled_intersection_tactical_plugin
Stuct containing the algorithm configuration values for the StopControlledIntersectionTacticalPlugin.
friend std::ostream & operator<<(std::ostream &output, const StopControlledIntersectionTacticalPluginConfig &c)