Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DebugSubstance Class Reference

#include <substance.h>

Inheritance diagram for DebugSubstance:
Collaboration diagram for DebugSubstance:

Public Member Functions

 DebugSubstance ()
 
 DebugSubstance (float roughness, float slip, float hardness, float elasticity)
 
- Public Member Functions inherited from Substance
 Substance ()
 
 Substance (float roughness, float slip, float hardness, float elasticity)
 
void setCollisionCallback (CollisionCallback func, void *userdata)
 
void toDefaultSubstance ()
 
void toMetal (float roughness)
 very hard and elastic with slip roughness [0.1-1] More...
 
void toRubber (float hardness)
 high roughness, no slip, very elastic, hardness : [5-50] More...
 
void toPlastic (float roughness)
 medium slip, a bit elastic, medium hardness, roughness [0.5-2] More...
 
void toFoam (float _hardness)
 large slip, not elastic, low hardness [1-30], high roughness More...
 
void toSnow (float _slip)
 variable slip and roughness, not elastic, high hardness for solid snow slip = 1 <–> roughness=0.0, slip = 0 <–> roughnes=1.0 More...
 
void toNoContact ()
 set the collsion callback to ignores everything Usually it is better to use the "ignorePairs" from odeHandle but if this particular one substance should not collide with any other, this is easier. More...
 
void toAnisotropFriction (double ratio, const Axis &axis)
 enables anisotrop friction. More...
 

Static Protected Member Functions

static int dbg_output (dSurfaceParameters &params, GlobalData &globaldata, void *userdata, dContact *contacts, int numContacts, dGeomID o1, dGeomID o2, const Substance &s1, const Substance &s2)
 

Additional Inherited Members

- Static Public Member Functions inherited from Substance
static void getSurfaceParams (dSurfaceParameters &sp, const Substance &s1, const Substance &s2, double stepsize)
 Combination of two surfaces. More...
 
static void printSurfaceParams (const dSurfaceParameters &surfParams)
 
static Substance getDefaultSubstance ()
 default substance is plastic with roughness=0.8 More...
 
static Substance getMetal (float roughness)
 very hard and elastic with slip roughness [0.1-1] More...
 
static Substance getRubber (float hardness)
 high roughness, no slip, very elastic, hardness : [5-50] More...
 
static Substance getPlastic (float roughness)
 medium slip, a bit elastic, medium hardness, roughness [0.5-2] More...
 
static Substance getFoam (float _hardness)
 large slip, not elastic, low hardness [1-30], high roughness More...
 
static Substance getSnow (float _slip)
 variable slip and roughness [0-1], not elastic, high hardness for solid snow slip = 1 <–> roughness=0.0, slip = 0 <–> roughnes=1.0 More...
 
static Substance getNoContact ()
 
- Public Attributes inherited from Substance
float roughness
 
float slip
 
float hardness
 
float elasticity
 
CollisionCallback callback
 
void * userdata
 

Constructor & Destructor Documentation

DebugSubstance ( float  roughness,
float  slip,
float  hardness,
float  elasticity 
)

Member Function Documentation

int dbg_output ( dSurfaceParameters &  params,
GlobalData globaldata,
void *  userdata,
dContact *  contacts,
int  numContacts,
dGeomID  o1,
dGeomID  o2,
const Substance s1,
const Substance s2 
)
staticprotected

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