Skip to content

Commit 4fc4a25

Browse files
authored
Update motion.py (#1011)
1 parent e2e8b1d commit 4fc4a25

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/viam/services/motion/motion.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)