Gazebo Physics

API Reference

8.0.0
FromPolicy< PolicyT > Struct Template Reference

This struct is used to conveniently convert from a policy to a geometric type. Example usage: More...

#include <Geometry.hh>

Public Types

enum  { Dim = PolicyT::Dim }
 
using Scalar = typename PolicyT::Scalar
 
template<template< typename, std::size_t > class Type>
using Use = Type< Scalar, Dim >
 

Detailed Description

template<typename PolicyT>
struct gz::physics::FromPolicy< PolicyT >

This struct is used to conveniently convert from a policy to a geometric type. Example usage:

using AngularVector = FromPolicy<FeaturePolicy3d>::To<AngularVector>;

Member Typedef Documentation

◆ Scalar

template<typename PolicyT >
using Scalar = typename PolicyT::Scalar

◆ Use

template<typename PolicyT >
template<template< typename, std::size_t > class Type>
using Use = Type<Scalar, Dim>

Member Enumeration Documentation

◆ anonymous enum

Enumerator
Dim 

The documentation for this struct was generated from the following file: