RoughDistAttribute - Extended-Object-Detection-ROS/wiki_english GitHub Wiki
A pseudo-attribute, that roughly determines the distance to an object when its width or height is known. An adequate result can be counted on only in the case when the object is always recognized under the same angle.
Modes | Accuracy assessment | 3D-translation | 3D-rotation | Contour extraction | Additional info |
---|---|---|---|---|---|
E | - | ✔ | ❌ | - | - |
- Name (string, must be set) attribute unique name
- Type (string, must be "RoughDist") attribute type
- Weight (double, default: 1) attribute weight
- Probability (double, default: 0.75) not used in this attribute
- Contour (bool, default: true) not used in this attribute
- realWidth (double, default: 0.0) The real width of the object.
- realHeight (double, default: 0.0) The real height of the object. Used if the height is initialized to zero.
<?xml version="1.0" ?>
<AttributeLib>
<Attribute Name="HistColorPink" Type="HistColor" Histogram="histograms/Pink.yaml"/>
<Attribute Name="StickerRoughDist" Type="RoughDist" realWidth="0.075"/>
</AttributeLib>
<SimpleObjectBase>
<SimpleObject Name="PinkSticker" ID="2">
<Attribute Type="Detect">HistColorPink</Attribute>
<Attribute Type="Check">NotFractal</Attribute>
</SimpleObject>
<SimpleObject Name="PinkStickerRoughDist" ID="7">
<Attribute Type="Detect">HistColorPink</Attribute>
<Attribute Type="Extract">StickerRoughDist</Attribute>
</SimpleObject>
</SimpleObjectBase>
Comparison of objects, with the addition of this pseudo-attribute. In rviz, PinkSticker is drawn at a distance of 1m from the camera (which means that the distance is not known), while PinkStickerRoughDist is at a smaller distance, which is true.