Skip to content

Commit

Permalink
DOCS-1260: Fix code sample (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Oct 12, 2023
1 parent 5d2d9dd commit 3ce2507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/services/motion/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ robot = await connect()

motion = MotionClient.from_robot(robot=robot, name="builtin")
gripperName = Gripper.get_resource_name("my_gripper")
gripperPoseInWorld = await robot.get_pose(component_name=gripperName,
destination_frame="world")
gripperPoseInWorld = await motion.get_pose(component_name=gripperName,
destination_frame="world")
```

For a more complicated example, take the same scenario and get the pose of the same gripper with respect to an object situated at a location (100, 200, 0) relative to the "world" frame:
Expand Down

0 comments on commit 3ce2507

Please sign in to comment.