本文整理汇总了Python中sensor_msgs.msg.CameraInfo.P[3]方法的典型用法代码示例。如果您正苦于以下问题:Python CameraInfo.P[3]方法的具体用法?Python CameraInfo.P[3]怎么用?Python CameraInfo.P[3]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sensor_msgs.msg.CameraInfo
的用法示例。
在下文中一共展示了CameraInfo.P[3]方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: fill_set_camera_info
# 需要导入模块: from sensor_msgs.msg import CameraInfo [as 别名]
# 或者: from sensor_msgs.msg.CameraInfo import P[3] [as 别名]
def fill_set_camera_info():
cam_info = CameraInfo()
cam_info.header.frame_id = "/CameraTop_frame"
cam_info.header.stamp = rospy.Time.now()
cam_info.P[0] = 640.0
cam_info.P[1] = 0.0
cam_info.P[2] = 320.0
cam_info.P[3] = 0
cam_info.P[4] = 0.0
cam_info.P[5] = 373.31
cam_info.P[6] = 120.0
cam_info.P[7] = 0.0
cam_info.P[8] = 0.0
cam_info.P[9] = 0.0
cam_info.P[10] = 1.0
cam_info.P[11] = 0.0
setCameraInfo = SetCameraInfo()
setCameraInfo.camera_info = cam_info
return setCameraInfo