78 float value =
float(*p) / 1000.0;
constexpr double ONE_BILLION
A mini-server for performing network communication in the background.
An abstraction for a time stamp and/or sequence number.
Image class with user control of representation details.
void setQuantum(size_t imgQuantum)
void setPixelCode(int imgPixelCode)
void setPixelSize(size_t imgPixelSize)
void setQuantum(size_t imgQuantum)
size_t width() const
Gets width of image in pixels.
unsigned char * getRawImage() const
Access to the internal image buffer.
size_t getRawImageSize() const
Access to the internal buffer size information (this is how much memory has been allocated for the im...
void resize(size_t imgWidth, size_t imgHeight)
Reallocate an image to be of a desired size, throwing away its current contents.
size_t getQuantum() const
The size of a row is constrained to be a multiple of the "quantum".
size_t height() const
Gets height of image in pixels.
virtual int getPixelCode() const
Gets pixel type identifier.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
int Ros2ToYarpPixelCode(const std::string &roscode)
void deepCopyImageOf(const DepthImage &src, DepthImage &dest)
void updateStamp(sensor_msgs::msg::CameraInfo::SharedPtr ros_camera_info_src, std::string &frame_id_dest, yarp::os::Stamp &yarp_stamp)
void convertTimeStampRos2ToYarp(const std_msgs::msg::Header &ros_stamp, yarp::os::Stamp &yarp_stamp)
void convertDepthImageRos2ToYarpImageOf(sensor_msgs::msg::Image::SharedPtr ros_image_src, yarp::sig::ImageOf< yarp::sig::PixelFloat > &dest)
void convertRGBImageRos2ToYarpFlexImage(sensor_msgs::msg::Image::SharedPtr ros_image_src, yarp::sig::FlexImage &dest)
void convertTimeStampYarpToRos2(const yarp::os::Stamp &yarp_stamp, std_msgs::msg::Header &ros_stamp)
void deepCopyFlexImage(const yarp::sig::FlexImage &src, yarp::sig::FlexImage &dest)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.