Apollo 11.0
自动驾驶开放平台
smoother_util.cc 文件参考
smoother_util.cc 的引用(Include)关系图:

浏览源代码.

类

class  apollo::planning::SmootherUtil
 

命名空间

namespace  apollo
 class register implement
 
namespace  apollo::planning
 apollo::planning
 

函数

 DEFINE_string (input_file, "", "input file with format x,y per line")
 
 DEFINE_string (output_file, "", "output file with format x,y per line")
 
 DEFINE_double (smooth_length, 200, "Smooth this amount of length ")
 
int main (int argc, char *argv[])
 

函数说明

◆ DEFINE_double()

DEFINE_double ( smooth_length  ,
200  ,
"Smooth this amount of length "   
)

◆ DEFINE_string() [1/2]

DEFINE_string ( input_file  ,
""  ,
"input file with format  x,
y per line"   
)

◆ DEFINE_string() [2/2]

DEFINE_string ( output_file  ,
""  ,
"output file with format  x,
y per line"   
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

在文件 smoother_util.cc 第 220 行定义.

220 {
221 google::InitGoogleLogging(argv[0]);
222 google::ParseCommandLineFlags(&argc, &argv, true);
223
224 if (FLAGS_input_file.empty()) {
225 AERROR << "need to provide --input_file";
226 return 0;
227 }
228 apollo::planning::SmootherUtil smoother_util(FLAGS_input_file);
229 if (!smoother_util.Smooth()) {
230 AERROR << "Failed to smooth a the line";
231 }
232 if (FLAGS_output_file.empty()) {
233 FLAGS_output_file = FLAGS_input_file + ".smoothed";
234 AINFO << "Output file not provided, set to: " << FLAGS_output_file;
235 }
236 smoother_util.Export(FLAGS_output_file);
237 return 0;
238}
#define AERROR
Definition log.h:44
#define AINFO
Definition log.h:42