Skip to content

Commit 40ddbb7

Browse files
authored
DOCS-3603: Fix get_pose example (viamrobotics#861)
1 parent 9e8d4a2 commit 40ddbb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/viam/services/motion/motion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def move(
4747
technique allows for planning and moving the frame itself to the ``destination``. To do so, simply create a resource name with
4848
originating ReferenceFrame's name. Then pass in the resource name into ``component_name``. Ex::
4949
50-
resource_name = Arm.get_resource_name("externalFrame")
50+
resource_name = Gripper.get_resource_name("externalFrame")
5151
success = await MotionServiceClient.move(resource_name, ...)
5252
5353
::
@@ -347,11 +347,11 @@ async def get_pose(
347347
348348
::
349349
350-
# Note that the example uses the ``Arm`` class, but any component class that inherits from ``ComponentBase`` will work
351-
# (``Base``, ``Gripper``, etc).
350+
# Note that the example uses the ``Gripper`` class, but any component class that inherits from ``ComponentBase`` will work
351+
# (``Arm``, ``Base``, etc).
352352
353353
# Create a `component_name`:
354-
component_name = Arm.get_resource_name("arm")
354+
component_name = Gripper.get_resource_name("my_gripper")
355355
356356
from viam.components.gripper import Gripper
357357
from viam.services.motion import MotionClient

0 commit comments

Comments
 (0)