Gazebo Physics

API Reference

8.0.0
FrameData< Scalar, Dim > Struct Template Reference

The FrameData struct fully describes the kinematic state of a Frame with "Dim" dimensions and "Scalar" precision. Dim is allowed to be 2 or 3, and Scalar is allowed to be double or float. We provide the following fully qualified types: More...

#include <FrameData.hh>

Public Types

using AngularVector = AngularVector< Scalar, Dim >
 
using LinearVector = LinearVector< Scalar, Dim >
 
using Pose = Pose< Scalar, Dim >
 

Public Member Functions

 FrameData ()
 Constructor. This will initialize the transform with identity and all velocity and acceleration vectors to zero.
 
void SetToZero ()
 Set the transform to identity and all velocity and acceleration vectors to zero.
 

Public Attributes

AngularVector angularAcceleration
 The current angular acceleration of the frame.
 
AngularVector angularVelocity
 The current angular velocity of the frame.
 
LinearVector linearAcceleration
 The current linear acceleration of the frame.
 
LinearVector linearVelocity
 The current linear velocity of the frame.
 
Pose pose
 The current SE3 transformation of the frame.
 

Detailed Description

template<typename Scalar, std::size_t Dim>
struct gz::physics::FrameData< Scalar, Dim >

The FrameData struct fully describes the kinematic state of a Frame with "Dim" dimensions and "Scalar" precision. Dim is allowed to be 2 or 3, and Scalar is allowed to be double or float. We provide the following fully qualified types:

FrameData2d – 2 dimensional frame with double precision FrameData2f – 2 dimensional frame with float precision FrameData3d – 3 dimensional frame with double precision FrameData3f – 3 dimensional frame with float precision

The frame of reference for this data is dependent on the context in which it is used. For FrameData which explicitly expresses its frame of reference, see RelativeFrameData3.

Member Typedef Documentation

◆ AngularVector

template<typename Scalar , std::size_t Dim>
using AngularVector = AngularVector<Scalar, Dim>

◆ LinearVector

template<typename Scalar , std::size_t Dim>
using LinearVector = LinearVector<Scalar, Dim>

◆ Pose

template<typename Scalar , std::size_t Dim>
using Pose = Pose<Scalar, Dim>

Constructor & Destructor Documentation

◆ FrameData()

template<typename Scalar , std::size_t Dim>
FrameData ( )

Constructor. This will initialize the transform with identity and all velocity and acceleration vectors to zero.

Member Function Documentation

◆ SetToZero()

template<typename Scalar , std::size_t Dim>
void SetToZero ( )

Set the transform to identity and all velocity and acceleration vectors to zero.

Member Data Documentation

◆ angularAcceleration

template<typename Scalar , std::size_t Dim>
AngularVector angularAcceleration

The current angular acceleration of the frame.

Referenced by gz::physics::operator<<().

◆ angularVelocity

template<typename Scalar , std::size_t Dim>
AngularVector angularVelocity

The current angular velocity of the frame.

Referenced by gz::physics::operator<<().

◆ linearAcceleration

template<typename Scalar , std::size_t Dim>
LinearVector linearAcceleration

The current linear acceleration of the frame.

Referenced by gz::physics::operator<<().

◆ linearVelocity

template<typename Scalar , std::size_t Dim>
LinearVector linearVelocity

The current linear velocity of the frame.

Referenced by gz::physics::operator<<().

◆ pose

template<typename Scalar , std::size_t Dim>
Pose pose

The current SE3 transformation of the frame.

Referenced by gz::physics::operator<<().


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