Namespaces | Classes | Typedefs | Functions
sensor_msgs Namespace Reference

Tools for manipulating sensor_msgs. More...

Namespaces

 distortion_models
 
 image_encodings
 
 impl
 

Classes

struct  BatteryState_
 
struct  CameraInfo_
 
struct  ChannelFloat32_
 
struct  CompressedImage_
 
struct  FluidPressure_
 
struct  Illuminance_
 
struct  Image_
 
struct  Imu_
 
struct  JointState_
 
struct  Joy_
 
struct  JoyFeedback_
 
struct  JoyFeedbackArray_
 
struct  LaserEcho_
 
struct  LaserScan_
 
struct  MagneticField_
 
struct  MultiDOFJointState_
 
struct  MultiEchoLaserScan_
 
struct  NavSatFix_
 
struct  NavSatStatus_
 
struct  PointCloud2_
 
class  PointCloud2ConstIterator
 Same as a PointCloud2Iterator but for const data. More...
 
class  PointCloud2Iterator
 Class that can iterate over a PointCloud2. More...
 
class  PointCloud2Modifier
 Enables modifying a sensor_msgs::PointCloud2 like a container. More...
 
struct  PointCloud_
 
struct  PointField_
 
struct  pointFieldTypeAsType
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::FLOAT32 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::FLOAT64 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::INT16 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::INT32 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::INT8 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::UINT16 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::UINT32 >
 
struct  pointFieldTypeAsType< sensor_msgs::PointField::UINT8 >
 
struct  Range_
 
struct  RegionOfInterest_
 
struct  RelativeHumidity_
 
struct  SetCameraInfo
 
struct  SetCameraInfoRequest_
 
struct  SetCameraInfoResponse_
 
struct  Temperature_
 
struct  TimeReference_
 
struct  typeAsPointFieldType
 
struct  typeAsPointFieldType< double >
 
struct  typeAsPointFieldType< float >
 
struct  typeAsPointFieldType< int16_t >
 
struct  typeAsPointFieldType< int32_t >
 
struct  typeAsPointFieldType< int8_t >
 
struct  typeAsPointFieldType< uint16_t >
 
struct  typeAsPointFieldType< uint32_t >
 
struct  typeAsPointFieldType< uint8_t >
 

Typedefs

typedef ::sensor_msgs::BatteryState_< std::allocator< void > > BatteryState
 
typedef boost::shared_ptr< ::sensor_msgs::BatteryState const > BatteryStateConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::BatteryStateBatteryStatePtr
 
typedef ::sensor_msgs::CameraInfo_< std::allocator< void > > CameraInfo
 
typedef std::shared_ptr< ::sensor_msgs::CameraInfo const > CameraInfoConstPtr
 
typedef std::shared_ptr< ::sensor_msgs::CameraInfoCameraInfoPtr
 
typedef ::sensor_msgs::ChannelFloat32_< std::allocator< void > > ChannelFloat32
 
typedef boost::shared_ptr< ::sensor_msgs::ChannelFloat32 const > ChannelFloat32ConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::ChannelFloat32ChannelFloat32Ptr
 
typedef ::sensor_msgs::CompressedImage_< std::allocator< void > > CompressedImage
 
typedef std::shared_ptr< ::sensor_msgs::CompressedImage const > CompressedImageConstPtr
 
typedef std::shared_ptr< ::sensor_msgs::CompressedImageCompressedImagePtr
 
typedef ::sensor_msgs::FluidPressure_< std::allocator< void > > FluidPressure
 
typedef boost::shared_ptr< ::sensor_msgs::FluidPressure const > FluidPressureConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::FluidPressureFluidPressurePtr
 
typedef ::sensor_msgs::Illuminance_< std::allocator< void > > Illuminance
 
typedef boost::shared_ptr< ::sensor_msgs::Illuminance const > IlluminanceConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::IlluminanceIlluminancePtr
 
typedef ::sensor_msgs::Image_< std::allocator< void > > Image
 
typedef std::shared_ptr< ::sensor_msgs::Image const > ImageConstPtr
 
typedef std::shared_ptr< ::sensor_msgs::ImageImagePtr
 
typedef ::sensor_msgs::Imu_< std::allocator< void > > Imu
 
typedef std::shared_ptr< ::sensor_msgs::Imu const > ImuConstPtr
 
typedef std::shared_ptr< ::sensor_msgs::ImuImuPtr
 
typedef ::sensor_msgs::JointState_< std::allocator< void > > JointState
 
typedef boost::shared_ptr< ::sensor_msgs::JointState const > JointStateConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::JointStateJointStatePtr
 
typedef ::sensor_msgs::Joy_< std::allocator< void > > Joy
 
typedef boost::shared_ptr< ::sensor_msgs::Joy const > JoyConstPtr
 
typedef ::sensor_msgs::JoyFeedback_< std::allocator< void > > JoyFeedback
 
typedef ::sensor_msgs::JoyFeedbackArray_< std::allocator< void > > JoyFeedbackArray
 
typedef boost::shared_ptr< ::sensor_msgs::JoyFeedbackArray const > JoyFeedbackArrayConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::JoyFeedbackArrayJoyFeedbackArrayPtr
 
typedef boost::shared_ptr< ::sensor_msgs::JoyFeedback const > JoyFeedbackConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::JoyFeedbackJoyFeedbackPtr
 
typedef boost::shared_ptr< ::sensor_msgs::JoyJoyPtr
 
typedef ::sensor_msgs::LaserEcho_< std::allocator< void > > LaserEcho
 
typedef boost::shared_ptr< ::sensor_msgs::LaserEcho const > LaserEchoConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::LaserEchoLaserEchoPtr
 
typedef ::sensor_msgs::LaserScan_< std::allocator< void > > LaserScan
 
typedef boost::shared_ptr< ::sensor_msgs::LaserScan const > LaserScanConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::LaserScanLaserScanPtr
 
typedef ::sensor_msgs::MagneticField_< std::allocator< void > > MagneticField
 
typedef boost::shared_ptr< ::sensor_msgs::MagneticField const > MagneticFieldConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::MagneticFieldMagneticFieldPtr
 
typedef ::sensor_msgs::MultiDOFJointState_< std::allocator< void > > MultiDOFJointState
 
typedef boost::shared_ptr< ::sensor_msgs::MultiDOFJointState const > MultiDOFJointStateConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::MultiDOFJointStateMultiDOFJointStatePtr
 
typedef ::sensor_msgs::MultiEchoLaserScan_< std::allocator< void > > MultiEchoLaserScan
 
typedef boost::shared_ptr< ::sensor_msgs::MultiEchoLaserScan const > MultiEchoLaserScanConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::MultiEchoLaserScanMultiEchoLaserScanPtr
 
typedef ::sensor_msgs::NavSatFix_< std::allocator< void > > NavSatFix
 
typedef boost::shared_ptr< ::sensor_msgs::NavSatFix const > NavSatFixConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::NavSatFixNavSatFixPtr
 
typedef ::sensor_msgs::NavSatStatus_< std::allocator< void > > NavSatStatus
 
typedef boost::shared_ptr< ::sensor_msgs::NavSatStatus const > NavSatStatusConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::NavSatStatusNavSatStatusPtr
 
typedef ::sensor_msgs::PointCloud_< std::allocator< void > > PointCloud
 
typedef ::sensor_msgs::PointCloud2_< std::allocator< void > > PointCloud2
 
typedef boost::shared_ptr< ::sensor_msgs::PointCloud2 const > PointCloud2ConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::PointCloud2PointCloud2Ptr
 
typedef boost::shared_ptr< ::sensor_msgs::PointCloud const > PointCloudConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::PointCloudPointCloudPtr
 
typedef ::sensor_msgs::PointField_< std::allocator< void > > PointField
 
typedef boost::shared_ptr< ::sensor_msgs::PointField const > PointFieldConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::PointFieldPointFieldPtr
 
typedef ::sensor_msgs::Range_< std::allocator< void > > Range
 
typedef boost::shared_ptr< ::sensor_msgs::Range const > RangeConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::RangeRangePtr
 
typedef ::sensor_msgs::RegionOfInterest_< std::allocator< void > > RegionOfInterest
 
typedef std::shared_ptr< ::sensor_msgs::RegionOfInterest const > RegionOfInterestConstPtr
 
typedef std::shared_ptr< ::sensor_msgs::RegionOfInterestRegionOfInterestPtr
 
typedef ::sensor_msgs::RelativeHumidity_< std::allocator< void > > RelativeHumidity
 
typedef boost::shared_ptr< ::sensor_msgs::RelativeHumidity const > RelativeHumidityConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::RelativeHumidityRelativeHumidityPtr
 
typedef ::sensor_msgs::SetCameraInfoRequest_< std::allocator< void > > SetCameraInfoRequest
 
typedef boost::shared_ptr< ::sensor_msgs::SetCameraInfoRequest const > SetCameraInfoRequestConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::SetCameraInfoRequestSetCameraInfoRequestPtr
 
typedef ::sensor_msgs::SetCameraInfoResponse_< std::allocator< void > > SetCameraInfoResponse
 
typedef boost::shared_ptr< ::sensor_msgs::SetCameraInfoResponse const > SetCameraInfoResponseConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::SetCameraInfoResponseSetCameraInfoResponsePtr
 
typedef ::sensor_msgs::Temperature_< std::allocator< void > > Temperature
 
typedef boost::shared_ptr< ::sensor_msgs::Temperature const > TemperatureConstPtr
 
typedef boost::shared_ptr< ::sensor_msgs::TemperatureTemperaturePtr
 
typedef ::sensor_msgs::TimeReference_< std::allocator< void > > TimeReference
 
typedef std::shared_ptr< ::sensor_msgs::TimeReference const > TimeReferenceConstPtr
 
typedef std::shared_ptr< ::sensor_msgs::TimeReferenceTimeReferencePtr
 

Functions

static void clearImage (Image &image)
 
static bool convertPointCloud2ToPointCloud (const sensor_msgs::PointCloud2 &input, sensor_msgs::PointCloud &output)
 Convert a sensor_msgs::PointCloud2 message to a sensor_msgs::PointCloud message. More...
 
static bool convertPointCloudToPointCloud2 (const sensor_msgs::PointCloud &input, sensor_msgs::PointCloud2 &output)
 Convert a sensor_msgs::PointCloud message to a sensor_msgs::PointCloud2 message. More...
 
static bool fillImage (Image &image, const std::string &encoding_arg, uint32_t rows_arg, uint32_t cols_arg, uint32_t step_arg, const void *data_arg)
 
static int getPointCloud2FieldIndex (const sensor_msgs::PointCloud2 &cloud, const std::string &field_name)
 Get the index of a specified field (i.e., dimension/channel) More...
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::LaserEcho_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::SetCameraInfoRequest_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::JoyFeedbackArray_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::SetCameraInfoResponse_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::Illuminance_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::RelativeHumidity_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::Temperature_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::CompressedImage_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::Joy_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::FluidPressure_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::TimeReference_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::PointCloud_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::MagneticField_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::RegionOfInterest_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::JointState_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::NavSatStatus_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::Image_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::Range_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::PointField_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::PointCloud2_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::Imu_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::LaserScan_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::NavSatFix_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::MultiEchoLaserScan_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::CameraInfo_< ContainerAllocator > &v)
 
template<typename ContainerAllocator >
std::ostream & operator<< (std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
 
template<int point_field_type, typename T >
readPointCloud2BufferValue (const unsigned char *data_ptr)
 
template<typename T >
readPointCloud2BufferValue (const unsigned char *data_ptr, const unsigned char datatype)
 
template<int point_field_type, typename T >
void writePointCloud2BufferValue (unsigned char *data_ptr, T value)
 
template<typename T >
void writePointCloud2BufferValue (unsigned char *data_ptr, const unsigned char datatype, T value)
 

Detailed Description

Tools for manipulating sensor_msgs.

This file provides a type to enum mapping for the different PointField types and methods to read and write in a PointCloud2 buffer for the different PointField types.

Convert between the old (sensor_msgs::PointCloud) and the new (sensor_msgs::PointCloud2) format.

This file provides two sets of utilities to modify and parse PointCloud2 The first set allows you to conveniently set the fields by hand:

  #include <sensor_msgs/point_cloud_iterator.h>
  // Create a PointCloud2
  sensor_msgs::PointCloud2 cloud_msg;
  // Fill some internals of the PoinCloud2 like the header/width/height ...
  cloud_msgs.height = 1;  cloud_msgs.width = 4;
  // Set the point fields to xyzrgb and resize the vector with the following command
  // 4 is for the number of added fields. Each come in triplet: the name of the PointField,
  // the number of occurrences of the type in the PointField, the type of the PointField
  sensor_msgs::PointCloud2Modifier modifier(cloud_msg);
  modifier.setPointCloud2Fields(4, "x", 1, sensor_msgs::PointField::FLOAT32,
                                           "y", 1, sensor_msgs::PointField::FLOAT32,
                                           "z", 1, sensor_msgs::PointField::FLOAT32,
                                           "rgb", 1, sensor_msgs::PointField::FLOAT32);
  // For convenience and the xyz, rgb, rgba fields, you can also use the following overloaded function.
  // You have to be aware that the following function does add extra padding for backward compatibility though
  // so it is definitely the solution of choice for PointXYZ and PointXYZRGB
  // 2 is for the number of fields to add
  modifier.setPointCloud2FieldsByString(2, "xyz", "rgb");
  // You can then reserve / resize as usual
  modifier.resize(100);

The second set allow you to traverse your PointCloud using an iterator:

  // Define some raw data we'll put in the PointCloud2
  float point_data[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0};
  uint8_t color_data[] = {40, 80, 120, 160, 200, 240, 20, 40, 60, 80, 100, 120};
  // Define the iterators. When doing so, you define the Field you would like to iterate upon and
  // the type of you would like returned: it is not necessary the type of the PointField as sometimes
  // you pack data in another type (e.g. 3 uchar + 1 uchar for RGB are packed in a float)
  sensor_msgs::PointCloud2Iterator<float> iter_x(cloud_msg, "x");
  sensor_msgs::PointCloud2Iterator<float> iter_y(cloud_msg, "y");
  sensor_msgs::PointCloud2Iterator<float> iter_z(cloud_msg, "z");
  // Even though the r,g,b,a fields do not exist (it's usually rgb, rgba), you can create iterators for
  // those: they will handle data packing for you (in little endian RGB is packed as *,R,G,B in a float
  // and RGBA as A,R,G,B)
  sensor_msgs::PointCloud2Iterator<uint8_t> iter_r(cloud_msg, "r");
  sensor_msgs::PointCloud2Iterator<uint8_t> iter_g(cloud_msg, "g");
  sensor_msgs::PointCloud2Iterator<uint8_t> iter_b(cloud_msg, "b");
  // Fill the PointCloud2
  for(size_t i=0; i<n_points; ++i, ++iter_x, ++iter_y, ++iter_z, ++iter_r, ++iter_g, ++iter_b) {
    *iter_x = point_data[3*i+0];
    *iter_y = point_data[3*i+1];
    *iter_z = point_data[3*i+2];
    *iter_r = color_data[3*i+0];
    *iter_g = color_data[3*i+1];
    *iter_b = color_data[3*i+2];
  }
Author
Radu Bogdan Rusu
Sebastian Pütz

Typedef Documentation

Definition at line 134 of file BatteryState.h.

Definition at line 137 of file BatteryState.h.

Definition at line 136 of file BatteryState.h.

Definition at line 110 of file CameraInfo.h.

typedef std::shared_ptr< ::sensor_msgs::CameraInfo const> sensor_msgs::CameraInfoConstPtr

Definition at line 113 of file CameraInfo.h.

Definition at line 112 of file CameraInfo.h.

Definition at line 52 of file ChannelFloat32.h.

Definition at line 55 of file ChannelFloat32.h.

Definition at line 54 of file ChannelFloat32.h.

Definition at line 58 of file CompressedImage.h.

Definition at line 61 of file CompressedImage.h.

Definition at line 60 of file CompressedImage.h.

Definition at line 58 of file FluidPressure.h.

Definition at line 61 of file FluidPressure.h.

Definition at line 60 of file FluidPressure.h.

Definition at line 58 of file Illuminance.h.

Definition at line 61 of file Illuminance.h.

Definition at line 60 of file Illuminance.h.

typedef ::sensor_msgs::Image_<std::allocator<void> > sensor_msgs::Image

Definition at line 78 of file Image.h.

typedef std::shared_ptr< ::sensor_msgs::Image const> sensor_msgs::ImageConstPtr

Definition at line 81 of file Image.h.

typedef std::shared_ptr< ::sensor_msgs::Image > sensor_msgs::ImagePtr

Definition at line 80 of file Image.h.

typedef ::sensor_msgs::Imu_<std::allocator<void> > sensor_msgs::Imu

Definition at line 92 of file Imu.h.

typedef std::shared_ptr< ::sensor_msgs::Imu const> sensor_msgs::ImuConstPtr

Definition at line 95 of file Imu.h.

typedef std::shared_ptr< ::sensor_msgs::Imu > sensor_msgs::ImuPtr

Definition at line 94 of file Imu.h.

Definition at line 68 of file JointState.h.

Definition at line 71 of file JointState.h.

Definition at line 70 of file JointState.h.

typedef ::sensor_msgs::Joy_<std::allocator<void> > sensor_msgs::Joy

Definition at line 58 of file Joy.h.

Definition at line 61 of file Joy.h.

Definition at line 60 of file JoyFeedback.h.

Definition at line 48 of file JoyFeedbackArray.h.

Definition at line 51 of file JoyFeedbackArray.h.

Definition at line 50 of file JoyFeedbackArray.h.

Definition at line 63 of file JoyFeedback.h.

Definition at line 62 of file JoyFeedback.h.

Definition at line 60 of file Joy.h.

Definition at line 47 of file LaserEcho.h.

Definition at line 50 of file LaserEcho.h.

Definition at line 49 of file LaserEcho.h.

Definition at line 93 of file LaserScan.h.

Definition at line 96 of file LaserScan.h.

Definition at line 95 of file LaserScan.h.

Definition at line 61 of file MagneticField.h.

Definition at line 64 of file MagneticField.h.

Definition at line 63 of file MagneticField.h.

Definition at line 71 of file MultiDOFJointState.h.

Definition at line 74 of file MultiDOFJointState.h.

Definition at line 73 of file MultiDOFJointState.h.

Definition at line 95 of file MultiEchoLaserScan.h.

Definition at line 98 of file MultiEchoLaserScan.h.

Definition at line 97 of file MultiEchoLaserScan.h.

Definition at line 85 of file NavSatFix.h.

Definition at line 88 of file NavSatFix.h.

Definition at line 87 of file NavSatFix.h.

Definition at line 60 of file NavSatStatus.h.

Definition at line 63 of file NavSatStatus.h.

Definition at line 62 of file NavSatStatus.h.

Definition at line 60 of file PointCloud.h.

Definition at line 89 of file PointCloud2.h.

Definition at line 92 of file PointCloud2.h.

Definition at line 91 of file PointCloud2.h.

Definition at line 63 of file PointCloud.h.

Definition at line 62 of file PointCloud.h.

Definition at line 70 of file PointField.h.

Definition at line 73 of file PointField.h.

Definition at line 72 of file PointField.h.

typedef ::sensor_msgs::Range_<std::allocator<void> > sensor_msgs::Range

Definition at line 75 of file Range.h.

Definition at line 78 of file Range.h.

Definition at line 77 of file Range.h.

Definition at line 67 of file RegionOfInterest.h.

Definition at line 70 of file RegionOfInterest.h.

Definition at line 69 of file RegionOfInterest.h.

Definition at line 58 of file RelativeHumidity.h.

Definition at line 61 of file RelativeHumidity.h.

Definition at line 60 of file RelativeHumidity.h.

Definition at line 48 of file SetCameraInfoRequest.h.

Definition at line 51 of file SetCameraInfoRequest.h.

Definition at line 50 of file SetCameraInfoRequest.h.

Definition at line 52 of file SetCameraInfoResponse.h.

Definition at line 55 of file SetCameraInfoResponse.h.

Definition at line 54 of file SetCameraInfoResponse.h.

Definition at line 58 of file Temperature.h.

Definition at line 61 of file Temperature.h.

Definition at line 60 of file Temperature.h.

Definition at line 59 of file TimeReference.h.

Definition at line 62 of file TimeReference.h.

Definition at line 61 of file TimeReference.h.

Function Documentation

static void sensor_msgs::clearImage ( Image image)
inlinestatic

Definition at line 63 of file fill_image.h.

static bool sensor_msgs::convertPointCloud2ToPointCloud ( const sensor_msgs::PointCloud2 input,
sensor_msgs::PointCloud output 
)
inlinestatic

Convert a sensor_msgs::PointCloud2 message to a sensor_msgs::PointCloud message.

Parameters
inputthe message in the sensor_msgs::PointCloud2 format
outputthe resultant message in the sensor_msgs::PointCloud format

Definition at line 117 of file point_cloud_conversion.h.

static bool sensor_msgs::convertPointCloudToPointCloud2 ( const sensor_msgs::PointCloud input,
sensor_msgs::PointCloud2 output 
)
inlinestatic

Convert a sensor_msgs::PointCloud message to a sensor_msgs::PointCloud2 message.

Parameters
inputthe message in the sensor_msgs::PointCloud format
outputthe resultant message in the sensor_msgs::PointCloud2 format

Definition at line 70 of file point_cloud_conversion.h.

static bool sensor_msgs::fillImage ( Image image,
const std::string encoding_arg,
uint32_t  rows_arg,
uint32_t  cols_arg,
uint32_t  step_arg,
const void data_arg 
)
inlinestatic

Definition at line 44 of file fill_image.h.

static int sensor_msgs::getPointCloud2FieldIndex ( const sensor_msgs::PointCloud2 cloud,
const std::string field_name 
)
inlinestatic

Get the index of a specified field (i.e., dimension/channel)

Parameters
pointsthe the point cloud message
field_namethe string defining the field name

Definition at line 56 of file point_cloud_conversion.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::LaserEcho_< ContainerAllocator > &  v 
)

Definition at line 57 of file LaserEcho.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::SetCameraInfoRequest_< ContainerAllocator > &  v 
)

Definition at line 58 of file SetCameraInfoRequest.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::JoyFeedbackArray_< ContainerAllocator > &  v 
)

Definition at line 58 of file JoyFeedbackArray.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::SetCameraInfoResponse_< ContainerAllocator > &  v 
)

Definition at line 62 of file SetCameraInfoResponse.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &  v 
)

Definition at line 62 of file ChannelFloat32.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::Illuminance_< ContainerAllocator > &  v 
)

Definition at line 68 of file Illuminance.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::RelativeHumidity_< ContainerAllocator > &  v 
)

Definition at line 68 of file RelativeHumidity.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::Temperature_< ContainerAllocator > &  v 
)

Definition at line 68 of file Temperature.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::CompressedImage_< ContainerAllocator > &  v 
)

Definition at line 68 of file CompressedImage.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::Joy_< ContainerAllocator > &  v 
)

Definition at line 68 of file Joy.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::FluidPressure_< ContainerAllocator > &  v 
)

Definition at line 68 of file FluidPressure.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::TimeReference_< ContainerAllocator > &  v 
)

Definition at line 69 of file TimeReference.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::PointCloud_< ContainerAllocator > &  v 
)

Definition at line 70 of file PointCloud.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::MagneticField_< ContainerAllocator > &  v 
)

Definition at line 71 of file MagneticField.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &  v 
)

Definition at line 76 of file JoyFeedback.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::RegionOfInterest_< ContainerAllocator > &  v 
)

Definition at line 77 of file RegionOfInterest.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::JointState_< ContainerAllocator > &  v 
)

Definition at line 78 of file JointState.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > &  v 
)

Definition at line 81 of file MultiDOFJointState.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::NavSatStatus_< ContainerAllocator > &  v 
)

Definition at line 86 of file NavSatStatus.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::Image_< ContainerAllocator > &  v 
)

Definition at line 88 of file Image.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::Range_< ContainerAllocator > &  v 
)

Definition at line 89 of file Range.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::PointField_< ContainerAllocator > &  v 
)

Definition at line 96 of file PointField.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::PointCloud2_< ContainerAllocator > &  v 
)

Definition at line 99 of file PointCloud2.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::Imu_< ContainerAllocator > &  v 
)

Definition at line 102 of file Imu.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::LaserScan_< ContainerAllocator > &  v 
)

Definition at line 103 of file LaserScan.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::NavSatFix_< ContainerAllocator > &  v 
)

Definition at line 103 of file NavSatFix.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::MultiEchoLaserScan_< ContainerAllocator > &  v 
)

Definition at line 105 of file MultiEchoLaserScan.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::CameraInfo_< ContainerAllocator > &  v 
)

Definition at line 120 of file CameraInfo.h.

template<typename ContainerAllocator >
std::ostream& sensor_msgs::operator<< ( std::ostream &  s,
const ::sensor_msgs::BatteryState_< ContainerAllocator > &  v 
)

Definition at line 186 of file BatteryState.h.

template<int point_field_type, typename T >
T sensor_msgs::readPointCloud2BufferValue ( const unsigned char *  data_ptr)
inline

a value at the given pointer position, interpreted as the datatype specified by the given template argument point_field_type, to the given template type T and returns it.

Parameters
data_ptrpointer into the point cloud 2 buffer
Template Parameters
point_field_typesensor_msgs::PointField datatype value
Treturn type

Definition at line 91 of file point_field_conversion.h.

template<typename T >
T sensor_msgs::readPointCloud2BufferValue ( const unsigned char *  data_ptr,
const unsigned char  datatype 
)
inline

a value at the given pointer position interpreted as the datatype specified by the given datatype parameter to the given template type and returns it.

Parameters
data_ptrpointer into the point cloud 2 buffer
datatypesensor_msgs::PointField datatype value
Template Parameters
Treturn type

Definition at line 104 of file point_field_conversion.h.

template<int point_field_type, typename T >
void sensor_msgs::writePointCloud2BufferValue ( unsigned char *  data_ptr,
value 
)
inline

a given value at the given point position interpreted as the datatype specified by the template argument point_field_type.

Parameters
data_ptrpointer into the point cloud 2 buffer
valuethe value to insert
Template Parameters
point_field_typesensor_msgs::PointField datatype value
Ttype of the value to insert

Definition at line 134 of file point_field_conversion.h.

template<typename T >
void sensor_msgs::writePointCloud2BufferValue ( unsigned char *  data_ptr,
const unsigned char  datatype,
value 
)
inline

a given value at the given point position interpreted as the datatype specified by the given datatype parameter.

Parameters
data_ptrpointer into the point cloud 2 buffer
datatypesensor_msgs::PointField datatype value
valuethe value to insert
Template Parameters
Ttype of the value to insert

Definition at line 148 of file point_field_conversion.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:43