robokudo.utils.annotation_conversion

This module provides conversion methods from Annotations to other types, such as ROS Message types. It’s mainly used to in the result generation to fill the query result from the available annotations, hence it requires a target ObjectDesignator to act on.

Classes

Annotation2AnnotationConverter

Helper class that provides a standard way to create an ABC using

Annotation2ODConverter

Helper class that provides a standard way to create an ABC using

PoseAnnotationToStampedPoseAnnotationConverter

Helper class that provides a standard way to create an ABC using

PositionAnnotationToStampedPoseAnnotationConverter

Helper class that provides a standard way to create an ABC using

SemanticColor2ODConverter

Helper class that provides a standard way to create an ABC using

Classification2ODConverter

Helper class that provides a standard way to create an ABC using

StampedPoseConverter

Helper class that provides a standard way to create an ABC using

BoundingBox3DForShapeSizeConverter

Helper class that provides a standard way to create an ABC using

Module Contents

class robokudo.utils.annotation_conversion.Annotation2AnnotationConverter

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract can_convert(annotation, target_annotation_type) bool
abstract convert(annotation: robokudo.types.core.Annotation, cas: robokudo.cas.CAS = None) robokudo.types.core.Annotation
class robokudo.utils.annotation_conversion.Annotation2ODConverter

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract can_convert(annotation) bool
abstract convert(annotation: robokudo.types.core.Annotation, cas: robokudo.cas.CAS, object_designator: robokudo_msgs.msg.ObjectDesignator) None
class robokudo.utils.annotation_conversion.PoseAnnotationToStampedPoseAnnotationConverter

Bases: Annotation2AnnotationConverter

Helper class that provides a standard way to create an ABC using inheritance.

can_convert(annotation, target_annotation_type) bool
convert(annotation: robokudo.types.core.Annotation, cas: robokudo.cas.CAS = None) robokudo.types.core.Annotation
class robokudo.utils.annotation_conversion.PositionAnnotationToStampedPoseAnnotationConverter

Bases: Annotation2AnnotationConverter

Helper class that provides a standard way to create an ABC using inheritance.

can_convert(annotation, target_annotation_type) bool
convert(annotation: robokudo.types.core.Annotation, cas: robokudo.cas.CAS = None) robokudo.types.core.Annotation
class robokudo.utils.annotation_conversion.SemanticColor2ODConverter

Bases: Annotation2ODConverter

Helper class that provides a standard way to create an ABC using inheritance.

can_convert(annotation) bool
convert(annotation: robokudo.types.core.Annotation, cas: robokudo.cas.CAS, object_designator: robokudo_msgs.msg.ObjectDesignator) None
class robokudo.utils.annotation_conversion.Classification2ODConverter

Bases: Annotation2ODConverter

Helper class that provides a standard way to create an ABC using inheritance.

can_convert(annotation) bool
convert(annotation: robokudo.types.core.Annotation, cas: robokudo.cas.CAS, object_designator: robokudo_msgs.msg.ObjectDesignator) None
class robokudo.utils.annotation_conversion.StampedPoseConverter

Bases: Annotation2ODConverter

Helper class that provides a standard way to create an ABC using inheritance.

can_convert(annotation) bool
convert(annotation: robokudo.types.annotation.StampedPoseAnnotation, cas: robokudo.cas.CAS, object_designator: robokudo_msgs.msg.ObjectDesignator) None
class robokudo.utils.annotation_conversion.BoundingBox3DForShapeSizeConverter

Bases: Annotation2ODConverter

Helper class that provides a standard way to create an ABC using inheritance.

can_convert(annotation) bool
convert(annotation: robokudo.types.cv.BoundingBox3D, cas: robokudo.cas.CAS, object_designator: robokudo_msgs.msg.ObjectDesignator) None