#include "footbot_distance_scanner_rotzonly_sensor.h"
#include <argos3/core/simulator/entity/composable_entity.h>
#include <argos3/core/simulator/entity/controllable_entity.h>
#include <argos3/core/simulator/simulator.h>
#include <argos3/core/simulator/space/space.h>
Go to the source code of this file.
Namespaces | |
argos | |
The namespace containing all the ARGoS related code. | |
Macros | |
#define | ADD_READING(RAYS, MAP, INDEX, MINDIST) |
#define | ADD_READINGS(RAYS, MAP, MINDIST) |
#define | CALCULATE_SHORT_RANGE_RAY(ANGLE, INDEX) |
#define | CALCULATE_LONG_RANGE_RAY(ANGLE, INDEX) |
Functions | |
argos::REGISTER_SENSOR (CFootBotDistanceScannerRotZOnlySensor, "footbot_distance_scanner", "rot_z_only", "Carlo Pinciroli [ilpincy@gmail.com]", "1.0", "The foot-bot distance scanner sensor (optimized for 2D).", "This sensor accesses the foot-bot distance scanner sensor. For a complete\n" "description of its usage, refer to the common interface.\n" "In this implementation, the readings are calculated under the assumption that\n" "the foot-bot is always parallel to the XY plane, i.e., it rotates only around\n" "the Z axis. This implementation is faster than a 3D one and should be used\n" "only when the assumption about the foot-bot rotation holds.\n\n" "This sensor is enabled by default.\n\n" "REQUIRED XML CONFIGURATION\n\n" " <controllers>\n" " ...\n" " <my_controller ...>\n" " ...\n" " <sensors>\n" " ...\n" " <footbot_distance_scanner implementation=\"rot_z_only\" />\n" " ...\n" " </sensors>\n" " ...\n" " </my_controller>\n" " ...\n" " </controllers>\n\n" "OPTIONAL XML CONFIGURATION\n\n" "It is possible to draw the rays shot by the distance scanner in the OpenGL\n" "visualization. This can be useful for sensor debugging but also to understand\n" "what's wrong in your controller. In OpenGL, the rays are drawn in cyan when\n" "they are not obstructed and in purple when they are. In case a ray is\n" "obstructed, a black dot is drawn where the intersection occurred.\n" "To turn this functionality on, add the attribute 'show_rays=\"true\"' in the\n" "XML as in this example:\n\n" " <controllers>\n" " ...\n" " <my_controller ...>\n" " ...\n" " <sensors>\n" " ...\n" " <footbot_distance_scanner implementation=\"rot_z_only\"\n" " show_rays=\"true\" />\n" " ...\n" " </sensors>\n" " ...\n" " </my_controller>\n" " ...\n" " </controllers>\n", "Usable") | |
#define ADD_READING | ( | RAYS, | |
MAP, | |||
INDEX, | |||
MINDIST | |||
) |
Definition at line 153 of file footbot_distance_scanner_rotzonly_sensor.cpp.
#define ADD_READINGS | ( | RAYS, | |
MAP, | |||
MINDIST | |||
) |
Definition at line 160 of file footbot_distance_scanner_rotzonly_sensor.cpp.
#define CALCULATE_LONG_RANGE_RAY | ( | ANGLE, | |
INDEX | |||
) |
Definition at line 257 of file footbot_distance_scanner_rotzonly_sensor.cpp.
#define CALCULATE_SHORT_RANGE_RAY | ( | ANGLE, | |
INDEX | |||
) |
Definition at line 235 of file footbot_distance_scanner_rotzonly_sensor.cpp.