update some msgs

This commit is contained in:
2026-07-13 14:46:03 +07:00
parent b9d5ec0f60
commit 0313fe6aa2
3 changed files with 5 additions and 15 deletions

View File

@@ -9,6 +9,7 @@
#include <string>
#include <vector>
#include <memory>
#include <boost/shared_ptr.hpp>
namespace robot_protocol_msgs
{

View File

@@ -10,6 +10,7 @@
#include <vector>
#include <memory>
#include <boost/shared_ptr.hpp>
#include <boost/array.hpp>
#include <robot_std_msgs/Header.h>
#include <robot_sensor_msgs/RegionOfInterest.h>

View File

@@ -1,6 +1,7 @@
#ifndef ROBOT_SENSOR_MSGS_MESSAGE_DEPTHCAMERADATA_H
#define ROBOT_SENSOR_MSGS_MESSAGE_DEPTHCAMERADATA_H
#include <boost/array.hpp>
#include <boost/shared_ptr.hpp>
#include <robot_sensor_msgs/CameraInfo.h>
#include <robot_sensor_msgs/Image.h>
@@ -11,28 +12,15 @@ namespace robot_sensor_msgs
struct DepthCameraData
{
// Canonical timestamp and optical frame for this coherent depth sample.
robot_std_msgs::Header header;
robot_sensor_msgs::Image depth;
robot_sensor_msgs::CameraInfo camera_info;
typedef boost::shared_ptr<robot_sensor_msgs::DepthCameraData> Ptr;
typedef boost::shared_ptr<const robot_sensor_msgs::DepthCameraData> 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
#endif // ROBOT_SENSOR_MSGS_MESSAGE_DEPTHCAMERADATA_H