Skip to main content

Cylinder

A 3D cylinder shape that captures colliders with curvilinear geometric properties.

cylinder
ParameterTypeDescription
typestringThe Cylinder shape class
namestringA user-defined name of the shape
framestringThe coordinateshe frame this shape belongs to. Can either be world or robot frame
physicalbooleanTrue if the collision with this shape is phyiscal, else false
lengthfloatThe length of length of the cylinder
radiusfloatThe length of radius of the cylinder
localTransformisometry consisted of translation and rotationDefines the position and rotation of the shape relevant to the specific frame
let shape = {
type:'Cylinder',
name:'zone',
frame: 'world',
physical: false,
length:0.2,
radius:0.1,
localTransform: {translation:[0.0,0.0,0.0],rotation:[0.0,0.0,0.0,1.0]} // [x, y, z, w] ordering for quaternion
}