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.
mobilitypath_visualizer_config.hpp
Go to the documentation of this file.
1#pragma once
2
3/*
4 * Copyright (C) 2019-2022LEIDOS.
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#include <vector>
21
23{
24
28 struct Config
29 {
30 int timer_cb_rate = 10;
31 double x = 0.5;
32 double y = 0.5;
33 double z = 1.0;
34 double t = 3.0;
35 std::string host_id = "";
36
37 // Stream operator for this config
38 friend std::ostream &operator<<(std::ostream &output, const Config &c)
39 {
40 output << "mobilitypath_visualizer::Config { " << std::endl
41 << "timer_cb_rate: " << c.timer_cb_rate << std::endl
42 << "x: " << c.x << std::endl
43 << "y: " << c.y << std::endl
44 << "z: " << c.z << std::endl
45 << "t: " << c.t << std::endl
46 << "host_id: "<< c.host_id << std::endl
47 << "}" << std::endl;
48 return output;
49 }
50 };
51
52} // mobilitypath_visualizer
Stuct containing the algorithm configuration values for <package_name>
friend std::ostream & operator<<(std::ostream &output, const Config &c)