NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgRod::Config Struct Reference

#include <tgRod.h>

Public Member Functions

 Config (double r=0.5, double d=1.0, double f=1.0, double rf=0.0, double res=0.2)
 

Public Attributes

const double radius
 
const double density
 
const double friction
 
const double rollFriction
 
const double restitution
 

Detailed Description

Holds two public member variables, density and radius, describing a rod configuration. A constructor allows them to be set together and to default.

Definition at line 52 of file tgRod.h.

Constructor & Destructor Documentation

tgRod::Config::Config ( double  r = 0.5,
double  d = 1.0,
double  f = 1.0,
double  rf = 0.0,
double  res = 0.2 
)

Initialize with radius and density, which may default.

Parameters
[in]radiusthe rod's radius; must be non-negative
[in]densitythe rod's density; must be non-negative

Definition at line 38 of file tgRod.cpp.

Member Data Documentation

const double tgRod::Config::density

The rod's density; must be nonnegative.

Definition at line 71 of file tgRod.h.

const double tgRod::Config::friction

The rod's friction; must be greater than or equal to 0

Todo:
values greater than 1 seem to be useful for scaling, given NTRT 0.1. Investigate further

Definition at line 76 of file tgRod.h.

const double tgRod::Config::radius

The rod's radius; must be nonnegative.

Definition at line 68 of file tgRod.h.

const double tgRod::Config::restitution

The rod's coefficient of restitution; must be between 0 and 1 (inclusive).

Definition at line 84 of file tgRod.h.

const double tgRod::Config::rollFriction

The rod's rolling friction; must be greater than or equal to 0

Definition at line 80 of file tgRod.h.


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