Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Takamasa Horibe <[email protected]>
  • Loading branch information
TakaHoribe committed Feb 19, 2024
1 parent 9cf4b09 commit abed0ba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
10 changes: 3 additions & 7 deletions bag2lanelet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The provided functionalities are as follows:

As an example, the process of lanelet generation based on driving trajectories from the planning simulator is performed as follows. Typically, the expectation is to use rosbag data from manual driving, rather than from the planning simulator.

Firstly, you need to run the planning_simulator following the [planning_simulator tutorial in Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/main/tutorials/ad-hoc-simulation/planning-simulation/). The process would be, install Autoawre, download the maps, run the planning_simulator, and start autonomous driving. Make sure to save the rosbag during this driving session using the following command:
Firstly, you need to run the planning_simulator following the [planning_simulator tutorial in Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/main/tutorials/ad-hoc-simulation/planning-simulation/). The process would be, install Autoware, download the maps, run the planning_simulator, and start autonomous driving. Make sure to save the rosbag during this driving session using the following command:

```sh
ros2 bag record /tf -o /tmp/bag2lanelet_sample.bag
Expand Down Expand Up @@ -63,14 +63,10 @@ Check `./bag2lanelet.py --help`

### generate lanelet2 file

```sh
./bag2lanelet.py /home/autoware/rosbag/sample . --width=3.0
```

or with MGRS code at Monza Track
For given lane width and MGRS coordinate.

```sh
./bag2lanelet.py /home/autoware/rosbag/sample . --width=3.0 --mgrs 32TNR219517
./bag2lanelet.py /home/autoware/rosbag/sample . -l 3.0 -m 54SUE
```

### generate trajectory file for Vector Map Builder
Expand Down
4 changes: 2 additions & 2 deletions bag2lanelet/scripts/bag2lanelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from lanelet_xml import LaneletMap


def genarate(input_path, output, width, mgrs, interval, offset, use_centerline=False):
def generate(input_path, output, width, mgrs, interval, offset, use_centerline=False):
pose_array = bag2pose(input_path, interval)
pose_array = pose_array[::10]
left, right, center = pose2line(pose_array, width=width, offset=offset)
Expand Down Expand Up @@ -55,7 +55,7 @@ def main():
output_path = pathlib.Path(args.output_lanelet)

print(args)
genarate(
generate(
input_path, output_path, args.width, args.mgrs, args.interval, args.offset, args.center
)

Expand Down
4 changes: 2 additions & 2 deletions bag2lanelet/scripts/bag2map.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tools.bag2lanelet.scripts.lanelet_xml import LaneletMap


def genarate(input_path, output, mgrs):
def generate(input_path, output, mgrs):
point_array = bag2point_stamped(input_path, 40.0, 500.0)
m = LaneletMap(mgrs=mgrs)
latlon = [
Expand Down Expand Up @@ -44,7 +44,7 @@ def main():
raise FileNotFoundError("Input bag folder '{}' is not found.".format(input_path))

print(input_path)
genarate(input_path, args.output_dir, args.mgrs)
generate(input_path, args.output_dir, args.mgrs)


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions bag2lanelet/scripts/bag2trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import tf_transformations


def genarate(input_path, output_path):
def generate(input_path, output_path):
pose_array = bag2pose(input_path)
pose_array = pose_array[::50]

Expand All @@ -32,7 +32,7 @@ def main():
output_path = pathlib.Path(args.output_csv)

print(input_path, output_path)
genarate(input_path, output_path)
generate(input_path, output_path)


if __name__ == "__main__":
Expand Down

0 comments on commit abed0ba

Please sign in to comment.