relay_camera_info.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 import rospy
3 from sensor_msgs.msg import CameraInfo
4 
6  def __init__(self):
7  rospy.init_node('relay_camera_info')
8  self.frame_id = rospy.get_param('~frame_id')
9  self.pub = rospy.Publisher("output", CameraInfo)
10  rospy.Subscriber("input", CameraInfo, self.callback)
11  rospy.spin()
12 
13  def callback(self, info):
14  info.header.frame_id = self.frame_id
15  self.pub.publish(info)
16 
17 if __name__ == '__main__':


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Sat Mar 20 2021 03:03:18