66#ifndef FilteredArrayOneDimSonar_DEFINED
67#define FilteredArrayOneDimSonar_DEFINED
83#define SEPARATOR_IS_COMMA ','
84#define SEPARATOR_IS_COLON ':'
85#define IS_VISIBLE_ID 'I'
97 _objects[landmarkType]=obj;
108 memcpy(
this, &other,
sizeof(other));
114 memcpy(
this, &other,
sizeof(other));
128 memcpy(_objects, objects,
sizeof(_objects));
134 wb_arrayoffilteredsonarobjects::set_objects(obj, landmarkType);
140 return objects(landmarkType);
142#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
159 std::ostringstream ss;
163 switch (landmarkType )
180 std::istringstream iss(str);
186 std::size_t found = str.find(left);
187 if (std::string::npos!=found )
188 { std::string strForLeft=str.substr (found+left.size());
193 found = str.find(right);
194 if (std::string::npos!=found )
195 { std::string strForRight=str.substr (found+right.size());
#define SEPARATOR_IS_COLON
Class for for the array of sonar messages, LEFT and RIGHT.
FilteredArrayOneDimSonar(const class FilteredOneDimSonar &obj, enum FilteredSonarObjectType landmarkType=FSLeft)
constructor with one setter
std::string description()
convert to a string; string serialization
FilteredArrayOneDimSonar()
designated constructor
void set_object(const class FilteredOneDimSonar &obj, enum FilteredSonarObjectType landmarkType=FSLeft)
single vision object setter
FilteredArrayOneDimSonar(const FilteredArrayOneDimSonar &other)
copy constructor
FilteredOneDimSonar get_object(enum FilteredSonarObjectType landmarkType=FSLeft)
single vision object setter
void from_string(const std::string &str)
build from string
FilteredArrayOneDimSonar(const char *names)
const char * constructor
void set_objects(const class FilteredArrayOneDimSonar *objects)
property getter
FilteredArrayOneDimSonar & operator=(const FilteredArrayOneDimSonar &other)
copy assignment operator
FilteredArrayOneDimSonar(const std::string &names)
string constructor
Class for for one filtered sonar message.
std::string description() const
convert to a string; string serialization
c array for filtered sonar transmitter objects
FilteredSonarObjectType
enum for filtered sonar transmitters
@ FSO_NUM_OBJECTS
number of different kind SONAR of objects