NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ros_log_sample.h
Go to the documentation of this file.
1 // Copyright 2017 Intelligent Robotics Geoup, NASA ARC
2 
3 #ifndef DDS_ROS_BRIDGE_ROS_LOG_SAMPLE_H_
4 #define DDS_ROS_BRIDGE_ROS_LOG_SAMPLE_H_
5 
6 #include <string>
7 
8 #include "dds_ros_bridge/ros_sub_rapid_pub.h"
9 #include "dds_ros_bridge/util.h"
10 
11 #include "rosgraph_msgs/Log.h"
12 
13 #include "knDds/DdsTypedSupplier.h"
14 
15 #include "rapidDds/RapidConstants.h"
16 
17 #include "rapidIo/RapidIoParameters.h"
18 
19 #include "rapidUtil/RapidHelper.h"
20 
21 #include "dds_msgs/AstrobeeConstants.h"
22 #include "dds_msgs/LogSampleSupport.h"
23 
24 namespace ff {
25 
27  public:
28  RosLogSampleToRapid(const std::string& subscribe_topic,
29  const std::string& pub_topic,
30  const ros::NodeHandle& nh,
31  const unsigned int queue_size = 10);
32 
33  void MsgCallback(const rosgraph_msgs::LogConstPtr& msg);
34 
35  private:
36  using StateSupplier =
37  kn::DdsTypedSupplier<rapid::ext::astrobee::LogSample>;
38  using StateSupplierPtr = std::unique_ptr<StateSupplier>;
39 
40  StateSupplierPtr state_supplier_;
41 };
42 
43 } // end namespace ff
44 
45 #endif // DDS_ROS_BRIDGE_ROS_LOG_SAMPLE_H_
ff::RosLogSampleToRapid
Definition: ros_log_sample.h:26
ff::RosLogSampleToRapid::MsgCallback
void MsgCallback(const rosgraph_msgs::LogConstPtr &msg)
Definition: ros_log_sample.cc:69
ff::RosSubRapidPub
Definition: ros_sub_rapid_pub.h:30
ff
Definition: generic_rapid_msg_ros_pub.h:36
ff::RosLogSampleToRapid::RosLogSampleToRapid
RosLogSampleToRapid(const std::string &subscribe_topic, const std::string &pub_topic, const ros::NodeHandle &nh, const unsigned int queue_size=10)
Definition: ros_log_sample.cc:50