Updated for rtabmap 0.19.1. Added VINS example in euroc_datasets.launch

This commit is contained in:
matlabbe
2019-03-18 20:47:13 -04:00
parent 6bd420bc54
commit ab23e651bf
8 changed files with 91 additions and 15 deletions
+4
View File
@@ -21,7 +21,10 @@ def yaml_to_CameraInfo(yaml_fname):
def callback(image):
global publisher
global camera_info_msg
global frameId
camera_info_msg.header = image.header
if frameId:
camera_info_msg.header.frame_id = frameId
publisher.publish(camera_info_msg)
if __name__ == "__main__":
@@ -33,6 +36,7 @@ if __name__ == "__main__":
print 'yaml_path parameter should be set to path of the calibration file!'
sys.exit(1)
frameId = rospy.get_param('~frame_id', '')
camera_info_msg = yaml_to_CameraInfo(yaml_path)
publisher = rospy.Publisher("camera_info", CameraInfo, queue_size=1)