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 File Reference
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 29 of file main.cpp.

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}
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...

References mock_drivers::MockDriver::run().

Here is the call graph for this function: