MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / create_camera_actor

Function create_camera_actor

mapping/demo/view.py:139–148  ·  view source on GitHub ↗

build open3d camera polydata

(g, scale=0.05)

Source from the content-addressed store, hash-verified

137
138
139def 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
151def create_camera_actor2(g, pose, scale=0.05):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected