Libbarrett  1.2.4
Classes | Namespaces | Defines
include/barrett/units.h File Reference
#include <boost/tuple/tuple.hpp>
#include <Eigen/Geometry>
#include <barrett/math/matrix.h>

Go to the source code of this file.

Classes

struct  barrett::units::JointTorques< R >
struct  barrett::units::JointPositions< R >
struct  barrett::units::JointVelocities< R >
struct  barrett::units::JointAccelerations< R >
struct  barrett::units::CartesianForce
 Template metafunction yielding the 3-element math::Vector used to represent a Cartesian force. Result available in the nested type typedef. More...
struct  barrett::units::CartesianTorque
 Template metafunction yielding the 3-element math::Vector used to represent a Cartesian torque. Result available in the nested type typedef. More...
struct  barrett::units::CartesianPosition
 Template metafunction yielding the 3-element math::Vector used to represent a Cartesian position. Result available in the nested type typedef. More...
struct  barrett::units::CartesianVelocity
 Template metafunction yielding the 3-element math::Vector used to represent a Cartesian velocity. Result available in the nested type typedef. More...
struct  barrett::units::CartesianAcceleration
 Template metafunction yielding the 3-element math::Vector used to represent a Cartesian acceleration. Result available in the nested type typedef. More...

Namespaces

namespace  barrett::units
namespace  barrett

Defines

#define BARRETT_UNITS_FIXED_SIZE_TYPEDEFS
#define BARRETT_UNITS_TYPEDEFS(dimension)
#define BARRETT_UNITS_TEMPLATE_TYPEDEFS(dimension)

Detailed Description

Includes all members of the barrett::units namespace.

Date:
Oct 16, 2009
Author:
Dan Cody
See also:
barrett::units

Define Documentation

Value:
typedef ::barrett::units::CartesianForce::type cf_type;  \
        typedef ::barrett::units::CartesianTorque::type ct_type;  \
        typedef ::barrett::units::CartesianPosition::type cp_type;  \
        typedef ::barrett::units::CartesianVelocity::type cv_type;  \
        typedef ::barrett::units::CartesianAcceleration::type ca_type;  \
        typedef ::boost::tuple<cp_type, ::Eigen::Quaterniond> pose_type

Creates a standard set of typedefs in the local scope for the subset of built-in barrett::units that have a fixed size.

Many classes use this macro to define internal short-hand names for the barrett::units they use frequently.

The following typedefs are defined:

See also:
BARRETT_UNITS_TYPEDEFS
#define BARRETT_UNITS_TEMPLATE_TYPEDEFS (   dimension)
Value:
typedef typename ::barrett::math::Matrix<dimension,dimension> sqm_type;  \
        typedef typename ::barrett::math::Vector<dimension>::type v_type;  \
        typedef typename ::barrett::units::JointTorques<dimension>::type jt_type;  \
        typedef typename ::barrett::units::JointPositions<dimension>::type jp_type;  \
        typedef typename ::barrett::units::JointVelocities<dimension>::type jv_type;  \
        typedef typename ::barrett::units::JointAccelerations<dimension>::type ja_type;  \
        BARRETT_UNITS_FIXED_SIZE_TYPEDEFS

Used in place of BARRETT_UNITS_TYPEDEFS when dimension is dependent on a template parameter of the containing class.

C++ requires the use of the typename keyword under these conditions.

See also:
BARRETT_UNITS_TYPEDEFS
#define BARRETT_UNITS_TYPEDEFS (   dimension)
Value:
typedef ::barrett::math::Matrix<dimension,dimension> sqm_type;  \
        typedef ::barrett::math::Vector<dimension>::type v_type;  \
        typedef ::barrett::units::JointTorques<dimension>::type jt_type;  \
        typedef ::barrett::units::JointPositions<dimension>::type jp_type;  \
        typedef ::barrett::units::JointVelocities<dimension>::type jv_type;  \
        typedef ::barrett::units::JointAccelerations<dimension>::type ja_type;  \
        BARRETT_UNITS_FIXED_SIZE_TYPEDEFS

Creates a standard set of typedefs in the local scope for all built-in barrett::units.

Many classes use this macro to define internal short-hand names for the barrett::units they use frequently.

Parameters:
dimensionThis positive integer is used in the typedefs below as the template parameter for those types that require one.

The following typedefs are defined:

See also:
BARRETT_UNITS_TEMPLATE_TYPEDEFS
BARRETT_UNITS_FIXED_SIZE_TYPEDEFS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines