Skip to content

Commit

Permalink
Merge pull request #39 from twardokus/dev
Browse files Browse the repository at this point in the history
Move trace files into a directory for cleanliness and adjust filepath…
  • Loading branch information
twardokus authored Feb 4, 2022
2 parents 7f444f2 + 95b5ed9 commit 298ebf9
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion v2verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def transmit(vehicle_index: int, hostname: str) -> None:
vehicle = v2verifier.Vehicle.Vehicle(public, private, args.hostname)
vehicle.run(mode="transmitter",
tech="dsrc",
pvm_list=v2verifier.Utility.read_data_from_file(config["scenario"]["traceFiles"][vehicle_index]),
pvm_list=v2verifier.Utility.read_data_from_file("trace_files/" + config["scenario"]["traceFiles"][vehicle_index]),
hostname=hostname,
test_mode=args.test)

Expand Down
2 changes: 1 addition & 1 deletion v2verifier/Vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def run_self(self, test_mode=False):
with open("init.yml") as config_file:
config = yaml.load(config_file, Loader=yaml.FullLoader)

pvm_list = v2verifier.Utility.read_data_from_file(config["local"]["tracefile"])
pvm_list = v2verifier.Utility.read_data_from_file("trace_files/" + config["local"]["tracefile"])
for pvm_element in pvm_list:
latitude, longitude, elevation, speed, heading = pvm_element.split(",")
bsm = v2verifier.V2VTransmit.generate_v2v_bsm(float(latitude),
Expand Down

0 comments on commit 298ebf9

Please sign in to comment.