NASA Astrobee Robot Software
Astrobee Version:
develop
master
ros2
v0.17.0
v0.17.1
v0.17.2
v0.17.3
v0.18.0
v0.19.0
v0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
Main Page
Modules
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rapid_pub_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_PUB_REQUEST_H_
20
#define COMMS_BRIDGE_RAPID_PUB_REQUEST_H_
21
22
#include <
comms_bridge/util.h
>
23
#include <ros/ros.h>
24
25
#include <string>
26
27
#include "knDds/DdsTypedSupplier.h"
28
29
#include "rapidUtil/RapidHelper.h"
30
31
#include "dds_msgs/AstrobeeConstantsSupport.h"
32
#include "dds_msgs/GenericCommsRequestSupport.h"
33
34
namespace
ff
{
35
36
class
RapidPubRequest
{
37
public
:
38
explicit
RapidPubRequest
(std::string
const
& robot_name);
39
~RapidPubRequest
();
40
41
void
SendRequest
(std::string
const
& output_topic);
42
43
private
:
44
using
RequestSupplier =
45
kn::DdsTypedSupplier<rapid::ext::astrobee::GenericCommsRequest>;
46
using
RequestSupplierPtr = std::unique_ptr<RequestSupplier>;
47
RequestSupplierPtr request_supplier_;
48
49
unsigned
int
request_seq_;
50
};
51
52
typedef
std::shared_ptr<ff::RapidPubRequest>
RapidPubRequestPtr
;
53
54
}
// end namespace ff
55
56
#endif // COMMS_BRIDGE_RAPID_PUB_REQUEST_H_
ff::RapidPubRequest::SendRequest
void SendRequest(std::string const &output_topic)
Definition:
rapid_pub_request.cpp:39
ff::RapidPubRequest::~RapidPubRequest
~RapidPubRequest()
Definition:
rapid_pub_request.cpp:37
ff
Definition:
generic_rapid_msg_ros_pub.h:36
util.h
ff::RapidPubRequest::RapidPubRequest
RapidPubRequest(std::string const &robot_name)
Definition:
rapid_pub_request.cpp:25
ff::RapidPubRequestPtr
std::shared_ptr< ff::RapidPubRequest > RapidPubRequestPtr
Definition:
rapid_pub_request.h:52
ff::RapidPubRequest
Definition:
rapid_pub_request.h:36