generated from ijnek/ros2_template_repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,45 @@ | ||
# Template Repo | ||
# Soccer Field Map Generator | ||
|
||
[![Build and Test (humble)](../../actions/workflows/build_and_test_humble.yaml/badge.svg?branch=rolling)](../../actions/workflows/build_and_test_humble.yaml?query=branch:rolling) | ||
[![Build and Test (iron)](../../actions/workflows/build_and_test_iron.yaml/badge.svg?branch=rolling)](../../actions/workflows/build_and_test_iron.yaml?query=branch:rolling) | ||
[![Build and Test (rolling)](../../actions/workflows/build_and_test_rolling.yaml/badge.svg?branch=rolling)](../../actions/workflows/build_and_test_rolling.yaml?query=branch:rolling) | ||
|
||
This repository contains a tool for generating soccer field maps. It includes a GUI for interactively creating and editing maps, as well as a command-line interface for scripted map generation. | ||
|
||
## Installation | ||
|
||
To install the tool, run the following commands in your colcon workspace: | ||
|
||
```bash | ||
git clone [email protected]:ros-sports/soccer_field_map_generator.git src/soccer_field_map_generator | ||
rosdep install --from-paths src --ignore-src -r -y | ||
colcon build | ||
``` | ||
|
||
Don't forget to source your workspace after building: | ||
|
||
```bash | ||
source install/setup.bash | ||
``` | ||
|
||
## Usage | ||
|
||
### GUI | ||
|
||
To launch the GUI, run the following command: | ||
|
||
```bash | ||
ros2 run soccer_field_map_generator gui | ||
``` | ||
|
||
You should see a window like this: | ||
|
||
![GUI](gui.png) | ||
|
||
### CLI | ||
|
||
To generate a map using the command-line interface, run the following command: | ||
|
||
```bash | ||
ros2 run soccer_field_map_generator cli [output_file] [config_file] [options] | ||
``` |