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.
main.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020-2021 LEIDOS.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16
17#include <ros/ros.h>
18
28
29int main(int argc, char** argv)
30{
31 ros::init(argc, argv, "mock_driver");
32
33 if (strcmp("camera", argv[1]) == 0)
34 {
36 node.run();
37 }
38
39 else if (strcmp("can", argv[1]) == 0)
40 {
42 node.run();
43 }
44
45 else if (strcmp("comms", argv[1]) == 0)
46 {
48 node.run();
49 }
50
51 else if (strcmp("controller", argv[1]) == 0)
52 {
54 node.run();
55 }
56
57 else if (strcmp("gnss", argv[1]) == 0)
58 {
60 node.run();
61 }
62
63 else if (strcmp("imu", argv[1]) == 0)
64 {
66 node.run();
67 }
68
69 else if (strcmp("lidar", argv[1]) == 0)
70 {
72 node.run();
73 }
74
75 else if (strcmp("radar", argv[1]) == 0)
76 {
78 node.run();
79 }
80
81 else if (strcmp("roadway_sensor", argv[1]) == 0)
82 {
84 node.run();
85 }
86
87 return 0;
88}
int main(int argc, char **argv)
Definition: main.cpp:20
Mock CAN driver. Operates as a passthrough for bag data which updates the timestamps on received mess...
Definition: MockCANDriver.h:32
Mock camera driver. Operates as a passthrough for bag data which updates the timestamps on received m...
Mock Comms driver. Operates as a passthrough for bag data which updates the timestamps on received me...
Mock Controller driver. Implements controller service and feedback logic to support CARMA Platform Gu...
int run()
A function to initialize the publishers and subsricers and start the node. In child classes,...
Definition: MockDriver.cpp:35
Mock GNSS driver. Operates as a passthrough for bag data which updates the timestamps on received mes...
Mock IMU driver. Operates as a passthrough for bag data which updates the timestamps on received mess...
Definition: MockIMUDriver.h:26
Mock Lidar driver. Operates as a passthrough for bag data which updates the timestamps on received me...
Mock Radar driver. Operates as a passthrough for bag data which updates the timestamps on received me...
Mock Roadway Sensor driver. Operates as a passthrough for bag data which updates the timestamps on re...