|
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.
20 #ifndef DDS_ROS_BRIDGE_ROS_CPU_STATE_H_
21 #define DDS_ROS_BRIDGE_ROS_CPU_STATE_H_
25 #include "dds_ros_bridge/ros_sub_rapid_pub.h"
26 #include "dds_ros_bridge/util.h"
28 #include "ff_msgs/CpuState.h"
29 #include "ff_msgs/CpuStateStamped.h"
31 #include "knDds/DdsTypedSupplier.h"
33 #include "rapidUtil/RapidHelper.h"
35 #include "dds_msgs/AstrobeeConstants.h"
36 #include "dds_msgs/CpuConfigSupport.h"
37 #include "dds_msgs/CpuStateSupport.h"
44 const std::string& pub_topic,
45 const ros::NodeHandle &nh,
46 const unsigned int queue_size = 10);
53 using ConfigSupplier = kn::DdsTypedSupplier<rapid::ext::astrobee::CpuConfig>;
54 using ConfigSupplierPtr = std::unique_ptr<ConfigSupplier>;
56 ConfigSupplierPtr config_supplier_;
58 using StateSupplier = kn::DdsTypedSupplier<rapid::ext::astrobee::CpuState>;
59 using StateSupplierPtr = std::unique_ptr<StateSupplier>;
61 StateSupplierPtr state_supplier_;
65 ros::Timer pub_timer_;
70 #endif // DDS_ROS_BRIDGE_ROS_CPU_STATE_H_
void SetPublishRate(float rate)
Definition: ros_cpu_state.cc:175
Definition: ros_sub_rapid_pub.h:30
Definition: generic_rapid_msg_ros_pub.h:36
void Callback(ff_msgs::CpuStateStampedConstPtr const &state)
Definition: ros_cpu_state.cc:63
void CheckAndPublish(ros::TimerEvent const &event)
Definition: ros_cpu_state.cc:166
RosCpuStateToRapid(const std::string &sub_topic, const std::string &pub_topic, const ros::NodeHandle &nh, const unsigned int queue_size=10)
Definition: ros_cpu_state.cc:22
uint8_t state
Definition: signal_lights.h:90
Definition: ros_cpu_state.h:41