gz/physics/ContactProperties.hh
Go to the documentation of this file.
std::optional< typename PolicyT::Scalar > secondarySlipCompliance
Force-dependent slip coefficient along the 2nd friction direction.
Definition: gz/physics/ContactProperties.hh:69
virtual bool RemoveContactPropertiesCallback(const Identity &_worldID, const std::string &_callbackID)=0
Remove the callback.
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 gets filled by the simulator and contains various properties of a contact joint (surface,...
Definition: gz/physics/ContactProperties.hh:46
STL class.
std::optional< typename PolicyT::Scalar > rollingFrictionCoeff
Coefficient of rolling friction along the 1st friction direction.
Definition: gz/physics/ContactProperties.hh:55
std::optional< typename PolicyT::Scalar > errorReductionParameter
Joint error reduction parameter. This is the fraction of the joint error that will be attempted to be...
Definition: gz/physics/ContactProperties.hh:93
Definition: gz/physics/ContactProperties.hh:108
Definition: gz/physics/ContactProperties.hh:143
std::optional< typename PolicyT::Scalar > frictionCoeff
Coefficient of friction along the 1st friction direction.
Definition: gz/physics/ContactProperties.hh:49
std::optional< typename PolicyT::Scalar > restitutionCoeff
Defines the bounciness of the contact. 0 is not bouncy. Values between 0 and 1 are allowed.
Definition: gz/physics/ContactProperties.hh:73
typename GetContactsFromLastStepFeature ::World< PolicyT, FeaturesT >::ShapePtrType ShapePtrType
Definition: gz/physics/ContactProperties.hh:111
std::optional< typename FromPolicy< PolicyT >::template Use< Vector > > contactSurfaceMotionVelocity
Desired velocity of the colliding bodies in the contact point. Setting this to non-zero asks the phys...
Definition: gz/physics/ContactProperties.hh:88
ignition::physics::SetContactPropertiesCallbackFeature::ContactSurfaceParams::secondaryFrictionCoeff
std::optional< typename PolicyT::Scalar > secondaryFrictionCoeff
Coefficient of friction along the 2nd friction direction.
Definition: gz/physics/ContactProperties.hh:52
std::optional< typename PolicyT::Scalar > secondaryRollingFrictionCoeff
Coefficient of rolling friction along the 2nd friction direction.
Definition: gz/physics/ContactProperties.hh:58
GetContactsFromLastStepFeature is a feature for retrieving the list of contacts generated in the prev...
Definition: gz/physics/GetContacts.hh:33
std::optional< typename PolicyT::Scalar > slipCompliance
Force-dependent slip coefficient along the 1st friction direction.
Definition: gz/physics/ContactProperties.hh:65
bool RemoveContactPropertiesCallback(const std::string &_callbackID)
Remove the callback.
typename GetContactsFromLastStepFeature ::Implementation< PolicyT >::ContactInternal ContactImpl
Definition: gz/physics/ContactProperties.hh:146
Definition: gz/physics/Feature.hh:92
std::optional< typename FromPolicy< PolicyT >::template Use< Vector > > firstFrictionalDirection
The first frictional direction. It should be perpendicular to the contact normal. The second friction...
Definition: gz/physics/ContactProperties.hh:79
std::optional< typename PolicyT::Scalar > maxErrorAllowance
Maximum joint error for which no error reduction is performed.
Definition: gz/physics/ContactProperties.hh:99
Placeholder class in case a Feature does not define its own World API.
Definition: gz/physics/Feature.hh:49
void AddContactPropertiesCallback(const std::string &_callbackID, SurfaceParamsCallback _callback)
Add the callback.
std::optional< typename PolicyT::Scalar > maxErrorReductionVelocity
Maximum velocity that can be used to reduce joint error.
Definition: gz/physics/ContactProperties.hh:96
ignition::physics::SetContactPropertiesCallbackFeature::ContactSurfaceParams::torsionalFrictionCoeff
std::optional< typename PolicyT::Scalar > torsionalFrictionCoeff
Coefficient of torsional friction.
Definition: gz/physics/ContactProperties.hh:61
SetContactPropertiesCallbackFeature is a feature for setting the properties of a contact after it is ...
Definition: gz/physics/ContactProperties.hh:37
std::optional< typename PolicyT::Scalar > constraintForceMixing
Constraint force mixing. This should be a non-negative number. If greater than 0, this number is adde...
Definition: gz/physics/ContactProperties.hh:104
std::function< void(const typename GetContactsFromLastStepFeature::World< PolicyT, FeaturesT >::Contact &, size_t, ContactSurfaceParams< PolicyT > &) > SurfaceParamsCallback
This callback is called for every detected contact point and allows customizing properties of the con...
Definition: gz/physics/ContactProperties.hh:131
ignition::physics::SetContactPropertiesCallbackFeature::Implementation::AddContactPropertiesCallback
virtual void AddContactPropertiesCallback(const Identity &_worldID, const std::string &_callbackID, SurfaceParamsCallback _callback)=0
Add the callback.
std::function< void(const ContactImpl &, size_t, ContactSurfaceParams< PolicyT > &) > SurfaceParamsCallback
Definition: gz/physics/ContactProperties.hh:150