Public Types | |
enum | ScanDirectionMode { FULL = 1, FRONT = 2, BACK = 3, LOCAL_DIRECTION = 4, GLOBAL_POSITION = 5 } |
enum | ScanVelocityMode { FAST = 1, SLOW = 2 } |
enum | ScanRangeMode { NEAR_RANGE = 1, FAR_RANGE = 2 } |
Public Member Functions | |
void | setEnableAutomaticRotation (bool bValue) |
bool | isAutomaticRotationEnabled () const |
void | setScanDirectionMode (ScanDirectionMode directionMode) |
void | setScanVelocityMode (ScanVelocityMode velocityMode) |
void | setScanRangeMode (ScanRangeMode rangeMode) |
ScanDirectionMode | getScanDirectionMode () const |
ScanVelocityMode | getScanVelocityMode () const |
ScanRangeMode | getScanRangeMode () const |
void | setScanDirection (const Vector3D &vecDirection) |
const Vector3D & | getScanDirection () const |
void | pointToGlobalPosition (const Vector3D &vecPosition) |
const Vector3D & | getDirection () const |
Available scanning directions and areas.
void CSWSonar::setEnableAutomaticRotation | ( | bool | bValue | ) |
Enable the automatic rotation. If this is set to false the sonar can be set manually to desired direction with setDirection().
bValue | If true the automatic rotation is activated otherwise not. |
bool CSWSonar::isAutomaticRotationEnabled | ( | ) | const |
Returns whether the automatic rotation is enabled or not.
void CSWSonar::setScanDirectionMode | ( | ScanDirectionMode | directionMode | ) |
Sets the scanning direction.
directionMode | The new scanning direction that should be used. |
void CSWSonar::setScanVelocityMode | ( | ScanVelocityMode | velocityMode | ) |
Sets the scanning velocity.
velocityMode | The new scanning velocity that should be used. |
void CSWSonar::setScanRangeMode | ( | ScanRangeMode | rangeMode | ) |
Sets the scanning range.
rangeMode | The new scanning range that should be used. |
CSWSonar::ScanDirectionMode CSWSonar::getScanDirectionMode | ( | ) | const |
Gets the current scanning direction mode.
CSWSonar::ScanVelocityMode CSWSonar::getScanVelocityMode | ( | ) | const |
Gets the current scanning velocity mode.
CSWSonar::ScanRangeMode CSWSonar::getScanRangeMode | ( | ) | const |
Gets the current scanning range mode.
void CSWSonar::setScanDirection | ( | const Vector3D & | vecDirection | ) |
Sets the new custom main scanning direction for scan direction mode LOCAL_DIRECTION.
vecDirection | The new custom main scanning direction in local coordinate system that should be used. |
const Vector3D & CSWSonar::getScanDirection | ( | ) | const |
Gets the current custom main scanning direction for scan direction mode LOCAL_DIRECTION.
void CSWSonar::pointToGlobalPosition | ( | const Vector3D & | vecPosition | ) |
Lets the sonar always points to the given position in world coordinate system for scan direction mode GLOBAL_POSITION.
vecPosition | The global position to which the sonar should be directed. |
const Vector3D & CSWSonar::getDirection | ( | ) | const |
Gets the current scanning direction in world coordinate system.