Show collision geometry
show( shows the collision geometry in
the current figure at its current pose. The function automatically generates the
Show Collision Geometry
Create a cylinder collision geometry. The cylinder has a length of 3 meters and a radius of 1 meter.
cyl = collisionCylinder(1,3);
Show the cylinder.
Show the cylinder in a new figure, and return the patch object that represents the cylinder. Change the cylinder color to cyan by changing the RGB value of the
FaceColor field in the patch object. Hide the edges by setting
figure [~,patchObj] = show(cyl); patchObj.FaceColor = [0 1 1]; patchObj.EdgeColor = 'none';
geom — Collision geometry
collisionBox object |
collisionCapsule object |
collisionCylinder object |
collisionMesh object |
Collision geometry to show, specified as one of these objects:
AX — Axes on which to plot collision geometry
Axes on which to plot the collision geometry, specified as an
ax — Axes displaying collision geometry
Axes displaying the collision geometry, returned as an
object. For more information, see Axes Properties.
patchobj — Graphic object
Graphic object that represents the collision geometry, returned as a
Patch object. For more information, see Patch Properties.
Introduced in R2019b