libalmath  1.14.5
almath/types/alpositionandvelocity.h
00001 /*
00002  * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
00003  * Use of this source code is governed by a BSD-style license that can be
00004  * found in the COPYING file.
00005  */
00006 
00007 
00008 #pragma once
00009 #ifndef _LIBALMATH_ALMATH_TYPES_ALPOSITIONANDVELOCITY_H_
00010 #define _LIBALMATH_ALMATH_TYPES_ALPOSITIONANDVELOCITY_H_
00011 
00012 namespace AL {
00013   namespace Math {
00014 
00021     struct PositionAndVelocity
00022     {
00024       float q;
00026       float dq;
00027 
00030 
00041 
00042 
00043 
00044       PositionAndVelocity(
00045           const float pq = 0.0f,
00046           const float pdq = 0.0f);
00047 
00058       bool isNear(
00059         const PositionAndVelocity& pDat2,
00060         const float&               pEpsilon=0.0001f) const;
00061     };
00062 
00063   }
00064 }
00065 #endif  // _LIBALMATH_ALMATH_TYPES_ALPOSITIONANDVELOCITY_H_
 All Classes Namespaces Functions Variables