NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
rapid_command_ros_command_plan.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 DDS_ROS_BRIDGE_RAPID_COMMAND_ROS_COMMAND_PLAN_H_
20
#define DDS_ROS_BRIDGE_RAPID_COMMAND_ROS_COMMAND_PLAN_H_
21
22
#include <stdint.h>
23
24
#include <ros/assert.h>
25
26
#include <string>
27
#include <cstring>
28
#include <vector>
29
30
#include "dds_ros_bridge/rapid_sub_ros_pub.h"
31
#include "dds_ros_bridge/util.h"
32
33
#include "ff_msgs/CommandArg.h"
34
#include "ff_msgs/CommandStamped.h"
35
36
#include "dds_msgs/AstrobeeCommandConstants.h"
37
38
#include "knDds/DdsTypedSupplier.h"
39
40
#include "rapidDds/AckSupport.h"
41
#include "rapidDds/Command.h"
42
#include "rapidDds/CommandSupport.h"
43
#include "rapidDds/RapidConstants.h"
44
45
#include "rapidUtil/RapidHelper.h"
46
47
namespace
ff
{
48
49
class
RapidCommandRosCommand
:
public
RapidSubRosPub
{
50
public
:
51
RapidCommandRosCommand
(
const
std::string& subscribe_topic,
52
const
std::string& pub_topic,
53
const
ros::NodeHandle &nh,
54
const
unsigned
int
queue_size = 10);
55
59
void
operator()
(
rapid::Command
const
* cmd);
60
};
61
62
}
// end namespace ff
63
64
#endif // DDS_ROS_BRIDGE_RAPID_COMMAND_ROS_COMMAND_PLAN_H_
ff::RapidCommandRosCommand::RapidCommandRosCommand
RapidCommandRosCommand(const std::string &subscribe_topic, const std::string &pub_topic, const ros::NodeHandle &nh, const unsigned int queue_size=10)
Definition:
rapid_command_ros_command_plan.cc:75
ff::RapidCommandRosCommand::operator()
void operator()(rapid::Command const *cmd)
Definition:
rapid_command_ros_command_plan.cc:109
pmc_actuator::Command
Command
Definition:
pmc_actuator.h:53
ff::RapidCommandRosCommand
Definition:
rapid_command_ros_command_plan.h:49
ff
Definition:
generic_rapid_msg_ros_pub.h:36
ff::RapidSubRosPub
base class for rapid subscriber to ros publisher
Definition:
rapid_sub_ros_pub.h:42