gz/physics/GetContacts.hh
Go to the documentation of this file.
The CompositeData class allows arbitrary data structures to be composed together, copied,...
Definition: gz/physics/CompositeData.hh:44
Definition: gz/physics/Feature.hh:93
Placeholder class in case a Feature does not define its own World API.
Definition: gz/physics/Feature.hh:50
Definition: gz/physics/GetContacts.hh:81
typename PolicyT::Scalar Scalar
Definition: gz/physics/GetContacts.hh:82
typename FromPolicy< PolicyT >::template Use< Vector > VectorType
Definition: gz/physics/GetContacts.hh:84
virtual std::vector< ContactInternal > GetContactsFromLastStep(const Identity &_worldID) const =0
Definition: gz/physics/GetContacts.hh:54
typename PolicyT::Scalar Scalar
Definition: gz/physics/GetContacts.hh:55
typename FromPolicy< PolicyT >::template Use< Vector > VectorType
Definition: gz/physics/GetContacts.hh:58
std::vector< Contact > GetContactsFromLastStep() const
Get contacts generated in the previous simulation step.
ShapePtr< PolicyT, FeaturesT > ShapePtrType
Definition: gz/physics/GetContacts.hh:56
GetContactsFromLastStepFeature is a feature for retrieving the list of contacts generated in the prev...
Definition: gz/physics/GetContacts.hh:35
The SpecifyData class allows you to form combinations of data specifications. In other words,...
Definition: gz/physics/SpecifyData.hh:265
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
Definition: gz/physics/GetContacts.hh:38
typename PolicyT::Scalar Scalar
Definition: gz/physics/GetContacts.hh:39
typename FromPolicy< PolicyT >::template Use< Vector > VectorType
Definition: gz/physics/GetContacts.hh:40
Scalar depth
The penetration depth.
Definition: gz/physics/GetContacts.hh:49
VectorType normal
The normal of the force acting on the first body expressed in the world frame.
Definition: gz/physics/GetContacts.hh:47
VectorType force
The contact force acting on the first body expressed in the world frame.
Definition: gz/physics/GetContacts.hh:44
Definition: gz/physics/GetContacts.hh:88
CompositeData extraData
Extra data related to contact.
Definition: gz/physics/GetContacts.hh:96
VectorType point
The point of contact expressed in the world frame.
Definition: gz/physics/GetContacts.hh:94
Identity collision2
Identity of the second body.
Definition: gz/physics/GetContacts.hh:92
Identity collision1
Identity of the first body.
Definition: gz/physics/GetContacts.hh:90
Definition: gz/physics/GetContacts.hh:62
ShapePtrType collision1
Collision shape of the first body.
Definition: gz/physics/GetContacts.hh:64
VectorType point
The point of contact expressed in the world frame.
Definition: gz/physics/GetContacts.hh:68
ShapePtrType collision2
Collision shape of the second body.
Definition: gz/physics/GetContacts.hh:66