SensorObject
A sensor attached to any object except bodies (connectors, constraint, spring-damper, etc). As a difference to other SensorBody, the connector sensor measures quantities without a local position. The sensor measures OutputVariable and outputs values into a file, showing per line [time, sensorValue[0], sensorValue[1], …]. Use SensorUserFunction to modify sensor results (e.g., transforming to other coordinates) and writing to file.
The item SensorObject with type = ‘Object’ has the following parameters:
- name [type = String, default = ‘’]:sensor’s unique name
- objectNumber [type = ObjectIndex, default = invalid (-1)]:object (e.g. connector) number to which sensor is attached to
- writeToFile [type = Bool, default = True]:True: write sensor output to file; flag is ignored (interpreted as False), if fileName=’’
- fileName [type = String, default = ‘’]:directory and file name for sensor file output; default: empty string generates sensor + sensorNumber + outputVariableType; directory will be created if it does not exist
- outputVariableType [type = OutputVariableType, default = OutputVariableType::_None]:OutputVariableType for sensor
- storeInternal [type = Bool, default = False]:true: store sensor data in memory (faster, but may consume large amounts of memory); false: internal storage not available
- visualization [type = VSensorObject]:parameters for visualization of item
The item VSensorObject has the following parameters:
- show [type = Bool, default = True]:set true, if item is shown in visualization and false if it is not shown; sensors can be shown at the position assiciated with the object - note that in some cases, there might be no such position (e.g. data object)!
DESCRIPTION of SensorObject
Relevant Examples and TestModels with weblink:
beltDriveALE.py (Examples/), beltDriveReevingSystem.py (Examples/), bicycleIftommBenchmark.py (Examples/), ComputeSensitivitiesExample.py (Examples/), craneReevingSystem.py (Examples/), HydraulicActuator2Arms.py (Examples/), HydraulicActuatorStaticInitialization.py (Examples/), HydraulicsUserFunction.py (Examples/), leggedRobot.py (Examples/), lugreFrictionTest.py (Examples/), minimizeExample.py (Examples/), mobileMecanumWheelRobotWithLidar.py (Examples/), carRollingDiscTest.py (TestModels/), complexEigenvaluesTest.py (TestModels/), coordinateSpringDamperExt.py (TestModels/)
The web version may not be complete. For details, consider also the Exudyn PDF documentation : theDoc.pdf