RAPP Platform
v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
|
Functions | |
def | computed_cropped_origin |
def | find_bounds |
Variables | |
tuple | bounds = find_bounds(map_image) |
string | crop_image = crop_name+".pgm" |
list | crop_name = sys.argv[2] |
string | crop_yaml = crop_name+".yaml" |
tuple | cropped_image = map_image.crop((bounds[0], bounds[2], bounds[1] + 1, bounds[3] + 1)) |
tuple | map_data = yaml.safe_load(f) |
tuple | map_image = Image.open(map_image_file) |
list | map_image_file = map_data["image"] |
list | origin = map_data["origin"] |
list | resolution = map_data["resolution"] |
def crop_map.computed_cropped_origin | ( | map_image, | |
bounds, | |||
resolution, | |||
origin | |||
) |
Compute the image for the cropped map when map_image is cropped by bounds and had origin before.
Definition at line 24 of file crop_map.py.
def crop_map.find_bounds | ( | map_image | ) |
Definition at line 8 of file crop_map.py.
tuple crop_map.bounds = find_bounds(map_image) |
Definition at line 66 of file crop_map.py.
string crop_map.crop_image = crop_name+".pgm" |
Definition at line 55 of file crop_map.py.
list crop_map.crop_name = sys.argv[2] |
Definition at line 51 of file crop_map.py.
string crop_map.crop_yaml = crop_name+".yaml" |
Definition at line 54 of file crop_map.py.
Definition at line 69 of file crop_map.py.
tuple crop_map.map_data = yaml.safe_load(f) |
Definition at line 48 of file crop_map.py.
tuple crop_map.map_image = Image.open(map_image_file) |
Definition at line 64 of file crop_map.py.
list crop_map.map_image_file = map_data["image"] |
Definition at line 60 of file crop_map.py.
list crop_map.origin = map_data["origin"] |
Definition at line 62 of file crop_map.py.
list crop_map.resolution = map_data["resolution"] |
Definition at line 61 of file crop_map.py.