|
Apollo 10.0
自动驾驶开放平台
|
#include <termios.h>#include <cstdio>#include <iostream>#include <memory>#include <thread>#include "modules/common_msgs/chassis_msgs/chassis.pb.h"#include "modules/common_msgs/control_msgs/control_cmd.pb.h"#include "cyber/common/log.h"#include "cyber/common/macros.h"#include "cyber/cyber.h"#include "cyber/init.h"#include "cyber/time/time.h"#include "modules/canbus/vehicle/vehicle_controller.h"#include "modules/common/adapters/adapter_gflags.h"#include "modules/common/configs/vehicle_config_helper.h"#include "modules/common/util/message_util.h"函数 | |
| DEFINE_double (throttle_inc_delta, 2.0, "throttle pedal command delta percentage.") | |
| DEFINE_double (brake_inc_delta, 2.0, "brake pedal delta percentage") | |
| DEFINE_double (steer_inc_delta, 2.0, "steer delta percentage") | |
| DEFINE_bool (use_acceleration, false, "switch to use acceleration instead of throttle pedal and brake pedal") | |
| int | main (int32_t argc, char **argv) |
| DEFINE_bool | ( | use_acceleration | , |
| false | , | ||
| "switch to use acceleration instead of throttle pedal and brake pedal" | |||
| ) |
| DEFINE_double | ( | brake_inc_delta | , |
| 2. | 0, | ||
| "brake pedal delta percentage" | |||
| ) |
| DEFINE_double | ( | steer_inc_delta | , |
| 2. | 0, | ||
| "steer delta percentage" | |||
| ) |
| DEFINE_double | ( | throttle_inc_delta | , |
| 2. | 0, | ||
| "throttle pedal command delta percentage." | |||
| ) |
| int main | ( | int32_t | argc, |
| char ** | argv | ||
| ) |