|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
44 #ifndef YARP_ROSMSG_stereo_msgs_DisparityImage_h
45 #define YARP_ROSMSG_stereo_msgs_DisparityImage_h
286 static constexpr
const char*
typeName =
"stereo_msgs/DisparityImage";
289 static constexpr
const char*
typeChecksum =
"04a177815f75271039fa21f16acad8c9";
293 # Separate header for compatibility with current TimeSynchronizer.\n\
294 # Likely to be removed in a later release, use image.header instead.\n\
297 # Floating point disparity image. The disparities are pre-adjusted for any\n\
298 # x-offset between the principal points of the two cameras (in the case\n\
299 # that they are verged). That is: d = x_l - x_r - (cx_l - cx_r)\n\
300 sensor_msgs/Image image\n\
302 # Stereo geometry. For disparity d, the depth from the camera is Z = fT/d.\n\
303 float32 f # Focal length, pixels\n\
304 float32 T # Baseline, world units\n\
306 # Subwindow of (potentially) valid disparity values.\n\
307 sensor_msgs/RegionOfInterest valid_window\n\
309 # The range of disparities searched.\n\
310 # In the disparity image, any disparity less than min_disparity is invalid.\n\
311 # The disparity search range defines the horopter, or 3D volume that the\n\
312 # stereo algorithm can \"see\". Points with Z outside of:\n\
313 # Z_min = fT / max_disparity\n\
314 # Z_max = fT / min_disparity\n\
315 # could not be found.\n\
316 float32 min_disparity\n\
317 float32 max_disparity\n\
319 # Smallest allowed disparity increment. The smallest achievable depth range\n\
320 # resolution is delta_Z = (Z^2/fT)*delta_d.\n\
323 ================================================================================\n\
324 MSG: std_msgs/Header\n\
325 # Standard metadata for higher-level stamped data types.\n\
326 # This is generally used to communicate timestamped data \n\
327 # in a particular coordinate frame.\n\
329 # sequence ID: consecutively increasing ID \n\
331 #Two-integer timestamp that is expressed as:\n\
332 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
333 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
334 # time-handling sugar is provided by the client library\n\
336 #Frame this data is associated with\n\
341 ================================================================================\n\
342 MSG: sensor_msgs/Image\n\
343 # This message contains an uncompressed image\n\
344 # (0, 0) is at top-left corner of image\n\
347 Header header # Header timestamp should be acquisition time of image\n\
348 # Header frame_id should be optical frame of camera\n\
349 # origin of frame should be optical center of cameara\n\
350 # +x should point to the right in the image\n\
351 # +y should point down in the image\n\
352 # +z should point into to plane of the image\n\
353 # If the frame_id here and the frame_id of the CameraInfo\n\
354 # message associated with the image conflict\n\
355 # the behavior is undefined\n\
357 uint32 height # image height, that is, number of rows\n\
358 uint32 width # image width, that is, number of columns\n\
360 # The legal values for encoding are in file src/image_encodings.cpp\n\
361 # If you want to standardize a new string format, join\n\
362 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
364 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
365 # taken from the list of strings in include/sensor_msgs/image_encodings.h\n\
367 uint8 is_bigendian # is this data bigendian?\n\
368 uint32 step # Full row length in bytes\n\
369 uint8[] data # actual matrix data, size is (step * rows)\n\
371 ================================================================================\n\
372 MSG: sensor_msgs/RegionOfInterest\n\
373 # This message is used to specify a region of interest within an image.\n\
375 # When used to specify the ROI setting of the camera when the image was\n\
376 # taken, the height and width fields should either match the height and\n\
377 # width fields for the associated image; or height = width = 0\n\
378 # indicates that the full resolution image was captured.\n\
380 uint32 x_offset # Leftmost pixel of the ROI\n\
381 # (0 if the ROI includes the left edge of the image)\n\
382 uint32 y_offset # Topmost pixel of the ROI\n\
383 # (0 if the ROI includes the top edge of the image)\n\
384 uint32 height # Height of ROI\n\
385 uint32 width # Width of ROI\n\
387 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
388 # ROI in this message. Typically this should be False if the full image\n\
389 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
407 #endif // YARP_ROSMSG_stereo_msgs_DisparityImage_h
virtual void appendFloat32(yarp::conf::float32_t data)=0
Send a representation of a 32-bit floating point number to the network connection.
yarp::conf::float32_t delta_d
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
yarp::conf::float32_t expectFloat32()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual bool read(yarp::os::idl::WireReader &reader)
yarp::rosmsg::std_msgs::Header header
virtual bool isBareMode() const =0
Check if the connection is bare mode.
static constexpr const char * typeName
yarp::os::idl::BottleStyle< yarp::rosmsg::stereo_msgs::DisparityImage > bottleStyle
yarp::os::Type getType() const override
bool readBare(yarp::os::ConnectionReader &connection) override
yarp::conf::float32_t min_disparity
virtual bool isError() const =0
#define BOTTLE_TAG_FLOAT32
yarp::rosmsg::sensor_msgs::Image image
static Type byName(const char *name)
Type & addProperty(const char *key, const Value &val)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
An interface for writing to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool isError() const =0
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * typeText
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
yarp::os::idl::BareStyle< yarp::rosmsg::stereo_msgs::DisparityImage > rosStyle
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
IDL-friendly connection reader.
An interface for reading from a network connection.
yarp::rosmsg::sensor_msgs::RegionOfInterest valid_window
static constexpr const char * typeChecksum
bool writeBare(yarp::os::ConnectionWriter &connection) const override
The main, catch-all namespace for YARP.
yarp::conf::float32_t max_disparity
virtual yarp::conf::float32_t expectFloat32()=0
Read a 32-bit floating point number from the network connection.
A single value (typically within a Bottle).
virtual bool write(const yarp::os::idl::WireWriter &writer) const