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 bf6787d commit d114516Copy full SHA for d114516
depth_image_proc/test/test_register.py
@@ -68,7 +68,6 @@ def test_register(self):
68
rospy.loginfo(depth)
69
70
depth_msg = self.cv_bridge.cv2_to_imgmsg(depth, "32FC1")
71
- ci_msg.header.stamp = rospy.Time.now()
72
rgb_ci_msg = copy.deepcopy(ci_msg)
73
rgb_ci_msg.header.frame_id = "station2"
74
depth_msg.header = ci_msg.header
@@ -90,6 +89,10 @@ def test_register(self):
90
89
self.count = 0
91
rospy.loginfo("publishing depth and ci, wait for callbacks")
92
for i in range(4):
+ stamp = rospy.Time.now()
93
+ ci_msg.header.stamp = stamp
94
+ rgb_ci_msg.header.stamp = stamp
95
+ depth_msg.header.stamp = stamp
96
self.depth_image_pub.publish(depth_msg)
97
self.depth_ci_pub.publish(ci_msg)
98
self.rgb_ci_pub.publish(rgb_ci_msg)
0 commit comments