simulation.src.simulation_evaluation.src.sign_evaluation package

Submodules

simulation.src.simulation_evaluation.src.sign_evaluation.node module

Classes:

Sign(position, desc, visible, detections)

SignEvaluationNode()

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: object

Attributes:

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.

to_msg()[source]

Create the sign evaluation message.

static closest(signs: List[simulation.src.simulation_evaluation.src.sign_evaluation.node.Sign], point: simulation.utils.geometry.point.Point)simulation.src.simulation_evaluation.src.sign_evaluation.node.Sign[source]
static sum_evaluations(evaluations)[source]

Sum over the evaluations.

Parameters

evaluations – list of tp, fp and distance per sign

Returns

The summed evaluations

class SignEvaluationNode[source]

Bases: simulation.utils.ros_base.transform_node.TransformNode

Evaluate 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_plots()

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.

start()[source]

Called when activating the node.

stop()[source]

Called when deactivating or shutting down the node.

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

create_plots()[source]

Create the plots from the detected signs.

_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.

save_msg(msg: simulation_evaluation.msg._TrafficSigns.TrafficSigns)[source]

Add a message to the signs.

Parameters

msg – The traffic sign massage from the detection.

simulation.src.simulation_evaluation.src.sign_evaluation.plots module

Functions:

create_plot(kinds, values, save_dir[, …])

Save the plots to the file system.

create_plot(kinds, values, save_dir, y_label='Score', file_name='eval', title='Evaluation of the Test')[source]

Save the plots to the file system.

Parameters
  • kinds – The class kinds of the bars.

  • values – Height of each bar.

  • save_dir – Save directory for the plots

Module contents