The SpecifyData class allows you to form combinations of data specifications. In other words, you can freely mix invocations to RequireData and ExpectData. Example usage: More...
Detailed Description
template<typename... Specifications>
class gz::physics::SpecifyData< Specifications >
The SpecifyData class allows you to form combinations of data specifications. In other words, you can freely mix invocations to RequireData and ExpectData. Example usage:
This would define a CompositeData which is required to contain a DesiredPositionInput data structure and a DesiredVelocityInput data structure. It is also optimized for ExternalForceInput, ProximitySensorInput, and ForceTorqueSensorInput data structures, but they are optional. Whether a data structure is specified as expected or required, you will be able to get extremely high-speed access to it through an object that has the type of MyInputSpecifications.
Specifications can also be composed together. For example, if there is another specification like:
then you can combine these specifications:
Note that RequireData takes precedence over ExpectData, so ProximitySensorInput will be promoted to Required when the two specifications are combined.
The documentation for this class was generated from the following file: