Isaac Sim Version
4.5.0
4.5.0
Hi, to get and set the TargetVelocity for a Drive component of a RevoluteJoint prim, the standard approach is to use the USD and Physics APIs provided by Isaac Sim. The TargetVelocity is typically accessed via the Drive API associated with the joint, specifically the "angular"
drive for revolute joints.
"angular"
for revolute joints.UsdPhysics.DriveAPI
object to get or set the parameters like TargetVelocity, Stiffness, and Damping.from pxr import Usd, UsdPhysics
# Get the prim for your joint
joint_prim = stage.GetPrimAtPath("/path/to/your/joint")
# Get the angular drive API associated with this joint prim
drive_api = UsdPhysics.DriveAPI.Get(joint_prim, "angular")
# To set target velocity (in radians per second)
drive_api.GetTargetVelocityAttr().Set(desired_velocity)
# To get current target velocity
current_velocity = drive_api.GetTargetVelocityAttr().Get()
Awesome, Thank you.