#! /usr/bin/env python
import rospy
rospy.init_node('h')
print(rospy.Time.now()) => 0
**Prints zero? Here is the context**
1. Kinetic
1. rosparam get /use_sim_time -> true
$ rostopic info /clock
Type: rosgraph_msgs/Clock
Publishers:
* /gazebo (http://10.0.0.95:36787/)
Subscribers:
* /rosout (http://10.0.0.95:45435/)
* /gazebo (http://10.0.0.95:36787/)
* /gazebo_gui (http://10.0.0.95:43597/)
↧