#include <GTCamObstaclesLocator.h>
Inheritance diagram for GTCamObstaclesLocator:


Public Types | |
| enum | { obstaclesRadius = 160, obstaclesDist = 60 } |
Public Member Functions | |
| GTCamObstaclesLocator (const ObstaclesLocatorInterfaces &interfaces) | |
| Constructor. | |
| virtual void | execute () |
| Executes the module. | |
| virtual bool | handleMessage (InMessage &message) |
| Called from a MessageQueue to distribute messages. | |
Private Member Functions | |
| void | modelLine (bool vert, double x, double sy, double ey, ObstaclesPercept::ObstacleType type) |
| Models a line with constant x or constant y-value as an obstacle. | |
| void | modelRobot (double px, double py, double rotation, ObstaclesPercept::ObstacleType type) |
| Models a robot as a circular obstacle px = the x-coordinate of the robots neck py = the y-coordinate of the robots neck rotation = the rotation of the robot type = the type of the obstacle (teammate or opponent, for example) Remark: This Method uses the attribute obstaclesDist, wich determines the distance between the neck of the robot and the center of the circle around the robot. | |
Private Attributes | |
| double | rx |
| double | ry |
| double | ra |
| double | minStep |
| double | sectorWidth |
| int | frontSectorNr |
| int | deltaSector45Nr |
Definition at line 16 of file GTCamObstaclesLocator.h.
|
|
Definition at line 21 of file GTCamObstaclesLocator.h. |
|
|
Constructor.
Definition at line 62 of file GTCamObstaclesLocator.cpp. References deltaSector45Nr, frontSectorNr, ObstaclesModel::getSectorFromAngle(), minStep, pi, and pi2. |
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Called from a MessageQueue to distribute messages. Use message.getMessageID to decide if the message is relavant for the MesssageHandler derivate. Use message.bin, message.text or message.config as In streams to get the data from.
Reimplemented from Module. Definition at line 249 of file GTCamObstaclesLocator.cpp. |
|
||||||||||||||||||||||||
|
Models a line with constant x or constant y-value as an obstacle. If you want to model a line with constant x-value (a horizontal line) you have to call modelLine with:
Definition at line 270 of file GTCamObstaclesLocator.cpp. References ObstaclesModel::distance, ObstaclesModel::getAngleOfSector(), ObstaclesModel::getSectorFromAngle(), ObstaclesModel::obstacleType, pi, pi2, pi_2, ra, rx, and ry. Referenced by execute(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Models a robot as a circular obstacle px = the x-coordinate of the robots neck py = the y-coordinate of the robots neck rotation = the rotation of the robot type = the type of the obstacle (teammate or opponent, for example) Remark: This Method uses the attribute obstaclesDist, wich determines the distance between the neck of the robot and the center of the circle around the robot.
Definition at line 356 of file GTCamObstaclesLocator.cpp. References ObstaclesModel::distance, ObstaclesModel::getAngleOfSector(), ObstaclesModel::getSectorFromAngle(), obstaclesDist, obstaclesRadius, ObstaclesModel::obstacleType, pi, ra, rx, and ry. Referenced by execute(). |
Here is the call graph for this function:

|
|
Definition at line 34 of file GTCamObstaclesLocator.h. Referenced by execute(), modelLine(), and modelRobot(). |
|
|
Definition at line 34 of file GTCamObstaclesLocator.h. Referenced by execute(), modelLine(), and modelRobot(). |
|
|
Definition at line 34 of file GTCamObstaclesLocator.h. Referenced by execute(), modelLine(), and modelRobot(). |
|
|
Definition at line 37 of file GTCamObstaclesLocator.h. Referenced by GTCamObstaclesLocator(). |
|
|
Definition at line 37 of file GTCamObstaclesLocator.h. |
|
|
Definition at line 38 of file GTCamObstaclesLocator.h. Referenced by execute(), and GTCamObstaclesLocator(). |
|
|
Definition at line 38 of file GTCamObstaclesLocator.h. Referenced by execute(), and GTCamObstaclesLocator(). |
1.3.6