-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
How hard would it be to implement a function like the following?
GetTransformRelativeTo(multibodyGraph g, multiBodyConfig c, string objectname, string baseObjectName)
In V-REP I often use a function just like the above to get the transform from the frame of any object to any other. I'd love to have an equivalent of RBDyn, do you think this might be easy to implement?
Here is the equivalent V-REP function I use grl.getTransformBetweenHandles:
--- Get the pose of one object relative to another
---
--- @param objectpositionHandle The Object you want to get the position of
--- @param relativeToBaseFrameHandle The object or frame the position should be defined in, nil for world
--- @return position,orientation a 3 vector and quaternion value pair
grl.getTransformBetweenHandles=function(objectPositionHandle, relativeToBaseFrameHandle)
local p=simGetObjectPosition(objectPositionHandle,relativeToBaseFrameHandle)
local o=simGetObjectQuaternion(objectPositionHandle,relativeToBaseFrameHandle)
return p,o
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels