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.
carma_cloud_client_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#include <vector>
21
23{
24
28 struct Config
29 {
30 //host machine IP
31 std::string url ="http://127.0.0.1:";
32 std::string base_hb = "/carmacloud/v2xhub";
33 //URL for traffic control request
34 std::string base_req = "/carmacloud/tcmreq";
35 //URL for traffic control acknowlegement.
36 std::string base_ack = "/carmacloud/tcmack";
37 std::string method = "POST";
38 // 33333 is the port that will send from v2xhub to carma cloud ## initally was 23665
39 std::string port = "33333";
40 // list determines how the TCMs will be sent in response. "true" means a list of TCMs are sent. "false" means one at a time
41 std::string list = "true";
42 // number of days back when a geofence is valid
43 int fetchtime = 15;
44
45 uint16_t webport = 22222;
46 std::string webip = "WebServiceIP";
47
48 // Stream operator for this config
49 friend std::ostream &operator<<(std::ostream &output, const Config &c)
50 {
51 output << "carma_cloud_client::Config { " << std::endl
52 << "url: " << c.url << std::endl
53 << "base_hb: " << c.base_hb << std::endl
54 << "base_req: " << c.base_req << std::endl
55 << "base_ack: " << c.base_ack << std::endl
56 << "port: " << c.port << std::endl
57 << "list: " << c.list << std::endl
58 << "fetchtime: " << c.fetchtime << std::endl
59 << "method: " << c.method << std::endl
60 << "}" << std::endl;
61 return output;
62 }
63 };
64
65} // carma_cloud_client
Stuct containing the algorithm configuration values for carma_cloud_client.
friend std::ostream & operator<<(std::ostream &output, const Config &c)