|
NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
Go to the documentation of this file.
19 #ifndef DDS_ROS_BRIDGE_DDS_ROS_BRIDGE_H_
20 #define DDS_ROS_BRIDGE_DDS_ROS_BRIDGE_H_
22 #include <pluginlib/class_list_macros.h>
34 #include "dds_ros_bridge/rapid_sub_ros_pub.h"
41 #include "dds_ros_bridge/ros_command.h"
62 #include "dds_ros_bridge/ros_sub_rapid_pub.h"
66 #include "ff_msgs/SetRate.h"
72 #include "knDds/DdsSupport.h"
73 #include "knDds/DdsEntitiesFactory.h"
74 #include "knDds/DdsEntitiesFactorySvc.h"
77 #include "miro/Configuration.h"
78 #include "miro/Robot.h"
82 #include "std_msgs/String.h"
85 class DdsEntitiesFactorySvc;
101 class RosSubRapidPub;
114 const std::string&
name);
116 const std::string&
name);
118 const std::string&
name);
120 const std::string&
name);
122 const std::string&
name);
124 const std::string& sub_topic_battery_state_TR,
125 const std::string& sub_topic_battery_state_BL,
126 const std::string& sub_topic_battery_state_BR,
127 const std::string& sub_topic_battery_temp_TL,
128 const std::string& sub_topic_battery_temp_TR,
129 const std::string& sub_topic_battery_temp_BL,
130 const std::string& sub_topic_battery_temp_BR,
131 const std::string&
name);
133 const std::string& ac_sub_topic,
134 const std::string& failed_cmd_sub_topic,
135 const std::string&
name);
137 const std::string&
name);
139 const std::string&
name);
141 const std::string&
name);
143 const std::string&
name);
145 const std::string& topics_sub_topic,
146 const std::string&
name);
148 const std::string&
name);
150 const std::string&
name);
152 const std::string&
name);
154 const std::string&
name);
156 const std::string&
name);
158 const std::string& config_sub_topic,
159 const std::string& data_sub_topic,
160 const std::string&
name);
162 const std::string&
name);
164 const std::string&
name);
166 const std::string&
name);
168 const std::string&
name);
170 const std::string&
name);
172 const std::string&
name);
174 const std::string&
name);
177 const std::string&
name);
179 const std::string& zones_srv,
180 const std::string&
name);
190 const std::string&
name);
192 const std::string&
name);
211 ff_msgs::SetRate::Response &res);
216 const std::string& sub_or_pub,
217 std::string& sub_topic,
229 ros::Publisher robot_name_pub_;
230 ros::ServiceServer srv_set_telem_rate_;
232 std::map<std::string, ff::RosSubRapidPubPtr> ros_sub_rapid_pubs_;
233 std::shared_ptr<kn::DdsEntitiesFactorySvc> dds_entities_factory_;
234 std::string agent_name_, participant_name_;
235 std::vector<ff::RapidPubPtr> rapid_pubs_;
236 std::vector<ff::RapidSubRosPubPtr> rapid_sub_ros_pubs_;
241 #endif // DDS_ROS_BRIDGE_DDS_ROS_BRIDGE_H_
bool BuildAgentStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:104
bool BuildPmcCmdStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:569
bool BuildFaultStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:376
bool BuildPoseToPosition(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:590
bool BuildCommandConfigToCommandConfig(const std::string &name)
Definition: dds_ros_bridge.cc:727
bool ReadTopicInfo(const std::string &topic_abbr, const std::string &sub_or_pub, std::string &sub_topic, bool &use)
Definition: dds_ros_bridge.cc:1140
bool BuildCompressedFileToCompressedFile(const std::string &pub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:705
@ SPARSE_MAPPING_POSE
Definition: dds_ros_bridge.h:98
RateType
Definition: dds_ros_bridge.h:90
@ PMC_CMD_STATE
Definition: dds_ros_bridge.h:96
@ DISK_STATE
Definition: dds_ros_bridge.h:93
bool BuildPayloadStateToPayloadState(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:527
bool BuildPlanStatusToPlanStatus(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:548
bool BuildDiskStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:335
bool BuildOdomToPosition(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:505
bool BuildStringToTextMessage(const std::string &name)
Definition: dds_ros_bridge.cc:618
bool SetTelem(float rate, std::string &err_msg, RateType type)
Definition: dds_ros_bridge.cc:748
bool BuildGncFamCmdStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:397
bool BuildArmStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:146
bool SetCommStatusRate(float rate, std::string &err_msg)
Definition: dds_ros_bridge.cc:791
bool SetDiskStateRate(float rate, std::string &err_msg)
Definition: dds_ros_bridge.cc:817
bool SetEkfPositionRate(float rate, std::string &err_msg, RateType type)
Definition: dds_ros_bridge.cc:833
@ EKF_STATE
Definition: dds_ros_bridge.h:94
bool SetSparseMappingPoseRate(float rate, std::string &err_msg)
Definition: dds_ros_bridge.cc:915
bool SetGncStateRate(float rate, std::string &err_msg)
Definition: dds_ros_bridge.cc:860
bool BuildAckToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:84
std::string name
Definition: eps_simulator.cc:48
bool BuildArmJointSampleToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:125
Definition: smart_dock_node.h:55
bool BuildZonesToRapidCompressedFile(const std::string &sub_topic, const std::string &zones_srv, const std::string &name)
Definition: dds_ros_bridge.cc:661
bool BuildDataToDiskStateToRapid(const std::string &state_sub_topic, const std::string &topics_sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:311
~DdsRosBridge()
Definition: dds_ros_bridge.cc:60
Definition: ff_nodelet.h:57
virtual void Initialize(ros::NodeHandle *nh)
Definition: dds_ros_bridge.cc:969
bool BuildCompressedFileAckToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:249
bool BuildFaultConfigToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:355
bool BuildTelemetryToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:639
bool BuildCommandToRapid(const std::string &sub_topic, const std::string &ac_sub_topic, const std::string &failed_cmd_sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:202
Definition: config_reader.h:48
bool ReadRateParams()
Definition: dds_ros_bridge.cc:1422
@ COMM_STATUS
Definition: dds_ros_bridge.h:91
bool BuildGncControlStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:418
bool BuildAccessControlStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:63
DdsRosBridge()
Definition: dds_ros_bridge.cc:54
@ CPU_STATE
Definition: dds_ros_bridge.h:92
bool BuildCpuStateToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:291
bool SetCpuStateRate(float rate, std::string &err_msg)
Definition: dds_ros_bridge.cc:800
bool SetTelemRateCallback(ff_msgs::SetRate::Request &req, ff_msgs::SetRate::Response &res)
Definition: dds_ros_bridge.cc:932
bool ReadParams()
Definition: dds_ros_bridge.cc:1162
@ GNC_STATE
Definition: dds_ros_bridge.h:95
Definition: astrobee_astrobee_bridge.h:59
bool BuildLogSampleToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:485
bool BuildCompressedImageToImage(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:270
bool BuildCommandToCommand(const std::string &pub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:684
bool BuildCompressedFileToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:228
bool BuildBatteryStateToRapid(const std::string &sub_topic_battery_state_TL, const std::string &sub_topic_battery_state_TR, const std::string &sub_topic_battery_state_BL, const std::string &sub_topic_battery_state_BR, const std::string &sub_topic_battery_temp_TL, const std::string &sub_topic_battery_temp_TR, const std::string &sub_topic_battery_temp_BL, const std::string &sub_topic_battery_temp_BR, const std::string &name)
Definition: dds_ros_bridge.cc:166
Definition: dds_ros_bridge.h:103
bool BuildGuestScienceToRapid(const std::string &state_sub_topic, const std::string &config_sub_topic, const std::string &data_sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:439
bool BuildInertiaDataToRapid(const std::string &sub_topic, const std::string &name)
Definition: dds_ros_bridge.cc:464
bool SetPmcStateRate(float rate, std::string &err_msg)
Definition: dds_ros_bridge.cc:898
@ POSITION
Definition: dds_ros_bridge.h:97