提交 085013eb 编写于 作者: A andre-rosa 提交者: Xiangquan Xiao

Fix typos and some grammar in README files (#5497)

上级 5dcc78ea
......@@ -24,10 +24,10 @@
1. Go to the `modules/localization` directory, and create a `foo` directory. In the `foo` directory, implement the class `FooLocalization` by following the code in the `RTKLocalization` class in the `rtk` directory. `FooLocalization` has to be a subclass of `LocalizationBase`. Also create a file `foo/BUILD` by following the file `rtk/BUILD`.
1. You need to register the `FooLocalizatoin` class in the function `Localization::RegisterLocalizationMethods()`, which is located in the C++ file `localization.cc`. You can register it by inserting the following code at the end of the function:
1. You need to register the `FooLocalization` class in the function `Localization::RegisterLocalizationMethods()`, which is located in the C++ file `localization.cc`. You can register it by inserting the following code at the end of the function:
```
localization_factory_.Register(LocalizationConfing::FOO, []()->LocalizationBase* { return new FooLocalization(); });
localization_factory_.Register(LocalizationConfig::FOO, []()->LocalizationBase* { return new FooLocalization(); });
```
Make sure your code compiles by including the header files that defines class `FooLocalization`.
......
......@@ -29,9 +29,9 @@
1. 转到`modules/localization`目录,并创建一个Foo目录。在Foo目录中,根据rtk目录中的`RTKLocalization`类增加`FooLocalization`类。`FooLocalization`必须是`LocalizationBase`的子类。根据`rtk/BUILD`还需创建文件`foo/BUILD`
1. 您需要在函数`Localization::RegisterLocalizationMethods()`中注册`FooLocalizatoin`,它位于CPP文件`localization.cc`中。您可以通过在函数的末尾插入以下代码来注册:
1. 您需要在函数`Localization::RegisterLocalizationMethods()`中注册`FooLocalization`,它位于CPP文件`localization.cc`中。您可以通过在函数的末尾插入以下代码来注册:
```
localization_factory_.Register(LocalizationConfing::FOO, []()->LocalizationBase* { return new FooLocalization(); });
localization_factory_.Register(LocalizationConfig::FOO, []()->LocalizationBase* { return new FooLocalization(); });
```
请确保您的代码可以编译包含`FooLocalization`的头文件。
......
......@@ -26,7 +26,7 @@ x.txt # A text pb map.
```
## Difference between base\_map, routing\_map and sim\_map
* `base_map` is the most complete map that has all the road and lane geometry and labels. The other maps are generated based on `base_map`.
* `base_map` is the most complete map that has all roads, lane geometry and labels. The other maps are generated based on `base_map`.
* `routing_map` has the topology of the lanes in `base_map`. It can be generated by command:
```
......@@ -42,21 +42,21 @@ x.txt # A text pb map.
## Use a different map
1. [Prefered] Change global flagfile: *modules/common/data/global_flagfile.txt*
1. [Preferred] Change global flagfile: *modules/common/data/global_flagfile.txt*
Note that it's the basement of all modules' flagfile, which keeps the whole
system in one page.
1. Pass as flag, which only affect individual process:
1. Pass as flag, which only affects an individual process:
```bash
<binary> --map_dir=/path/to/your/map
```
1. Override in the module's own flagfile, which generally located at
1. Override in the module's own flagfile, which is generally located at
*modules/<module_name>/conf/<module_name>.conf*
Obviously it also only affect single module.
Obviously it also only affects a single module.
```txt
--flagfile=modules/common/data/global_flagfile.txt
......
# Relative Map
## Introduction
Relative map module is a middle layer connects HDMap/Perception module and planning module. This module generates real-time relative map in the body coordinate system (FLU) and a reference line for planning. The inputs for relative map module have two parts: offline and online. The offline part is navigation line (human driving path) and the HDMap information on and near navigation line. And the online part is the traffic sign related information from perception module, e.g., lane marker, corsswalk, traffice light and etc. The generation of relative map leverages both online and offline part. It also works with either online or offline part only.
Relative map module is a middle layer connecting HDMap/Perception module and planning module. This module generates real-time relative map in the body coordinate system (FLU) and a reference line for planning. The inputs for relative map module have two parts: offline and online. The offline part is navigation line (human driving path) and the HDMap information on and near navigation line. And the online part is the traffic sign related information from perception module, e.g., lane marker, crosswalk, traffic light etc. The generation of relative map can leverage both online and offline parts. It also works with either online or offline part only.
## Inputs
* NavigationInfo from dreamview module
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册