NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ros_compressed_file_ack.h
Go to the documentation of this file.
1
/* Copyright (c) 2017, United States Government, as represented by the
2
* Administrator of the National Aeronautics and Space Administration.
3
*
4
* All rights reserved.
5
*
6
* The Astrobee platform is licensed under the Apache License, Version 2.0
7
* (the "License"); you may not use this file except in compliance with the
8
* License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
* License for the specific language governing permissions and limitations
16
* under the License.
17
*/
18
19
20
#ifndef DDS_ROS_BRIDGE_ROS_COMPRESSED_FILE_ACK_H_
21
#define DDS_ROS_BRIDGE_ROS_COMPRESSED_FILE_ACK_H_
22
23
#include <cstring>
24
#include <memory>
25
#include <string>
26
27
#include "dds_ros_bridge/ros_sub_rapid_pub.h"
28
#include "dds_ros_bridge/util.h"
29
30
#include "ff_msgs/CompressedFileAck.h"
31
32
#include "knDds/DdsTypedSupplier.h"
33
34
#include "rapidUtil/RapidHelper.h"
35
36
#include "dds_msgs/AstrobeeConstants.h"
37
#include "dds_msgs/CompressedFileAckSupport.h"
38
39
namespace
ff
{
40
41
class
RosCompressedFileAckToRapid
:
public
RosSubRapidPub
{
42
public
:
43
RosCompressedFileAckToRapid
(
const
std::string& subscribe_topic,
44
const
std::string& pub_topic,
45
const
ros::NodeHandle &nh,
46
const
unsigned
int
queue_size = 10);
47
48
void
Callback
(ff_msgs::CompressedFileAck::ConstPtr
const
& ack);
49
50
private
:
51
using
Supplier =
52
kn::DdsTypedSupplier<rapid::ext::astrobee::CompressedFileAck>;
53
using
SupplierPtr = std::unique_ptr<Supplier>;
54
55
SupplierPtr state_supplier_;
56
};
57
58
}
// end namespace ff
59
60
#endif // DDS_ROS_BRIDGE_ROS_COMPRESSED_FILE_ACK_H_
ff::RosCompressedFileAckToRapid::Callback
void Callback(ff_msgs::CompressedFileAck::ConstPtr const &ack)
Definition:
ros_compressed_file_ack.cc:42
ff::RosSubRapidPub
Definition:
ros_sub_rapid_pub.h:30
ff
Definition:
generic_rapid_msg_ros_pub.h:36
ff::RosCompressedFileAckToRapid::RosCompressedFileAckToRapid
RosCompressedFileAckToRapid(const std::string &subscribe_topic, const std::string &pub_topic, const ros::NodeHandle &nh, const unsigned int queue_size=10)
Definition:
ros_compressed_file_ack.cc:23
ff::RosCompressedFileAckToRapid
Definition:
ros_compressed_file_ack.h:41