(rig_camera: pymap.RigCamera)
return obj
Write a rig camera to a json object
Write a rig camera to a json object
Write a rig camera to a json object
def rig_camera_to_json(rig_camera: pymap.RigCamera) -> Dict[str, Any]:
    """
    Write a rig camera to a json object
    """
    obj = {
        "rotation": list(rig_camera.pose.rotation),
        "translation": list(rig_camera.pose.translation),
    }
    return obj
def rig_camera_to_json ( rig_camera : pymap . RigCamera ) -> Dict [ str , Any ] : obj = { "rotation" : list ( rig_camera . pose . rotation ) , "translation" : list ( rig_camera . pose . translation ) , } return obj