Beispiel #1
0
# Let Python search for modules in the parent directory
import os, sys
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
PARENT_DIR = os.path.dirname(CURRENT_DIR)
sys.path.append(PARENT_DIR)

from missionplanner import plan_complete_coverage_mission
import testfields
import visualize


if __name__ == '__main__':
    testfield = testfields.test1 # choose any test available in
                                 # testfields.py
    visualization_data, mission = plan_complete_coverage_mission(
                                           testfield)

    visualize.visualize(visualization_data);
Beispiel #2
0
# This script reads a mission specification from stdin in JSON format
# and outputs the calculated list of waypoints, also in JSON.

import json
from sys import stdin, stdout

from missionplanner import plan_complete_coverage_mission
import visualize

if __name__ == '__main__':
    params = json.load(stdin)
    visualization_data, mission_spec = plan_complete_coverage_mission(params)
    json.dump(mission_spec, stdout)
    print
    stdout.flush()

    visualize.visualize(visualization_data)
Beispiel #3
0
# This script reads a mission specification from stdin in JSON format
# and outputs the calculated list of waypoints, also in JSON.

import json
from sys import stdin, stdout

from missionplanner import plan_complete_coverage_mission
import visualize

if __name__ == '__main__':
    params = json.load(stdin)
    visualization_data, mission_spec = plan_complete_coverage_mission(params)
    json.dump(mission_spec, stdout)
    print
    stdout.flush()

    visualize.visualize(visualization_data);
Beispiel #4
0
# Let Python search for modules in the parent directory
import os, sys

CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
PARENT_DIR = os.path.dirname(CURRENT_DIR)
sys.path.append(PARENT_DIR)

from missionplanner import plan_complete_coverage_mission
import testfields
import visualize

if __name__ == '__main__':
    testfield = testfields.test1  # choose any test available in
    # testfields.py
    visualization_data, mission = plan_complete_coverage_mission(testfield)

    visualize.visualize(visualization_data)