epuckCamera.hpp
Header file of the EpuckInterface class and the struct EpuckInterface::Triple.
Definition: epuckCamera.hpp:57
@ RGB_565_MODE
RGB color mode, with 16 bits per pixel.
Definition: epuckCamera.hpp:83
Definition: epuckCamera.hpp:64
EpuckCamera(const SerialPort *const serialPort, unsigned sensor_x1, unsigned sensor_y1, unsigned sensor_width, unsigned sensor_height, unsigned zoom_fact_width, unsigned zoom_fact_height, ColorModes color_mode)
The EpuckCamera class constructor.
Definition: epuckCamera.cpp:43
ColorModes
Possible color modes for e-puck camera.
Definition: epuckCamera.hpp:81
unsigned recvUnsigned() const
Receive an unsigned interger from e-puck.
Definition: serialPort.cpp:115
std::string GetCameraVersion() const
Get the version of camera in e-puck.
Definition: epuckCamera.cpp:174
Header file where are the EpuckCamera class, and the exception classes camera_version_error,...
void GetImage(unsigned char *const ptrImage)
Get a new image from e-puck.
Definition: epuckCamera.cpp:203
void sendInt(int message) const
Send an integer to e-puck.
Definition: serialPort.cpp:172
const SerialPort *const serialPort
A SerialPort class instance shared among the device interfaces.
Definition: epuckInterface.hpp:59
@ GREY_SCALE_MODE
Grey color mode, with 8 bits per pixel.
Definition: epuckCamera.hpp:82
void Initialize()
Send the configurations givens in EpuckCamera constructor to e-puck.
Definition: epuckCamera.cpp:135
int recvUnsignedCharArray(unsigned char *const array, unsigned length) const
Receive an array of unsigned char from e-puck.
Definition: serialPort.cpp:148
EpuckInterface(const SerialPort *const serialPort)
The EpuckInterface class constructor.
Definition: epuckInterface.cpp:20
@ CONFIG_CAMERA
Send configurations for camera initialization.
Definition: epuckInterface.hpp:67
@ GET_CAMERA_IMG
Receive an image from camera.
Definition: epuckInterface.hpp:72
Definition: epuckCamera.hpp:48
@ YUV_MODE
YUV color mode, with 16 bits per pixel.
Definition: epuckCamera.hpp:84
void GetCameraData(unsigned &imageWidth, unsigned &imageHeight, EpuckCamera::ColorModes &colorMode) const
Get the relevant configurations camera data.
Definition: epuckCamera.cpp:194