Title: | Tools for Analyzing RoboCupRescue Simulation Data |
---|---|
Description: | Provides functions for analyzing RoboCupRescue Simulation data. |
Authors: | Keisuke ANDO [aut, cre] |
Maintainer: | Keisuke ANDO <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2025-02-17 06:16:43 UTC |
Source: | https://github.com/NONONOexe/rrstools |
This function plots a rrs map
## S3 method for class 'rrs_map' plot( x, building_colour = "#f0e7d8", building_border = "#121212", road_colour = "#dbdbdb", road_border = "#121212", background_colour = NA, ... )
## S3 method for class 'rrs_map' plot( x, building_colour = "#f0e7d8", building_border = "#121212", road_colour = "#dbdbdb", road_border = "#121212", background_colour = NA, ... )
x |
An object class |
building_colour |
The colour of the buildings. |
building_border |
The border colour of the buildings. |
road_colour |
The colour of the roads. |
road_border |
The border colour of the roads. |
background_colour |
The background colour of the plot. |
... |
Additional arguments passed to |
gml <- system.file("extdata", "map-test.gml", package = "rrstools") map_data <- read_rrs_map(gml) plot(map_data)
gml <- system.file("extdata", "map-test.gml", package = "rrstools") map_data <- read_rrs_map(gml) plot(map_data)
This function reads and processes map data for RoboCupRescue Simulation from a GML file. It extracts nodes, edges, buildings and roads, and organizes them into a list.
read_rrs_map(gml, scale_data = FALSE)
read_rrs_map(gml, scale_data = FALSE)
gml |
Path to the GML file. |
scale_data |
Logical. If |
A list of sf
objects: nodes, edges, buildings, and roads.
gml <- system.file("extdata", "map-test.gml", package = "rrstools") map_data <- read_rrs_map(gml) map_data
gml <- system.file("extdata", "map-test.gml", package = "rrstools") map_data <- read_rrs_map(gml) map_data