NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ros_command_config_rapid_command_config.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_ROS_COMMAND_CONFIG_RAPID_COMMAND_CONFIG_H_
20 #define DDS_ROS_BRIDGE_ROS_COMMAND_CONFIG_RAPID_COMMAND_CONFIG_H_
21 
22 #include <ros/ros.h>
23 
24 #include <sstream>
25 #include <string>
26 
28 
30 
31 #include "knDds/DdsTypedSupplier.h"
32 
33 #include "rapidDds/CommandConfig.h"
34 #include "rapidDds/CommandConfigSupport.h"
35 #include "rapidDds/RapidConstants.h"
36 
37 #include "rapidUtil/RapidHelper.h"
38 
39 #include "dds_msgs/AstrobeeCommandConstants.h"
40 
41 namespace ff {
42 
51  public:
52  explicit RosCommandConfigRapidCommandConfig(const std::string& pub_topic,
53  const ros::NodeHandle &nh,
55 
56  protected:
64  bool AssembleConfig(rapid::CommandConfig& config,
66 
67  kn::DdsTypedSupplier<rapid::CommandConfig> command_config_supplier_;
68 };
69 
70 } // end namespace ff
71 
72 #endif // DDS_ROS_BRIDGE_ROS_COMMAND_CONFIG_RAPID_COMMAND_CONFIG_H_
ff::RosCommandConfigRapidCommandConfig
publish a single CommandConfig message
Definition: ros_command_config_rapid_command_config.h:50
ff::RosCommandConfigRapidCommandConfig::AssembleConfig
bool AssembleConfig(rapid::CommandConfig &config, config_reader::ConfigReader &config_params)
Definition: ros_command_config_rapid_command_config.cc:50
ff::RapidPub
base class for rapid publishers
Definition: rapid_pub.h:16
ff
Definition: generic_rapid_msg_ros_pub.h:36
rapid_pub.h
config_reader::ConfigReader
Definition: config_reader.h:48
config_reader.h
config_params
config_reader::ConfigReader config_params
Definition: fault_tester.cc:12
ff::RosCommandConfigRapidCommandConfig::RosCommandConfigRapidCommandConfig
RosCommandConfigRapidCommandConfig(const std::string &pub_topic, const ros::NodeHandle &nh, config_reader::ConfigReader &config_params)
Definition: ros_command_config_rapid_command_config.cc:23
ff::RosCommandConfigRapidCommandConfig::command_config_supplier_
kn::DdsTypedSupplier< rapid::CommandConfig > command_config_supplier_
Definition: ros_command_config_rapid_command_config.h:67