-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/resources #42
base: master
Are you sure you want to change the base?
Feature/resources #42
Conversation
.idea/atf.iml
Outdated
@@ -0,0 +1,12 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all .idea*
-files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do I do that? Just remove them or use some git-magic?
@@ -15,6 +15,7 @@ def parse_parameter(self, testblock_name, params): | |||
Method that returns the metric method with the given parameter. | |||
:param params: Parameter | |||
""" | |||
print "pathlength params:", params |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
del metric['groundtruth_epsilon'] | ||
except (TypeError, KeyError): | ||
rospy.logwarn( | ||
"No groundtruth parameters given, skipping groundtruth evaluation for metric 'path_length' in testblock '%s'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metric 'ressources'
metrics = CalculateResources(self.params) | ||
|
||
metrics = [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add block for checking list type
if type(params) is not list:
rospy.logerr("metric config not a list")
return False
groundtruth_result = False | ||
|
||
#print "node data: ", self.node_data, "\n groundthruth result", groundtruth_result, " \n .................................." | ||
return "resources", self.node_data, groundtruth_result, self.groundtruth, self.groundtruth_epsilon, "*resources details*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use details = None
if there is no usefull things to wrap in here. see https://github.com/ipa-fmw/atf/blob/master/atf_metrics/src/atf_metrics/calculate_time.py#L68
…recording Conflicts: .gitignore atf_metrics/config/metrics.yaml
self.test_config = config_file | ||
def __init__(self, write_lock, bag_file_writer): | ||
self.topic_prefix = "atf/" | ||
file = "/home/fmw-hb/workshop_catkin_ws/src/msh_test/hannes_test_msh/config/test_configs/test2.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where can I get the test config (or the path to it) from?
counter += 1 | ||
|
||
elif msg.trigger == TestblockTrigger.STOP: | ||
print "STOP Trigger" | ||
|
||
def create_testblock_list(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a chance to get the testblock list from somewhere else?
Conflicts: .gitignore atf_core/src/atf_core/recorder.py atf_metrics/config/metrics.yaml atf_metrics/src/atf_metrics/check_localization.py atf_presenter/scripts/presenter.py hannes_test/config/test_configs/test1.yaml hannes_test/config/test_generation_config.yaml hannes_test/config/test_suites.yaml hannes_test/launch/application.launch hannes_test/scripts/application.py
self.test_config = config_file | ||
def __init__(self, write_lock, bag_file_writer): | ||
self.topic_prefix = "atf/" | ||
file = "/home/fmw-hb/atf_catkin_ws/src/atf/hannes_test/config/test_configs/test1.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to get the test config otherwise, but don't know how
added metric for resources