diff --git a/nodes/axis.py b/nodes/axis.py index 8ada4b9..2d0eba5 100755 --- a/nodes/axis.py +++ b/nodes/axis.py @@ -76,6 +76,7 @@ def publishFramesContinuously(self): self.findBoundary() self.getImage() self.publishMsg() + self.publishCameraInfoMsg() except: rospy.loginfo('Timed out while trying to get message.') break @@ -128,7 +129,7 @@ def publishMsg(self): def publishCameraInfoMsg(self): '''Publish camera info manager message''' cimsg = self.axis.cinfo.getCameraInfo() - cimsg.header.stamp = msg.header.stamp + cimsg.header.stamp = self.msg.header.stamp cimsg.header.frame_id = self.axis.frame_id cimsg.width = self.axis.width cimsg.height = self.axis.height