File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ async def get_point_cloud(
107
107
import numpy as np
108
108
import open3d as o3d
109
109
110
+ my_camera = Camera.from_robot(robot=machine, name="my_camera")
111
+
110
112
data, _ = await my_camera.get_point_cloud()
111
113
112
114
# write the point cloud into a temporary file
Original file line number Diff line number Diff line change @@ -276,6 +276,8 @@ async def trigger_event(
276
276
"""Directly send an Event (such as a button press) from external code
277
277
278
278
::
279
+ my_controller = Controller.from_robot(
280
+ robot=machine, name="my_controller")
279
281
280
282
# Get your controller from the machine.
281
283
my_controller = Controller.from_robot(
Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ async def stop_plan(
238
238
239
239
::
240
240
241
+ motion = MotionClient.from_robot(robot=machine, name="builtin")
242
+
241
243
# Assuming a `move_on_globe()` started the execution
242
244
# Stop the base component which was instructed to move by `move_on_globe()`
243
245
# or `move_on_map()`
You can’t perform that action at this time.
0 commit comments