Commit 66ce9ff8 authored by Sascha Dewes's avatar Sascha Dewes

create dummysim results folder if it does not exist yet

parent dc29170a
Pipeline #410580 passed with stage
in 12 minutes and 59 seconds
......@@ -65,6 +65,9 @@ class RosSimConnector(object):
self.__score = 0
self.__scores = []
self.__scores_counter = 0
if not os.path.exists(RosSimConnector.results_dirname):
os.makedirs(RosSimConnector.results_dirname)
rospy.init_node('ForestrySim', anonymous=True)
rate = rospy.Rate(RosSimConnector.ros_update_rate)
......
......@@ -64,6 +64,9 @@ class RosSimConnector(object):
self.__score = 0
self.__scores = []
self.__scores_counter = 0
if not os.path.exists(RosSimConnector.results_dirname):
os.makedirs(RosSimConnector.results_dirname)
rospy.init_node('ForestrySim', anonymous=True)
rate = rospy.Rate(RosSimConnector.ros_update_rate)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment