-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
64 update readme svg map parser pedestrian #69
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b9ceff0
Delete old maps
JuliusMiller 794fb1e
Adjust README
JuliusMiller f9f6506
Add Gif
JuliusMiller 1db11bc
Update map_test.py -> Update for new map
JuliusMiller 1ef516d
fix typo
JuliusMiller 299f32d
fix typos
JuliusMiller ac470d1
Add colors to Color section
JuliusMiller 6b4228e
Change color to colour for consistency
JuliusMiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# robot-sf | ||
|
||
## SIM VIEW | ||
|
||
### About | ||
|
||
The [sim_view.py](../robot_sf/render/sim_view.py) file manages the visualization of the simulation.\ | ||
If you want to change the colors or display more information you have to adjust this file. | ||
|
||
### Key Events | ||
|
||
Multiple key shortcuts are implemented: | ||
|
||
- **Arrow keys**: Move camera | ||
- **CTRL + Arrow keys**: Move fast | ||
- **ALT + Arrow keys**: Move slow | ||
- **+**: Scale up | ||
- **-**: Scale down | ||
- **r**: Reset view | ||
- **f**: Focus Robot | ||
- **p**: Focus Pedestrian | ||
- **h**: Display help | ||
- **q**: Display information: none -> robot -> pedestrian if present -> none -> ... |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# robot-sf | ||
|
||
## SVG Map Editor | ||
|
||
### About | ||
|
||
This file explains how to build a map for robot-sf using a svg-editor. | ||
All examples are made with [inkscape](https://inkscape.org/). | ||
![example](./img/inkscape_example.png) | ||
|
||
### Setup | ||
|
||
These settings should be checked before building a map. | ||
|
||
- Use **px** as global unit (File -> Document Properties) | ||
|
||
- Use absolute coordinates for your path, marked by the **M**.\ | ||
(Edit -> Preferences -> Input/Output -> SVG Output -> Path string format -> Absolute) | ||
|
||
*Inkscape version: 1.3.2* | ||
|
||
[Further reference](https://github.com/ll7/robot_sf_ll7/issues/40) | ||
|
||
### Building the map | ||
|
||
Colours can be selected as desired, as the simulation uses its own colour scheme. | ||
ll7 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
However, it is best to remain consistent to make the map easier to understand. | ||
|
||
The most important part is setting the label. In Inkscape this can be done by double-clicking the object in the layers-and-objects list on the right side or by right-clicking the object and selecting the object properties. | ||
|
||
Use layers to make it clearer. | ||
|
||
#### Obstacles | ||
|
||
Obstacles should be avoided by the vehicle and the pedestrians.\ | ||
Draw them by using the rectangle tool.\ | ||
Set the label to **obstacle** | ||
|
||
[Obstacle Issue](https://github.com/ll7/robot_sf_ll7/issues/55) | ||
|
||
#### Robot | ||
|
||
The robot needs a spawn zone to define his starting position and a goal zone he needs to reach to finish the episode. Multiple zones can be used.\ | ||
Draw them by using the rectangle tool.\ | ||
Set the labels to **robot_spawn_zone** and **robot_goal_zone** | ||
|
||
The robot path defines the route the robot takes, while reaching the goal zone.\ | ||
Use the pen tool for this and perform multiple left clicks to set waypoints along the path.\ | ||
The path should not start or end inside the spawn/goal zone, but just before it.\ | ||
Set the label to **robot_route_\<spawn\>_\<goal\>**.\ | ||
|
||
(e.g. robot_route_1_0 -> Using Spawn 1 and Goal 0.\ | ||
The zone numbers are counted from bottom to top in the list on the right-hand side) | ||
|
||
#### NPC Pedestrians | ||
|
||
The Pedestrians also need a spawn/goal zone. If they reach the goal they will spawn again at the start\ | ||
The labels for this are: **ped_spawn_zone** and **ped_goal_zone**\ | ||
|
||
For the path you dont need to set specific waypoints, just make sure the path doesnt collide with an obstacle. | ||
The label: **ped_route_\<spawn\>_\<goal\>**. | ||
|
||
### Colors | ||
|
||
The Colors can be found here [sim_view.py](../robot_sf/render/sim_view.py) | ||
|
||
### New Features | ||
|
||
If you want to implement new features: [svg_map_parser.py](../robot_sf/nav/svg_map_parser.py) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix grammatical error in Environment description
There's a minor grammatical error in the sentence describing the Environment.
Please apply the following change:
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool