build open3d camera polydata
(g, scale=0.05)
| 137 | |
| 138 | |
| 139 | def create_camera_actor(g, scale=0.05): |
| 140 | """build open3d camera polydata""" |
| 141 | camera_actor = o3d.geometry.LineSet( |
| 142 | points=o3d.utility.Vector3dVector(scale * CAM_POINTS), |
| 143 | lines=o3d.utility.Vector2iVector(CAM_LINES), |
| 144 | ) |
| 145 | |
| 146 | color = (g * 1.0, 0.5 * (1 - g), 0.9 * (1 - g)) |
| 147 | camera_actor.paint_uniform_color(color) |
| 148 | return camera_actor |
| 149 | |
| 150 | |
| 151 | def create_camera_actor2(g, pose, scale=0.05): |
nothing calls this directly
no outgoing calls
no test coverage detected