NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
rapid_sub_request.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
#ifndef COMMS_BRIDGE_RAPID_SUB_REQUEST_H_
20
#define COMMS_BRIDGE_RAPID_SUB_REQUEST_H_
21
22
#include <
comms_bridge/generic_ros_sub_rapid_pub.h
>
23
#include <
comms_bridge/generic_rapid_sub.h
>
24
25
#include <string>
26
27
#include "knDds/DdsTypedSupplier.h"
28
29
#include "dds_msgs/AstrobeeConstants.h"
30
#include "dds_msgs/GenericCommsRequestSupport.h"
31
32
namespace
ff
{
33
34
class
RapidSubRequest
:
public
GenericRapidSub
{
35
public
:
36
RapidSubRequest
(
const
std::string& entity_name,
37
const
std::string& subscribe_topic,
38
const
std::string& subscriber_partition,
39
GenericROSSubRapidPub
* ros_sub_rapid_pub);
40
44
void
operator()
(rapid::ext::astrobee::GenericCommsRequest
const
* request);
45
46
private
:
47
GenericROSSubRapidPub
* ros_sub_;
48
};
49
50
}
// end namespace ff
51
52
#endif // COMMS_BRIDGE_RAPID_SUB_REQUEST_H_
ff::GenericROSSubRapidPub
Definition:
generic_ros_sub_rapid_pub.h:84
ff::RapidSubRequest::RapidSubRequest
RapidSubRequest(const std::string &entity_name, const std::string &subscribe_topic, const std::string &subscriber_partition, GenericROSSubRapidPub *ros_sub_rapid_pub)
Definition:
rapid_sub_request.cpp:25
ff::GenericRapidSub
base class for rapid subscriber to ros publisher
Definition:
generic_rapid_sub.h:42
ff
Definition:
generic_rapid_msg_ros_pub.h:36
ff::RapidSubRequest
Definition:
rapid_sub_request.h:34
generic_rapid_sub.h
generic_ros_sub_rapid_pub.h
ff::RapidSubRequest::operator()
void operator()(rapid::ext::astrobee::GenericCommsRequest const *request)
Definition:
rapid_sub_request.cpp:50