wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
SpatialVector.hpp File Reference
#include <ostream>
#include <type_traits>
#include <utility>
#include "wuzp/core/concepts.hpp"
#include "wuzp/core/traits.hpp"
#include "wuzp/trafo/PassiveProperRigidTransformationTemplate.hpp"
#include "wuzp/trafo/PassiveSpatialRotation.hpp"
#include "wuzp/trafo/PassiveTranslation.hpp"
#include "wuzp/trafo/traits.hpp"

Go to the source code of this file.

Classes

class  wuzp::SpatialVector< DerivedT_, RotationalT_, TranslationalT_ >
 The base class of the spatial vectors SpatialVelocity, SpatialAcceleration and SpatialForce: a rotational and a translational part, two three-dimensional vectors expressed in the same coordinate system, the rotational part first, like the spatial vectors of Drake (https://drake.mit.edu/doxygen_cxx/group__multibody__spatial__vectors.html), Modern Robotics (Lynch and Park, Cambridge University Press, 2017, sections 3.3.2 and 3.4) and Featherstone (Rigid Body Dynamics Algorithms, Springer, 2008). More...
struct  wuzp::TransformationTraits< PassiveSpatialRotation< ValuesT_, ValueT_, FromT_, ToT_, 3 >, SpatialVectorT_ >
struct  wuzp::TransformationTraits< PassiveTranslation< ValuesT_, DimensionV_, ValueT_, FromT_, ToT_, UnitsT_... >, SpatialVectorT_ >

Namespaces

namespace  wuzp

Concepts

concept  wuzp::AnySpatialVector
 A spatial vector of wuzp, i.e. a type that derives from SpatialVector: SpatialVelocity, SpatialAcceleration or SpatialForce.

Functions

template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_>
bool wuzp::operator== (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs)
 Whether two spatial vectors with the same tags are equal: both their parts are equal.
template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_>
bool wuzp::operator!= (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs)
 Whether two spatial vectors with the same tags differ: one of their parts differs.
template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_>
LhsT_ wuzp::operator+ (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs)
 The sum of two spatial vectors with the same tags, part by part, e.g. of two spatial forces on the same body about the same point.
template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_>
LhsT_ wuzp::operator- (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs)
 The difference of two spatial vectors with the same tags, part by part.
template<typename DerivedT_, typename RotationalT_, typename TranslationalT_>
std::ostream & wuzp::operator<< (std::ostream &lhs, const SpatialVector< DerivedT_, RotationalT_, TranslationalT_ > &rhs)
 Prints the rotational part, then the translational part.