We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c6ac4 commit 0b14afeCopy full SHA for 0b14afe
depth_image_proc/test/test_register.py
@@ -65,7 +65,6 @@ def test_register(self):
65
rospy.loginfo(depth)
66
67
depth_msg = self.cv_bridge.cv2_to_imgmsg(depth, "32FC1")
68
- ci_msg.header.stamp = rospy.Time.now()
69
rgb_ci_msg = copy.deepcopy(ci_msg)
70
rgb_ci_msg.header.frame_id = "station2"
71
depth_msg.header = ci_msg.header
@@ -87,6 +86,10 @@ def test_register(self):
87
86
self.count = 0
88
rospy.loginfo("publishing depth and ci, wait for callbacks")
89
for i in range(4):
+ stamp = rospy.Time.now()
90
+ ci_msg.header.stamp = stamp
91
+ rgb_ci_msg.header.stamp = stamp
92
+ depth_msg.header.stamp = stamp
93
self.depth_image_pub.publish(depth_msg)
94
self.depth_ci_pub.publish(ci_msg)
95
self.rgb_ci_pub.publish(rgb_ci_msg)
0 commit comments