Go to the documentation of this file.
30 #ifndef _XPP_STATES_ENDEFFECTORS_H_
31 #define _XPP_STATES_ENDEFFECTORS_H_
75 void SetAll(
const T& value);
192 std::fill(ee_.begin(), ee_.end(), value);
224 std::vector<EndeffectorID>
227 std::vector<EndeffectorID> vec;
228 for (
int i=0; i<ee_.size(); ++i)
239 for (
auto i : GetEEsOrdered())
240 result.at(i) = ee_.at(i) - rhs.at(i);
250 for (
auto i : GetEEsOrdered())
251 result.
at(i) = ee_.at(i)/scalar;
256 template <
typename T>
260 stream << endeffectors.at(ee) <<
", ";
269 for (
auto ee : GetEEsOrdered()) {
270 if (ee_.at(ee) != other.at(ee))
const VectorXd GetByIndex(MotionDerivative deriv) const
Read either position, velocity of acceleration by index.
Endeffectors< T > EndeffectorsT
std::ostream & operator<<(std::ostream &stream, Endeffectors< T > endeffectors)
std::vector< EndeffectorID > GetEEsOrdered() const
std::deque< T > Container
bool operator!=(const Endeffectors &other) const
void SetAll(const T &value)
Sets each endeffector to the same value.
Data structure to assign values to each endeffector.
void SetCount(int n_ee)
Sets the number of endeffectors.
Endeffectors< Vector3d > Get(MotionDerivative deriv) const
Extract only either the pos, vel or acc from all endeffectors.
Bundles the position, velocity and acceleration of all endeffectors. as well as appending a Endeffect...
T & at(EndeffectorID ee)
Read/write access to the endeffector stored at index ee.
const EndeffectorsT operator-(const EndeffectorsT &rhs) const
const EndeffectorsT operator/(double scalar) const
virtual ~Endeffectors()=default
xpp_states
Author(s): Alexander W. Winkler
autogenerated on Wed Mar 2 2022 01:14:14