2 #include <boost/asio.hpp> 3 #include <boost/bind.hpp> 4 #include <boost/date_time/posix_time/posix_time.hpp> 7 #include <rosgraph_msgs/Clock.h> 18 t_ = (double)std::time(NULL);
27 rosgraph_msgs::Clock msg;
46 int main(
int argc,
char **argv)
53 nh.
param<
int>(
"/emulation_dt_ms", dt_ms, 10);
54 nh.
param<
double>(
"/emulation_time_factor", time_factor, 1.0);
56 boost::asio::io_service io;
void publish(const boost::shared_ptr< M > &message) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
EmulationClock(boost::asio::io_service &io, int dt_ms, double time_factor)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
boost::asio::deadline_timer timer_
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
#define ROS_DEBUG_STREAM(args)