3 from sensor_msgs.msg
import LaserScan
6 t = rospy.Time(data.header.stamp.secs, data.header.stamp.nsecs)
7 t+=rospy.Duration.from_sec(offset)
11 if __name__ ==
'__main__':
12 rospy.init_node(
'republish_scan', anonymous=
True)
13 pub = rospy.Publisher(
'base_scan_t', LaserScan, queue_size=1)
14 offset = rospy.get_param(
'~offset', 0.0)
15 rospy.Subscriber(
"base_scan", LaserScan, callback)