simulation.src.simulation_evaluation.src.sign_evaluation package¶
Submodules¶
simulation.src.simulation_evaluation.src.sign_evaluation.node module¶
Classes:
|
|
Evaluate the sign detection of the simulated car. |
- class Sign(position: simulation.utils.geometry.point.Point, desc: str, visible: bool, detections: List[Any] = <factory>)[source]¶
Bases:
objectAttributes:
Methods:
evaluate()Evaluate this sign.
to_msg()Create the sign evaluation message.
closest(signs, point)sum_evaluations(evaluations)Sum over the evaluations.
- position: simulation.utils.geometry.point.Point¶
- desc: str¶
- visible: bool¶
- detections: List[Any]¶
- evaluate()[source]¶
Evaluate this sign.
- Returns
the true_positive false_positive and average_distance.
- class SignEvaluationNode[source]¶
Bases:
simulation.utils.ros_base.transform_node.TransformNodeEvaluate the sign detection of the simulated car.
Methods:
start()Called when activating the node.
stop()Called when deactivating or shutting down the node.
get_evaluations(ids)Calculate the evaluation for the given ids.
Create the plots from the detected signs.
_publish_point_marker(point, id[, ns])Publish an RVIZ marker on the publisher’s topic.
add_detection(point, desc)Add the detection to the closest sign.
save_msg(msg)Add a message to the signs.
- get_evaluations(ids)[source]¶
Calculate the evaluation for the given ids.
- Returns
The summed true_positive, false_positive, distances per sign. descriptions: The list of sign descriptions.
- Return type
evaluations
- _publish_point_marker(point: simulation.utils.geometry.point.Point, id: int, ns='simulation/sign_evaluation')[source]¶
Publish an RVIZ marker on the publisher’s topic.
- Parameters
point – Point to be published.
id – RVIZ marker id.
ns – RVIZ namespace of the marker.
- add_detection(point: simulation.utils.geometry.point.Point, desc: str)[source]¶
Add the detection to the closest sign.
- Parameters
point – The center point of the detection.
desc – The description of the found sign.
simulation.src.simulation_evaluation.src.sign_evaluation.plots module¶
Functions:
|
Save the plots to the file system. |