parameters: (rig_camera: pymap.RigCamera)
return_statement: return obj
docstring: Write a rig camera to a json object
docstring_summary: Write a rig camera to a json object
docstring_tokens: Write a rig camera to a json object
function: 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
function_tokens: 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