L1GWS Class Reference

A class to build an L1 GWS. More...

#include <gws.h>

Inheritance diagram for L1GWS:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int build (std::vector< int > useDimensions=ALL_DIMENSIONS)
 Build the GWS using individual contact wrenches.
virtual const char * getType ()
 L1GWS (Grasp *g)

Static Public Member Functions

static const char * getClassType ()

Static Private Attributes

static const char * type = "L1 Norm"
 Name of this type of GWS.

Detailed Description

A class to build an L1 GWS.

A unit grasp wrench space constructed using the L1 norm of the grasp vector (i.e. The sum magnitude of all contact normal forces is 1).

Definition at line 138 of file gws.h.


Constructor & Destructor Documentation

L1GWS::L1GWS ( Grasp g  )  [inline]

Stub

Definition at line 146 of file gws.h.


Member Function Documentation

int L1GWS::build ( std::vector< int >  useDimensions = ALL_DIMENSIONS  )  [virtual]

Build the GWS using individual contact wrenches.

Builds an L1 GWS by simply taking the union of all the contact wrenches, and using these as the input for the convex hull operation (performed by qhull). The output of qhull is the list of equations of the hyperplanes that bound the hull as well as the hull area and hull volume. These are all saved within the GWS. Returns FAILURE or SUCCESS.

You can ask for the GWS to be built using only a subset of the 6 dimensions of force and torque normally available. These are, in this order:

fx, fy, fz, tx, ty, tz

If you want only a subset to be used, pass a vector of 6 ints with 1 for the dimensions you want or 0 for those that you do not want. For example, if you want a GWS that only uses fx, fy and tz, pass the following vector:

1, 1, 0, 0, 0, 1

If you want to use all 6 dimensions, pass the default value of GWS::ALL_DIMENSIONS.

Implements GWS.

Definition at line 562 of file gws.cpp.

static const char* L1GWS::getClassType (  )  [inline, static]

Returns the name of this type of GWS

Definition at line 152 of file gws.h.

virtual const char* L1GWS::getType (  )  [inline, virtual]

Returns the name of this type of GWS

Implements GWS.

Definition at line 155 of file gws.h.


Member Data Documentation

const char * L1GWS::type = "L1 Norm" [static, private]

Name of this type of GWS.

Definition at line 141 of file gws.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:22 2012