launchFusedLinkWrenchAdd#
Fully qualified name: isaacsim::physics::newton::tensors::launchFusedLinkWrenchAdd
- bool isaacsim::physics::newton::tensors::launchFusedLinkWrenchAdd(
- const float *force,
- const float *torque,
- const float *position,
- float *bodyForce,
- const int *articulationIndices,
- const int *linkMapping,
- const wp::transform *bodyTransforms,
- const wp::vec3 *bodyCentersOfMass,
- int numArticulations,
- int maxLinks,
- bool isGlobal,
- bool hasForce,
- bool hasTorque,
- bool hasPosition,
- void *stream = nullptr,
Transform and accumulate forces and torques applied to body or articulation links.
Local inputs are rotated into the world frame. When an application position is supplied, the resulting
(position - centerOfMass) x forcemoment is added to the direct torque.- Parameters:
force – Device force input, or
nullptrwhenhasForceis false.torque – Device torque input, or
nullptrwhenhasTorqueis false.position – Device application-position input, or
nullptrwhenhasPositionis false.bodyForce – Device destination spatial-force buffer, accumulated via atomic add.
articulationIndices – Optional device articulation/body-view index array.
linkMapping – Device mapping from view link slots to model body indices.
bodyTransforms – Device model body transforms.
bodyCentersOfMass – Device model body center-of-mass offsets.
numArticulations – Number of selected articulations or rigid bodies.
maxLinks – Maximum links per articulation; use one for rigid bodies.
isGlobal – Whether input vectors and positions are in the world frame.
hasForce – Whether
forceis present.hasTorque – Whether
torqueis present.hasPosition – Whether
positionis present.stream – CUDA stream.
- Returns:
trueif the launch succeeded.