ProximitySensor

Model ElementMeasures the closest distance between graphics/mesh of two bodies.

Class Name

ProximitySensor

Description

The ProximitySensor element defines a sensor that measures the minimum distance between the graphics/mesh of two bodies. The sensor tracks the state of interference of the graphics/mesh, the length of the minimum distance, and the coordinates of a pair of closest points. These quantities can be accessed using the PROXIMITY function for use in defining expressions or for plotting.

Attribute Summary

Name Property Modifiable by command? Designable?
id Int()    
label Str()    
igeom Reference (Graphics, count=0)    
iflex Reference (FlexBody)    
jgeom Reference (Graphics, count=0)    
jflex Reference (FlexBody)    

Usage

ProximitySensor (id=integer, label=string, igeom=[integer,integer,…], jflex=integer)

Attributes

id
Integer
Element identification number (id > 0).
This number is unique among all ProximitySensor elements and uniquely identifies the element.
label
String
The name of the ProximitySensor element.
igeom
List of Graphics objects.
This is a list of the Graphics objects on the first body to be considered for contact.
Note: All GRAPHICS entities must belong to the same body.
Note: Omit this attribute if the body is flexible.
iflex
This argument specifies the Flex_Body for the first body to be considered for contact.
Note: Omit this attribute if the body is rigid.
jgeom
List of Graphics objects.
This is a list of the Graphics objects on the second body to be considered for contact.
Note: All GRAPHICS entities must belong to the same body.
Note: Omit this attribute if the body is flexible.
jflex
This argument specifies the Flex_Body for the second body to be considered for contact.
Note: Omit this attribute if the body is rigid.

Example

XML syntax vs. Python for the same example:

<Sensor_Proximity 
     id                  = "70001" 
     num_i_graphics      = "1" 
     i_graphics_id       = "90000" 
     j_flexbody_id       = "30102" 
/>
ProximitySensor (id=70001, label=””, igeom=[90000], jflex=30102)

Comments

For a list of supported graphic types, please see Sensor: Proximity.

See Also

Sensor

Sensor: Proximity