diff --git a/robot_sensor_msgs/include/robot_sensor_msgs/DepthCameraData.h b/robot_sensor_msgs/include/robot_sensor_msgs/DepthCameraData.h new file mode 100644 index 0000000..9566010 --- /dev/null +++ b/robot_sensor_msgs/include/robot_sensor_msgs/DepthCameraData.h @@ -0,0 +1,38 @@ +#ifndef ROBOT_SENSOR_MSGS_MESSAGE_DEPTHCAMERADATA_H +#define ROBOT_SENSOR_MSGS_MESSAGE_DEPTHCAMERADATA_H + +#include +#include +#include +#include + +namespace robot_sensor_msgs +{ + +struct DepthCameraData +{ + robot_std_msgs::Header header; + robot_sensor_msgs::Image depth; + robot_sensor_msgs::CameraInfo camera_info; + + typedef boost::shared_ptr Ptr; + typedef boost::shared_ptr ConstPtr; + + DepthCameraData& operator=(const DepthCameraData& other) + { + if (this != &other) + { + header = other.header; + depth = other.depth; + camera_info = other.camera_info; + } + + return *this; + } +}; + + + +} // namespace robot_sensor_msgs + +#endif // ROBOT_SENSOR_MSGS_MESSAGE_DEPTHCAMERADATA_H \ No newline at end of file