1#ifndef BIORBD_RIGIDBODY_MARKERS_H
2#define BIORBD_RIGIDBODY_MARKERS_H
4#include "biorbdConfig.h"
9namespace BIORBD_NAMESPACE {
130 bool removeAxis =
true);
144 bool updateKin =
true,
145 bool removeAxis =
true);
160 bool removeAxis =
true);
174 bool updateKin =
true,
175 bool removeAxis =
true);
183 std::vector<NodeSegment>
markers(
bool removeAxis =
true)
const;
191 std::vector<NodeSegment>
markers(
193 bool removeAxis =
true)
const;
202 std::vector<NodeSegment>
markers(
205 bool removeAxis =
true);
214 std::vector<NodeSegment>
markers(
216 bool updateKin =
true,
217 bool removeAxis =
true);
233 bool removeAxis =
true);
248 bool updateKin =
true,
249 bool removeAxis =
true);
265 bool removeAxis =
true);
280 bool updateKin =
true,
281 bool removeAxis =
true);
295 bool removeAxis =
true);
308 bool updateKin =
true,
309 bool removeAxis =
true);
323 bool removeAxis =
true);
336 bool updateKin =
true,
337 bool removeAxis =
true);
355 bool removeAxis =
true);
372 bool updateKin =
true,
373 bool removeAxis =
true);
389 bool removeAxis =
true);
404 bool updateKin =
true,
405 bool removeAxis =
true);
418 bool removeAxis =
true);
430 bool updateKin =
true,
431 bool removeAxis =
true);
460 bool removeAxis =
true);
472 bool updateKin =
true,
473 bool removeAxis =
true);
504 bool removeAxis =
true);
518 bool updateKin =
true,
519 bool removeAxis =
true);
532 size_t nbMarkers(
size_t idxSegment)
const;
563 bool removeAxis =
true);
574 bool updateKin =
true,
575 bool removeAxis =
true);
587 bool removeAxis =
true);
598 bool updateKin =
true,
599 bool removeAxis =
true);
615 bool removeAxis =
true);
630 bool updateKin =
true,
631 bool removeAxis =
true);
633#ifndef BIORBD_USE_CASADI_MATH
643 const std::vector<NodeSegment> &
markers,
646 bool removeAxis =
true);
661 bool lookForTechnical,
664 std::shared_ptr<std::vector<NodeSegment>>
m_marks;
Class GeneralizedAcceleration.
Class GeneralizedCoordinates.
Class GeneralizedVelocity.
This is the core of the musculoskeletal model in biorbd.
const NodeSegment & marker(size_t idx) const
Return a marker of index idx in the marker set.
std::vector< NodeSegment > anatomicalMarkers(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, bool removeAxis=true)
Return all the anatomical markers at a given Q in the global reference frame.
NodeSegment markerVelocity(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, size_t idx, bool removeAxis=true)
Return the linear velocity of a marker.
std::vector< NodeSegment > technicalMarkersAxesRemoved() const
Return the technical markers in their respective parent reference frame.
void setMarker(size_t index, const NodeSegment &pos)
Change the values of a specific marker without changing other parameters.
std::vector< NodeSegment > markersVelocity(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, bool removeAxis=true)
Return the linear velocity of all the markers.
NodeSegment markerAngularVelocity(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, size_t idx, bool removeAxis=true)
Return the angular velocity of a marker.
void addMarker(const NodeSegment &pos, const utils::String &name, const utils::String &parentName, bool technical, bool anatomical, const utils::String &axesToRemove, int id=-1)
Add a marker to the set.
std::vector< utils::String > anatomicalMarkerNames() const
Return the names of all the anatomical markers.
std::vector< NodeSegment > anatomicalMarkersAxesRemoved() const
Return the anatomical markers in their respective parent reference frame.
Markers()
Construct a marker set.
bool inverseKinematics(const std::vector< NodeSegment > &markers, const GeneralizedCoordinates &Qinit, GeneralizedCoordinates &Q, bool removeAxis=true)
Performs an inverse kinematics.
std::vector< utils::String > technicalMarkerNames() const
Return the names of all the technical markers.
std::vector< NodeSegment > technicalMarkers(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, bool removeAxis=true)
Return all the technical markers at a given Q in the global reference frame.
std::vector< NodeSegment > markersAngularVelocity(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, bool removeAxis=true)
Return the angular velocity of all the markers.
std::vector< NodeSegment > markers(bool removeAxis=true) const
Return a copy of all the markers in their respective parent reference frame.
std::vector< utils::Matrix > markersJacobian(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, bool removeAxis=true)
Return the jacobian of the markers.
std::vector< NodeSegment > segmentMarkers(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, size_t idx, bool removeAxis=true)
Return all the markers of the segment idx at a given Q in the global reference frame.
Markers DeepCopy() const
Deep copy of the markers.
std::vector< utils::String > markerNames() const
Return the names of all the markers.
size_t nbTechnicalMarkers()
Return the number of technical markers.
size_t nbAnatomicalMarkers()
Return the number of anatomical markers.
size_t nbMarkers() const
Return the number of markers.
std::shared_ptr< std::vector< NodeSegment > > m_marks
The markers.
NodeSegment markerAcceleration(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, const rigidbody::GeneralizedAcceleration &Qddot, size_t idx, bool removeAxis=true)
Return the acceleration of a marker.
std::vector< utils::Matrix > technicalMarkersJacobian(rigidbody::Joints &updatedModel, const GeneralizedCoordinates &Q, bool removeAxis=true)
Return the jacobian of the technical markers.
NodeSegment markerAxesRemoved(size_t idx) const
Return a marker of index idx in the marker set with the axes removed.
A point attached to a segment, generally speaking a skin marker.
A wrapper for the Eigen::MatrixXd.
Wrapper around the std::string class with augmented functionality.
Wrapper around Eigen Vector3d and attach it to a parent.