1 #ifndef CI_COLORED_BLOB_PERSPECTIVE_CAMERA_SENSOR_H
2 #define CI_COLORED_BLOB_PERSPECTIVE_CAMERA_SENSOR_H
5 class CCI_ColoredBlobPerspectiveCameraSensor;
8 #include <argos3/core/control_interface/ci_sensor.h>
9 #include <argos3/core/utility/math/angles.h>
10 #include <argos3/core/utility/datatypes/color.h>
13 #include <argos3/core/utility/logging/argos_log.h>
64 c_os <<
"(Color = " << s_blob.
Color <<
"," <<
"X = " << s_blob.
X <<
",Y = " << s_blob.
Y <<
")";
88 c_os <<
"Counter: " << s_reading.
Counter << std::endl;
89 for (
size_t i = 0; i < s_reading.
BlobList.size(); i++) {
90 c_os <<
"Blob[" << i <<
"]: " << s_reading.
BlobList[i] << std::endl;
114 #ifdef ARGOS_WITH_LUA
115 virtual void CreateLuaState(lua_State* pt_lua_state);
117 virtual void ReadingsToLuaState(lua_State* pt_lua_state);
signed int SInt32
32-bit signed integer.
unsigned long long UInt64
64-bit unsigned integer.
The namespace containing all the ARGoS related code.
The basic interface for all sensors.
This class provides the most general interface to a camera.
virtual ~CCI_ColoredBlobPerspectiveCameraSensor()
Destructor.
std::vector< SBlob * > TBlobList
Vector of pointers to colored blobs.
CCI_ColoredBlobPerspectiveCameraSensor()
Constructor.
const SReadings & GetReadings() const
Returns a reference to the current camera readings.
An SBlob represents a generic colored 2D segment in the image.
friend std::ostream & operator<<(std::ostream &c_os, const SBlob &s_blob)
SBlob(const CColor &c_color, SInt32 n_x, SInt32 n_y)
Constructor with paramters.
It represents the readings collected through the camera at a specific time step.
friend std::ostream & operator<<(std::ostream &c_os, const SReadings &s_reading)