Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SensorContact Struct Reference

Sets value to 1 if there are any contact constraints within the specified region of the associated body; 0 otherwise. More...

#include <SensorInfo.h>

Inheritance diagram for SensorContact:

Detailed Description

Sets value to 1 if there are any contact constraints within the specified region of the associated body; 0 otherwise.

The min/max values can be used to limit which contact positions can toggle the sensor. Only axes where min≠max are considered for filtering. Thus all 0's for min and max values indicate no filtering.

Definition at line 74 of file SensorInfo.h.

List of all members.

Public Member Functions

 SensorContact ()
 constructor
 SensorContact (const SensorContact &s)
 copy constructor for cloning
virtual void declareValues (DynamicRobotState &values)
 Subclass should add name/value pairs to the dictionary to allow variable number of values per Sensor, as well as fast filtering and serialization to subscribers.
virtual void reclaimValues (DynamicRobotState &values)
 Subclass should remove values added via previous declareValues().
bool testPoint (float x, float y, float z)
virtual SensorContactclone () const __attribute__((warn_unused_result))
 clone implementation for Dictionary

Public Attributes

plist::Primitive< floatvalue
 current sensor value: 1 if there are any contact constraints within the specified region of the associated body; 0 otherwise
plist::Primitive< std::string > sensorName
 Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.
plist::ArrayOf
< plist::Primitive< float > > 
lx
 Minimum and maximum cartesian x.
plist::ArrayOf
< plist::Primitive< float > > 
ly
 Minimum and maximum cartesian y.
plist::ArrayOf
< plist::Primitive< float > > 
lz
 Minimum and maximum cartesian z.
plist::ArrayOf< plist::Angleax
 Minimum and maximum angle about joint origin x axis (y axis is 0°).
plist::ArrayOf< plist::Angleay
 Minimum and maximum angle about joint origin y axis (z axis is 0°).
plist::ArrayOf< plist::Angleaz
 Minimum and maximum angle about joint origin z axis (x axis is 0°).

Static Public Attributes

static const std::string autoRegister = FamilyFactory<SensorInfo>::getRegistry().registerType<SensorContact>("Contact")
 Provides registration with FamilyFactory<SensorInfo>

Protected Member Functions

void init ()
 performs common initialization

Constructor & Destructor Documentation

SensorContact::SensorContact (  ) 

constructor

Definition at line 76 of file SensorInfo.h.

SensorContact::SensorContact ( const SensorContact s  ) 

copy constructor for cloning

Definition at line 79 of file SensorInfo.h.


Member Function Documentation

SensorContact * SensorContact::clone (  )  const [virtual]

clone implementation for Dictionary

implements the clone function for dictionary

Implements SensorInfo.

Definition at line 9 of file SensorInfo.cc.

virtual void SensorContact::declareValues ( DynamicRobotState values  )  [virtual]

Subclass should add name/value pairs to the dictionary to allow variable number of values per Sensor, as well as fast filtering and serialization to subscribers.

A reference to a permanent plist::Primitive<float> instance should be added, this is how values are extracted from the sensor via this shared value.

Implements SensorInfo.

Definition at line 82 of file SensorInfo.h.

void SensorContact::init (  )  [protected]

performs common initialization

Reimplemented from SensorInfo.

Definition at line 101 of file SensorInfo.h.

Referenced by SensorContact().

virtual void SensorContact::reclaimValues ( DynamicRobotState values  )  [virtual]

Subclass should remove values added via previous declareValues().

Implements SensorInfo.

Definition at line 85 of file SensorInfo.h.

bool SensorContact::testPoint ( float  x,
float  y,
float  z 
)

Definition at line 24 of file SensorInfo.cc.


Member Data Documentation

const std::string SensorContact::autoRegister = FamilyFactory<SensorInfo>::getRegistry().registerType<SensorContact>("Contact") [static]

Provides registration with FamilyFactory<SensorInfo>

Definition at line 97 of file SensorInfo.h.

Minimum and maximum angle about joint origin x axis (y axis is 0°).

Definition at line 94 of file SensorInfo.h.

Referenced by init(), and testPoint().

Minimum and maximum angle about joint origin y axis (z axis is 0°).

Definition at line 95 of file SensorInfo.h.

Referenced by init(), and testPoint().

Minimum and maximum angle about joint origin z axis (x axis is 0°).

Definition at line 96 of file SensorInfo.h.

Referenced by init(), and testPoint().

Minimum and maximum cartesian x.

Definition at line 91 of file SensorInfo.h.

Referenced by init(), and testPoint().

Minimum and maximum cartesian y.

Definition at line 92 of file SensorInfo.h.

Referenced by init(), and testPoint().

Minimum and maximum cartesian z.

Definition at line 93 of file SensorInfo.h.

Referenced by init(), and testPoint().

Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.

Definition at line 90 of file SensorInfo.h.

Referenced by declareValues(), init(), and reclaimValues().

current sensor value: 1 if there are any contact constraints within the specified region of the associated body; 0 otherwise

Definition at line 89 of file SensorInfo.h.

Referenced by declareValues().


The documentation for this struct was generated from the following files:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:16 2016 by Doxygen 1.6.3