Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ITEM.POSEWRT() NOT WORKING AS EXPECTED WITH ROBOT
#1
When calling PoseWrt() between two reference frames, if one frame is attached to a robot, then a TargetReachError is thrown.

The attached .py and .rdk files are able to reliably reproduce this problem.

Note: I believe that even when no target reach error occurs, PoseWrt() does not return the expected coordinates when the calling Item is nested under a robot. I was actually investigating that issue when I uncovered the TargetReachError problem.


Update: I found a workaround (below). This works great for now, but I would like to go back to using the API in the future.
Code:
def pose_wrt(child, parent):
childPose = child.PoseAbs()
parentPose = parent.PoseAbs()
return parentPose.inv() * childPose


Attached Files
.rdk poseWrtBug.rdk(Size: 2.18 MB / Downloads: 55)
.py bugReport.py(Size: 274 bytes / Downloads: 49)


Messages In This Thread
ITEM.POSEWRT() NOT WORKING AS EXPECTED WITH ROBOT - bysig.johnnson- 02-23-2023, 01:08 AM



Users browsing this thread:
1 Guest(s)