![]() |
Visual Servoing Platform version 3.7.0
|
Functions | |
| save_depth_M_color_file (prefix_data, scene, camera_name_color, camera_name_depth) | |
| get_object_pose_in_world (object_name) | |
| get_camera_pose (camera_name, object_name) | |
| save_pose (filename, pose) | |
| save_color_camera_pose (prefix, scene, camera_name, object_name) | |
| get_intrinsics (camera_name) | |
| save_intrinsics (filename, camera_name, w, h, p_x, p_y, u_0, v_0) | |
Variables | |
| str | camera_name_color = "Camera_L" |
| str | camera_name_depth = "Camera_R" |
| str | object_name = "teabox" |
| str | prefix_data = "/tmp/teabox/" |
| str | prefix_pose = prefix_data + "ground-truth/" |
| str | prefix_color_images = prefix_data + "color/" |
| str | prefix_depth_images = prefix_data + "depth/" |
| str | images_suffix = "JPEG" |
| scene = bpy.context.scene | |
| color_w | |
| color_h | |
| color_p_x | |
| color_p_y | |
| color_u_0 | |
| color_v_0 | |
| str | filename_color_intrinsics = prefix_data + camera_name_color + ".xml" |
| depth_w | |
| depth_h | |
| depth_p_x | |
| depth_p_y | |
| depth_u_0 | |
| depth_v_0 | |
| str | filename_depth_intrinsics = prefix_data + camera_name_depth + ".xml" |
| filepath | |
| file_format | |
| write_still | |
| tuple | filename_color_R = (prefix_color_images + '%04d' + "_R" + scene.render.file_extension) % step |
| tuple | filename_depth_L = (prefix_depth_images + 'Image%04d' + "_L" + ".exr") % step |
| get_camera_pose_teabox.get_camera_pose | ( | camera_name, | |
| object_name ) |
Return the object pose in the camera frame as an homogenous matrices.
| [in] | camera_name | String corresponding to the name of the camera to consider. |
| [in] | object_name | String corresponding to the name of the object to consider. |
Definition at line 36 of file get_camera_pose_teabox.py.
References get_object_pose_in_world().
Referenced by save_color_camera_pose().
| get_camera_pose_teabox.get_intrinsics | ( | camera_name | ) |
Save camera intrinsics in xml.
| [in] | camera_name | String corresponding to the name of the camera to consider. |
Definition at line 109 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.get_object_pose_in_world | ( | object_name | ) |
Return the object pose in the world frame w_M_o.
| [in] | object_name | String corresponding to the name of the object to consider. |
Definition at line 23 of file get_camera_pose_teabox.py.
Referenced by get_camera_pose(), and save_depth_M_color_file().
| get_camera_pose_teabox.save_color_camera_pose | ( | prefix, | |
| scene, | |||
| camera_name, | |||
| object_name ) |
Save homogeneous transformation from camera to object frames (cMo).
| [in] | prefix | String corresponding to the folder name that will contain the saved poses. |
| [in] | scene | Scene handler. |
| [in] | camera_name | String corresponding to the name of the camera to consider. |
| [in] | object_name | String corresponding to the name of the object to track. |
Definition at line 95 of file get_camera_pose_teabox.py.
References get_camera_pose(), and save_pose().
| get_camera_pose_teabox.save_depth_M_color_file | ( | prefix_data, | |
| scene, | |||
| camera_name_color, | |||
| camera_name_depth ) |
Save depth_M_color.txt file.
| [in] | prefix_data | String corresponding to the folder where depth_M_color.txt file has to be saved. |
| [in] | scene | Scene handler. |
| [in] | camera_name_color | String corresponding to the name of the color camera to consider. |
| [in] | camera_name_depth | String corresponding to the name of the depth camera to consider. |
Definition at line 6 of file get_camera_pose_teabox.py.
References get_object_pose_in_world(), and save_pose().
| get_camera_pose_teabox.save_intrinsics | ( | filename, | |
| camera_name, | |||
| w, | |||
| h, | |||
| p_x, | |||
| p_y, | |||
| u_0, | |||
| v_0 ) |
Save camera intrinsics in xml.
| [in] | filename | Name of the file that will contain the intrinsics in xml format. |
| [in] | camera_name | Camera name. |
| [in] | w,h | Image size. |
| [in] | p_x,p_y | Ratio between the focal length and the size of the pixel. |
| [in] | u_0,v_0 | Coordinates of the principal point. |
Definition at line 144 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.save_pose | ( | filename, | |
| pose ) |
Save pose in a .txt file.
| [in] | filename | String corresponding to the file name that will contain the saved pose. |
| [in] | pose | Object pose to save as a 4-by-4 homogeneous matrix. |
Definition at line 61 of file get_camera_pose_teabox.py.
Referenced by save_color_camera_pose(), and save_depth_M_color_file().
| str get_camera_pose_teabox.camera_name_color = "Camera_L" |
Definition at line 174 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.camera_name_depth = "Camera_R" |
Definition at line 175 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.color_h |
Definition at line 195 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.color_p_x |
Definition at line 195 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.color_p_y |
Definition at line 195 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.color_u_0 |
Definition at line 195 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.color_v_0 |
Definition at line 195 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.color_w |
Definition at line 195 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.depth_h |
Definition at line 199 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.depth_p_x |
Definition at line 199 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.depth_p_y |
Definition at line 199 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.depth_u_0 |
Definition at line 199 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.depth_v_0 |
Definition at line 199 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.depth_w |
Definition at line 199 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.file_format |
Definition at line 211 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.filename_color_intrinsics = prefix_data + camera_name_color + ".xml" |
Definition at line 196 of file get_camera_pose_teabox.py.
| tuple get_camera_pose_teabox.filename_color_R = (prefix_color_images + '%04d' + "_R" + scene.render.file_extension) % step |
Definition at line 219 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.filename_depth_intrinsics = prefix_data + camera_name_depth + ".xml" |
Definition at line 200 of file get_camera_pose_teabox.py.
| tuple get_camera_pose_teabox.filename_depth_L = (prefix_depth_images + 'Image%04d' + "_L" + ".exr") % step |
Definition at line 226 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.filepath |
Definition at line 210 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.images_suffix = "JPEG" |
Definition at line 181 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.object_name = "teabox" |
Definition at line 176 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.prefix_color_images = prefix_data + "color/" |
Definition at line 179 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.prefix_data = "/tmp/teabox/" |
Definition at line 177 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.prefix_depth_images = prefix_data + "depth/" |
Definition at line 180 of file get_camera_pose_teabox.py.
| str get_camera_pose_teabox.prefix_pose = prefix_data + "ground-truth/" |
Definition at line 178 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.scene = bpy.context.scene |
Definition at line 191 of file get_camera_pose_teabox.py.
| get_camera_pose_teabox.write_still |
Definition at line 212 of file get_camera_pose_teabox.py.