加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Video_encoded_data.h 8.47 KB
一键复制 编辑 原始数据 按行查看 历史
吴冬亮 提交于 2020-03-10 14:10 . first
#ifndef VIDEO_ENCODED_DATA_H
#define VIDEO_ENCODED_DATA_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>
#include <std_msgs/Header.h>
namespace kyber_msgs
{
template <class ContainerAllocator>
struct Video_encoded_data_
{
typedef Video_encoded_data_<ContainerAllocator> Type;
Video_encoded_data_()
: header()
, video_format()
, frame_type(0)
, data_size(0)
, raw_data() {
}
Video_encoded_data_(const ContainerAllocator& _alloc)
: header(_alloc)
, video_format(_alloc)
, frame_type(0)
, data_size(0)
, raw_data(_alloc) {
(void)_alloc;
}
typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
_header_type header;
typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _video_format_type;
_video_format_type video_format;
typedef int32_t _frame_type_type;
_frame_type_type frame_type;
typedef int32_t _data_size_type;
_data_size_type data_size;
typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _raw_data_type;
_raw_data_type raw_data;
typedef boost::shared_ptr< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> const> ConstPtr;
}; // struct Video_encoded_data_
typedef ::kyber_msgs::Video_encoded_data_<std::allocator<void> > Video_encoded_data;
typedef boost::shared_ptr< ::kyber_msgs::Video_encoded_data > Video_encoded_dataPtr;
typedef boost::shared_ptr< ::kyber_msgs::Video_encoded_data const> Video_encoded_dataConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::kyber_msgs::Video_encoded_data_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >::stream(s, "", v);
return s;
}
} // namespace kyber_msgs
namespace ros
{
namespace message_traits
{
// BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
// {'nav_msgs': ['/opt/ros/kinetic/share/nav_msgs/cmake/../msg'], 'vehicle_msgs': ['/home/zhangbaokuan/KyberSim/src/common/vehicle_msgs/msg'], 'actionlib_msgs': ['/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'kyber_msgs': ['/home/zhangbaokuan/KyberSim/src/common/kyber_msgs/msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg']}
// !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
template <class ContainerAllocator>
struct IsFixedSize< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
: FalseType
{ };
template <class ContainerAllocator>
struct IsFixedSize< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> const>
: FalseType
{ };
template <class ContainerAllocator>
struct IsMessage< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> const>
: TrueType
{ };
template<class ContainerAllocator>
struct MD5Sum< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
{
static const char* value()
{
return "19e9f862a9d29da8426693fc743c49e8";
}
static const char* value(const ::kyber_msgs::Video_encoded_data_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0x19e9f862a9d29da8ULL;
static const uint64_t static_value2 = 0x426693fc743c49e8ULL;
};
template<class ContainerAllocator>
struct DataType< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
{
static const char* value()
{
return "kyber_msgs/Video_encoded_data";
}
static const char* value(const ::kyber_msgs::Video_encoded_data_<ContainerAllocator>&) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
{
static const char* value()
{
return "std_msgs/Header header\n\
string video_format #h265 or h265\n\
int32 frame_type #frame type\n\
int32 data_size #video size\n\
uint8[] raw_data #yuv data\n\
\n\
================================================================================\n\
MSG: std_msgs/Header\n\
# Standard metadata for higher-level stamped data types.\n\
# This is generally used to communicate timestamped data \n\
# in a particular coordinate frame.\n\
# \n\
# sequence ID: consecutively increasing ID \n\
uint32 seq\n\
#Two-integer timestamp that is expressed as:\n\
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
# time-handling sugar is provided by the client library\n\
time stamp\n\
#Frame this data is associated with\n\
# 0: no frame\n\
# 1: global frame\n\
string frame_id\n\
";
}
static const char* value(const ::kyber_msgs::Video_encoded_data_<ContainerAllocator>&) { return value(); }
};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.header);
stream.next(m.video_format);
stream.next(m.frame_type);
stream.next(m.data_size);
stream.next(m.raw_data);
}
ROS_DECLARE_ALLINONE_SERIALIZER
}; // struct Video_encoded_data_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::kyber_msgs::Video_encoded_data_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kyber_msgs::Video_encoded_data_<ContainerAllocator>& v)
{
s << indent << "header: ";
s << std::endl;
Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
s << indent << "video_format: ";
Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.video_format);
s << indent << "frame_type: ";
Printer<int32_t>::stream(s, indent + " ", v.frame_type);
s << indent << "data_size: ";
Printer<int32_t>::stream(s, indent + " ", v.data_size);
s << indent << "raw_data[]" << std::endl;
for (size_t i = 0; i < v.raw_data.size(); ++i)
{
s << indent << " raw_data[" << i << "]: ";
Printer<uint8_t>::stream(s, indent + " ", v.raw_data[i]);
}
}
};
} // namespace message_operations
} // namespace ros
#endif // VIDEO_ENCODED_DATA_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化