本文整理汇总了Python中pymvg.camera_model.CameraModel.load_camera_from_ROS_tf方法的典型用法代码示例。如果您正苦于以下问题:Python CameraModel.load_camera_from_ROS_tf方法的具体用法?Python CameraModel.load_camera_from_ROS_tf怎么用?Python CameraModel.load_camera_from_ROS_tf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pymvg.camera_model.CameraModel
的用法示例。
在下文中一共展示了CameraModel.load_camera_from_ROS_tf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: check_roundtrip_ros_tf
# 需要导入模块: from pymvg.camera_model import CameraModel [as 别名]
# 或者: from pymvg.camera_model.CameraModel import load_camera_from_ROS_tf [as 别名]
def check_roundtrip_ros_tf(cam_opts):
cam1 = _build_test_camera(**cam_opts)
translation, rotation = cam1.get_ROS_tf()
i = cam1.get_intrinsics_as_bunch()
cam2 = CameraModel.load_camera_from_ROS_tf( translation=translation,
rotation=rotation,
intrinsics = i,
name = cam1.name)
assert cam1==cam2
示例2: new_data
# 需要导入模块: from pymvg.camera_model import CameraModel [as 别名]
# 或者: from pymvg.camera_model.CameraModel import load_camera_from_ROS_tf [as 别名]
def new_data(self):
with self._lock:
if (self.translation is None or
self.rotation is None or
self.intrinsics is None):
return
newcam = CameraModel.load_camera_from_ROS_tf( translation=self.translation,
rotation=self.rotation,
intrinsics=self.intrinsics,
name=self.get_frame_id(),
)
self.cam = newcam
self.draw()