February 2020
Intermediate to advanced
432 pages
10h 50m
English
In the msg_range.range field, we allocate the measured distance, and in the other field – msg_range.header.stamp – we allocate the current timestamp:
msg_range.range = read_distancemsg_range.header.stamp = rospy.Time.now()
The timestamp is obtained from the Time.now() method of the rospy library. In this way, we have a full record of the measurement.
Read now
Unlock full access