I need a time while running the simulation, but in my code returns zero time.
print rospy.get_time(); #output 0
print rospy.Time.now(); #output 0.0
but i see the time in terminal when i run **rostopic echo /clock**
Am i doing anything wrong while reading time?
↧