battery_default_sensor.cpp File Reference
#include <argos3/core/simulator/simulator.h>
#include <argos3/core/simulator/entity/embodied_entity.h>
#include <argos3/core/simulator/entity/composable_entity.h>
#include <argos3/plugins/simulator/entities/battery_equipped_entity.h>
#include "battery_default_sensor.h"
Include dependency graph for battery_default_sensor.cpp:

Go to the source code of this file.

Namespaces

 argos
 The namespace containing all the ARGoS related code.
 

Functions

 argos::REGISTER_SENSOR (CBatteryDefaultSensor,"battery","default","Adhavan Jayabalan [jadhu94@gmail.com]","1.0","A generic battery level sensor.","This sensor returns the current battery level of a robot. This sensor\n""can be used with any robot, since it accesses only the body component. In\n""controllers, you must include the ci_battery_sensor.h header.\n\n""REQUIRED XML CONFIGURATION\n\n"" <controllers>\n"" ...\n"" <my_controller ...>\n"" ...\n"" <sensors>\n"" ...\n"" <battery implementation=\"default\" />\n"" ...\n"" </sensors>\n"" ...\n"" </my_controller>\n"" ...\n"" </controllers>\n\n""OPTIONAL XML CONFIGURATION\n\n""It is possible to add uniform noise to the sensor, thus matching the\n""characteristics of a real robot better. You can add noise through the\n""attribute 'noise_range' as follows:\n\n"" <controllers>\n"" ...\n"" <my_controller ...>\n"" ...\n"" <sensors>\n"" ...\n"" <battery implementation=\"default\"\n"" noise_range=\"-0.3:0.4\" />\n"" ...\n"" </sensors>\n"" ...\n"" </my_controller>\n"" ...\n"" </controllers>\n\n""OPTIONAL XML CONFIGURATION\n\n""None.\n","Usable")