20 ROS_INFO(
"Video transmission sender load.");
21 deploy_video_stream_sub_ = nh.subscribe(
"/video_stream", 10, &VideoTransmissionSender::deployVideoStreamCB,
this);
26 void deployVideoStreamCB(
const rm_msgs::VideoPacketConstPtr& msg);
27 void sendDeployVideoStream(
const uint8_t* data);
28 void pack(uint8_t* tx_buffer, uint8_t* data,
int cmd_id,
int len);
31 for (
int i = 0; i < k_frame_length_; i++)
36 ros::Subscriber deploy_video_stream_sub_;
37 ros::Time deploy_video_stream_last_send_;
39 uint8_t tx_buffer_[309]{};
42 const int k_frame_length_ = 309, k_header_length_ = 5, k_cmd_id_length_ = 2, k_tail_length_ = 2;