RoughDistAttribute - Extended-Object-Detection-ROS/wiki_english GitHub Wiki

RoughDist

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

2. XML-description

2.1. Common parameters

  • 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

2.2. Special parameters

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

2.3. Example

<?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>

rough hist attribute example 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.

⚠️ **GitHub.com Fallback** ⚠️