removeCapsule(___,idx) removes
the collision capsule at the specified index idx of the rigid body,
in addition to the input arguments from the previous syntax.
Use the getCapsules function to see if the end effector, "tool0", has any collision capsules. Because tool0 is just a frame, it has no collision mesh to approximate as a collision capsule.
capsulesTool = getCapsules(capsIRB,"tool0")
capsulesTool =
1×0 empty cell array
Add a capsule to tool0, at a position 0.15 meters along the x-axis, with a radius of 0.15 and a length of 0.
ans =
collisionCapsule with properties:
Radius: 0.1500
Length: 0
Pose: [4×4 double]
Remove the capsule from the base link. Then, reduce the collision capsule size of tool0, and move it -0.05 meters from the previous position along the x-axis.
Capsule approximation of a rigid body tree, specified as a
capsuleApproximation object.
Name of the rigid body to remove the capsule from, specified as a string scalar or
character vector. The rigid body must exist in the rigidBodyTree object
of the RigidBodyTree property of
capsapprox.
Example: "EndEffectorTool"
Data Types: char | string
Index of the collision capsule to remove, specified as a positive integer.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.