Public Member Functions | List of all members
sdf::v12::Friction Class Reference

Friction information for a surface. More...

#include <Surface.hh>

Public Member Functions

 Friction ()
 Default constructor. More...
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load. More...
 
Errors Load (ElementPtr _sdf)
 Load the friction based on a element pointer. More...
 
const sdf::ODEODE () const
 Get the associated ODE object. More...
 
void SetODE (const sdf::ODE &_ode)
 Set the associated ODE object. More...
 

Detailed Description

Friction information for a surface.

Constructor & Destructor Documentation

◆ Friction()

sdf::v12::Friction::Friction ( )

Default constructor.

Member Function Documentation

◆ Element()

sdf::ElementPtr sdf::v12::Friction::Element ( ) const

Get a pointer to the SDF element that was used during load.

Returns
SDF element pointer. The value will be nullptr if Load has not been called.

◆ Load()

Errors sdf::v12::Friction::Load ( ElementPtr  _sdf)

Load the friction based on a element pointer.

This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.

Parameters
[in]_sdfThe SDF Element pointer
Returns
Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.

◆ ODE()

const sdf::ODE* sdf::v12::Friction::ODE ( ) const

Get the associated ODE object.

Returns
Pointer to the associated ODE object, nullptr if the Surface doesn't contain a ODE element.

◆ SetODE()

void sdf::v12::Friction::SetODE ( const sdf::ODE _ode)

Set the associated ODE object.

Parameters
[in]_odeThe ODE object.

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