In the .argos file:
<footbot_distance_scanner implementation="rot_z_only" show_rays="true"/>
In the .h file:
#include <argos3/plugins/robots/foot-bot/control_interface/ci_footbot_distance_scanner_sensor.h>
and
CCI_RangeAndBearingSensor* m_pcRABS;
in private member
In the .c file:
m_pcDSS = GetSensor <CCI_FootBotDistanceScannerSensor >("footbot_distance_scanner");
when I tried to get the data from this sensor
const CCI_FootBotDistanceScannerSensor::TReadingsMap& tDisranceReads = m_pcDSS->GetReadingsMap();
CVector2 cAccumulator;
std::cout << "size:" << tDisranceReads.size() << "\n";
I print this value on the screen but find the value of it always is 0.
I really hope there will be a example about this sensor for us.
