gz/physics/Shape.hh
Go to the documentation of this file.
Definition: gz/physics/Shape.hh:247
virtual uint16_t GetCollisionFilterMask(const Identity &_shapeID) const =0
virtual void RemoveCollisionFilterMask(const Identity &_shapeID)=0
virtual void SetCollisionFilterMask(const Identity &_shapeID, const uint16_t _mask)=0
Definition: gz/physics/Shape.hh:230
void SetCollisionFilterMask(const uint16_t _mask)
Set the collision filter bitmask of this shape.
uint16_t GetCollisionFilterMask() const
Get the collision filter bitmask of this shape.
void RemoveCollisionFilterMask()
Removes the collision filter bitmask from this shape.
Definition: gz/physics/Shape.hh:227
Definition: gz/physics/Feature.hh:93
Placeholder class in case a Feature does not define its own Shape API.
Definition: gz/physics/Feature.hh:86
This class defines the concept of a Feature. It should be inherited by classes that define some plugi...
Definition: gz/physics/Feature.hh:36
Container for specifying Frame IDs. We do not want to use a generic integer type for this,...
Definition: gz/physics/FrameID.hh:47
Base class for the API of a Frame. This will be inherited by any objects that are able to express Fra...
Definition: gz/physics/FrameSemantics.hh:101
Definition: gz/physics/Shape.hh:163
virtual AlignedBoxType GetShapeAxisAlignedBoundingBox(const Identity &_shape) const =0
Implementation function for querying the axis-aligned bounding box of a shape.
typename FromPolicy< PolicyT >::template Use< AlignedBox > AlignedBoxType
Definition: gz/physics/Shape.hh:165
Definition: gz/physics/Shape.hh:144
AlignedBoxType GetAxisAlignedBoundingBox(const FrameID &_referenceFrame=FrameID::World()) const
Get the axis aligned bounding box for the shape in the requested frame.
typename FromPolicy< PolicyT >::template Use< AlignedBox > AlignedBoxType
Definition: gz/physics/Shape.hh:146
This feature retrieves the shape's axis aligned bounding box in the requested frame....
Definition: gz/physics/Shape.hh:140
Definition: gz/physics/Shape.hh:124
virtual Scalar GetFrictionCoefficient(const Identity &_shape0, const Identity &_shape1) const =0
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:125
virtual Scalar GetRestitutionCoefficient(const Identity &_shape0, const Identity &_shape1) const =0
Definition: gz/physics/Shape.hh:99
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:100
Scalar GetRestitutionCoefficient(const BaseShapePtr< PolicyT > &_other) const
Get the coefficient of restitution between this shape and another shape.
Scalar GetFrictionCoefficient(const BaseShapePtr< PolicyT > &_other) const
Get the coefficient of friction between this shape and another shape.
This feature retrieves the shape collision properties such as the shape surface friction coefficient ...
Definition: gz/physics/Shape.hh:96
Definition: gz/physics/Shape.hh:285
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:286
virtual Scalar GetShapeFrictionPyramidPrimarySlipCompliance(const Identity &_shapeID) const =0
virtual Scalar GetShapeFrictionPyramidSecondarySlipCompliance(const Identity &_shapeID) const =0
Definition: gz/physics/Shape.hh:267
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:268
Scalar GetPrimarySlipCompliance() const
Get the slip compliance for the first friction direction of a friction pyramid model.
Scalar GetSecondarySlipCompliance() const
Get the slip compliance for the second friction direction of a friction pyramid model.
This feature retrieves the shape's slip compliance of the first and second friction direction in the ...
Definition: gz/physics/Shape.hh:264
Definition: gz/physics/Shape.hh:52
typename FromPolicy< PolicyT >::template Use< Pose > PoseType
Definition: gz/physics/Shape.hh:54
virtual PoseType GetShapeRelativeTransform(const Identity &_shapeID) const =0
Definition: gz/physics/Shape.hh:38
PoseType GetRelativeTransform() const
Get the transform from the Link frame to the frame of this Shape.
typename FromPolicy< PolicyT >::template Use< Pose > PoseType
Definition: gz/physics/Shape.hh:40
This feature retrieves the shape kinematic properties such as the the relative transform from the the...
Definition: gz/physics/Shape.hh:35
Definition: gz/physics/Shape.hh:209
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:210
virtual void SetShapeRestitutionCoefficient(const Identity &_shape0, const Identity &_shape1, Scalar _value)=0
virtual void SetShapeFrictionCoefficient(const Identity &_shape0, const Identity &_shape1, Scalar _value)=0
Definition: gz/physics/Shape.hh:183
void SetFrictionCoefficient(const BaseShapePtr< PolicyT > &_other, Scalar _value)
Set the coefficient of friction between this shape and another shape.
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:184
void SetRestitutionCoefficient(const BaseShapePtr< PolicyT > &_other, Scalar _value)
Set the coefficient of restitution between this shape and another shape.
This feature sets the Shape collision properties such as the Shape surface friction coefficient and r...
Definition: gz/physics/Shape.hh:180
Definition: gz/physics/Shape.hh:326
virtual bool SetShapeFrictionPyramidSecondarySlipCompliance(const Identity &_shapeID, Scalar _value)=0
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:327
virtual bool SetShapeFrictionPyramidPrimarySlipCompliance(const Identity &_shapeID, Scalar _value)=0
Definition: gz/physics/Shape.hh:304
typename PolicyT::Scalar Scalar
Definition: gz/physics/Shape.hh:305
bool SetPrimarySlipCompliance(Scalar _value)
Set the slip compliance for the first friction direction of a friction pyramid model.
bool SetSecondarySlipCompliance(Scalar _value)
Set the slip compliance for the second friction direction of a friction pyramid model.
This feature sets the Shape's slip compliance of the first and second friction direction in the frict...
Definition: gz/physics/Shape.hh:301
Definition: gz/physics/Shape.hh:82
virtual void SetShapeRelativeTransform(const Identity &_shapeID, const PoseType &_pose)=0
typename FromPolicy< PolicyT >::template Use< Pose > PoseType
Definition: gz/physics/Shape.hh:84
Definition: gz/physics/Shape.hh:67
typename FromPolicy< PolicyT >::template Use< Pose > PoseType
Definition: gz/physics/Shape.hh:69
void SetRelativeTransform(const PoseType &_pose)
Set the transform from the Link frame to the frame of this Shape.
Definition: gz/physics/Shape.hh:64
If your feature is known to require any other features, then you should have your feature class inher...
Definition: gz/physics/FeatureList.hh:118
This struct is used to conveniently convert from a policy to a geometric type. Example usage:
Definition: gz/physics/Geometry.hh:78