About Footbot Distance Scanner
Posted: Wed Dec 18, 2019 10:15 am
Hey, I have added the requirement configure as the 'argos3 -q distance_scanner' in the XML. And I tried to use this sensor. But it could not work. Meanwhile, I counld not see the rays of the distance_scanner sensor.
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.
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.
