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__':
relay_camera_info.RelayCameraInfo.callback
def callback(self, info)
Definition: relay_camera_info.py:13
relay_camera_info.RelayCameraInfo.__init__
def __init__(self)
Definition: relay_camera_info.py:6
relay_camera_info.RelayCameraInfo
Definition: relay_camera_info.py:5
relay_camera_info.RelayCameraInfo.pub
pub
Definition: relay_camera_info.py:9
relay_camera_info.RelayCameraInfo.frame_id
frame_id
Definition: relay_camera_info.py:8


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Aug 2 2024 08:50:14