File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -356,18 +356,15 @@ async def get_pose(
356356 # Note that the example uses the ``Gripper`` class, but any component class that inherits from ``ComponentBase`` will work
357357 # (``Arm``, ``Base``, etc).
358358
359- # Create a `component_name`:
360- component_name = "my_gripper"
361-
362359 from viam.components.gripper import Gripper
363360 from viam.services.motion import MotionClient
364361
365362 # Assume that the connect function is written and will return a valid machine.
366- robot = await connect()
363+ machine = await connect()
367364
368365 motion = MotionClient.from_robot(robot=machine, name="builtin")
369366 gripperPoseInWorld = await motion.get_pose(component_name="my_gripper",
370- destination_frame="world")
367+ destination_frame="world")
371368
372369 Args:
373370 component_name (str): Name of a component on a robot.
You can’t perform that action at this time.
0 commit comments