dynamic_graph_manager
ros_time.hh
Go to the documentation of this file.
1 
10 #ifndef DYNAMIC_GRAPH_ROS_TIME_HH
11 #define DYNAMIC_GRAPH_ROS_TIME_HH
12 
13 #include <dynamic-graph/entity.h>
14 #include <dynamic-graph/signal.h>
15 #include <ros/time.h>
16 #include <boost/date_time/posix_time/posix_time_types.hpp>
17 
18 namespace dynamic_graph
19 {
20 class RosTime : public dynamicgraph::Entity
21 {
22  DYNAMIC_GRAPH_ENTITY_DECL();
23 
24 public:
25  dynamicgraph::Signal<boost::posix_time::ptime, int> now_;
26  RosTime(const std::string& name);
27  virtual std::string getDocString() const;
28 
29 protected:
30  boost::posix_time::ptime& update(boost::posix_time::ptime& time,
31  const int& t);
32 
33 private:
34  static const std::string docstring_;
35 }; // class RosTime
36 
37 } // namespace dynamic_graph
38 
39 #endif // DYNAMIC_GRAPH_ROS_TIME_HH
this is this package namespace in order to avoid naming conflict
Definition: device.hh:22
Definition: ros_time.hh:20