35 AngularAccelerationVector3<ValuesT_, ValueT_, ExpressedInT_>,
36 AccelerationVector3<ValuesT_, ValueT_, ExpressedInT_>> {
56 template <
typename AngularAccelerationOtherT_,
typename AccelerationOtherT_>
58 SpatialAcceleration(AngularAccelerationOtherT_&& angularAcceleration, AccelerationOtherT_&& acceleration)
59 : BaseT(std::forward<AngularAccelerationOtherT_>(angularAcceleration), std::forward<AccelerationOtherT_>(acceleration)) {}
69 typename PointVelocityT_,
typename ExpressedInVelocityT_>
71 const OffsetOtherT_& offset,
74 static_assert(internal::SameSpatialTagsExceptPoint<
SpatialAcceleration, std::remove_cvref_t<
decltype(velocity)>>::value);
91 template <
AnyTensor OffsetOtherT_,
typename MeasuredInVelocityT_,
typename FrameVelocityT_,
typename PointVelocityT_,
92 typename ExpressedInVelocityT_,
typename MeasuredInRelativeT_,
typename FrameRelativeT_,
typename PointRelativeT_,
93 typename ExpressedInRelativeT_,
typename MeasuredInAccelerationT_,
typename FrameAccelerationT_,
typename PointAccelerationT_,
94 typename ExpressedInAccelerationT_>
96 const OffsetOtherT_& offset,
100 const SpatialAcceleration<ValuesT_, ValueT_, MeasuredInAccelerationT_, FrameAccelerationT_, PointAccelerationT_,
101 ExpressedInAccelerationT_>& acceleration)
const {
102 static_assert(internal::SameSpatialTags<std::remove_cvref_t<
decltype(velocity)>, std::remove_cvref_t<
decltype(acceleration)>>::value);
103 static_assert(std::is_same_v<MeasuredInRelativeT_, FrameT_>,
"Adjacent frames do not match.");
104 static_assert(std::is_same_v<ExpressedInRelativeT_, ExpressedInT_>,
"Coordinate systems do not match.");
108 const auto& angularVelocityOfThisFrame = velocityOfThisFrame.
getRotational();
109 return {shifted.getRotational() + acceleration.getRotational() + angularVelocityOfThisFrame.crossProduct(velocity.
getRotational()),
110 shifted.getTranslational() + angularVelocityOfThisFrame.crossProduct(velocity.
getTranslational()) * ValueT_{2} +
111 acceleration.getTranslational()};
121template <
typename FromT_,
typename ToT_,
typename RotationT_,
typename TranslationT_,
template <
typename,
int,
int>
typename ValuesT_,
122 typename ValueT_,
typename MeasuredInT_,
typename FrameT_,
typename PointT_,
typename ExpressedInT_>
126 "The adjoint map of a rigid transformation maps spatial velocities and spatial forces. Shifting a spatial acceleration "
127 "needs the angular velocity: re-express it with transform() and shift() it.");
132template <
template <
typename,
int,
int>
typename ValuesT_,
typename ValueT_,
typename MeasuredInT_,
typename FrameT_,
typename PointT_,
133 typename ExpressedInT_,
typename NewExpressedInT_>
134struct WithExpressedIn<SpatialAcceleration<ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_>, NewExpressedInT_> {
135 using type = SpatialAcceleration<ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, NewExpressedInT_>;
140template <
template <
typename,
int,
int>
typename ValuesT_,
typename ValueT_,
typename MeasuredInT_,
typename FrameT_,
typename PointT_,
141 typename ExpressedInT_>
The spatial acceleration A_MBp_E of the frame B, measured in the frame M, about the point Bp,...
FrameT_ FrameT
The frame B whose motion it is.
SpatialAcceleration(AngularAccelerationOtherT_ &&angularAcceleration, AccelerationOtherT_ &&acceleration)
The spatial acceleration with the angular acceleration alpha_MB and the acceleration a_MBp,...
SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameRelativeT_, PointRelativeT_, ExpressedInT_ > composeWithMovingFrameAcceleration(const OffsetOtherT_ &offset, const SpatialVelocity< ValuesT_, ValueT_, MeasuredInVelocityT_, FrameVelocityT_, PointVelocityT_, ExpressedInVelocityT_ > &velocityOfThisFrame, const SpatialVelocity< ValuesT_, ValueT_, MeasuredInRelativeT_, FrameRelativeT_, PointRelativeT_, ExpressedInRelativeT_ > &velocity, const SpatialAcceleration< ValuesT_, ValueT_, MeasuredInAccelerationT_, FrameAccelerationT_, PointAccelerationT_, ExpressedInAccelerationT_ > &acceleration) const
The spatial acceleration A_MCq of the frame C, which moves relative to B, measured in M,...
SpatialAcceleration()=default
PointT_ PointT
The point Bp the spatial acceleration is about, which is fixed to B.
MeasuredInT_ MeasuredInT
The frame M the motion is measured in.
ExpressedInT_ ExpressedInT
The coordinate system E both parts are expressed in.
PositionVector3< ValuesT_, ValueT_, ExpressedInT_ > OffsetT
The position vector from one point to another, expressed in E, by which shift() shifts.
SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointOtherT_, ExpressedInT_ > shift(const OffsetOtherT_ &offset, const SpatialVelocity< ValuesT_, ValueT_, MeasuredInVelocityT_, FrameVelocityT_, PointVelocityT_, ExpressedInVelocityT_ > &velocity) const
The spatial acceleration A_MBq about another point Bq fixed to B, PointOtherT_, given the position ve...
wuzp::SpatialVector< SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ >, AngularAccelerationVector3< ValuesT_, ValueT_, ExpressedInT_ >, AccelerationVector3< ValuesT_, ValueT_, ExpressedInT_ > >::getTranslational const TranslationalT & getTranslational() const &
wuzp::SpatialVector< SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ >, AngularAccelerationVector3< ValuesT_, ValueT_, ExpressedInT_ >, AccelerationVector3< ValuesT_, ValueT_, ExpressedInT_ > >::getRotational const RotationalT & getRotational() const &
wuzp::SpatialVector< SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ >, AngularAccelerationVector3< ValuesT_, ValueT_, ExpressedInT_ >, AccelerationVector3< ValuesT_, ValueT_, ExpressedInT_ > >::SpatialVector SpatialVector(const SpatialVector &)=default
The spatial velocity (twist) V_MBp_E of the frame B, measured in the frame M, about the point Bp,...
Any tensor: a specialization of Tensor, including points, vectors and their aliases.
The alias template ValueMatrix<ValueT_, RowsV_, ColsV_> of any value matrix backend,...
A coordinate system with the Euclidean metric, the default, e.g. CoordinateSystem<World>: the coordin...
AccelerationVector< 3, ValuesT_, ValueT_, CoordinateSystemT_ > AccelerationVector3
auto accelerationOfBodyFixedPoint(const AccelerationT_ &acceleration, const AngularAccelerationT_ &angularAcceleration, const AngularVelocityT_ &angularVelocity, const OffsetT_ &offset)
The acceleration a_Q = a_P + alpha x p_PQ + w x (w x p_PQ) of a point Q fixed to a rigid body,...
PositionVector< 3, ValuesT_, ValueT_, CoordinateSystemT_ > PositionVector3
auto adjoint(const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > &, const SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ > &)
Rejected with a message: the adjoint map of a rigid transformation maps spatial velocities and spatia...
False for every type, so that a static_assert on it fails only when the template that names it is ins...