Skip to content

Commit

Permalink
Adding some non-zero weight to tracking markers in initial IK, changi…
Browse files Browse the repository at this point in the history
…ng the trajectory rendering APIs to handle TRCs
  • Loading branch information
keenon committed Jun 3, 2022
1 parent dba6a9d commit ca72298
Show file tree
Hide file tree
Showing 22 changed files with 936 additions and 522 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.1
0.8.2
10 changes: 1 addition & 9 deletions dart/biomechanics/C3DLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@

#include <Eigen/Dense>

#include "dart/biomechanics/ForcePlate.hpp"
#include "dart/dynamics/Skeleton.hpp"
#include "dart/server/GUIWebsocketServer.hpp"

namespace dart {

namespace biomechanics {

struct ForcePlate
{
Eigen::Vector3s worldOrigin;
std::vector<Eigen::Vector3s> corners;
std::vector<Eigen::Vector3s> centersOfPressure;
std::vector<Eigen::Vector3s> moments;
std::vector<Eigen::Vector3s> forces;
};

/// This holds marker trajectory information from an OpenSim TRC file
struct C3D
{
Expand Down
26 changes: 26 additions & 0 deletions dart/biomechanics/ForcePlate.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef DART_BIOMECH_FORCE_PLATE_HPP_
#define DART_BIOMECH_FORCE_PLATE_HPP_

#include <vector>

#include <Eigen/Dense>

#include "dart/math/MathTypes.hpp"

namespace dart {

namespace biomechanics {

struct ForcePlate
{
Eigen::Vector3s worldOrigin;
std::vector<Eigen::Vector3s> corners;
std::vector<Eigen::Vector3s> centersOfPressure;
std::vector<Eigen::Vector3s> moments;
std::vector<Eigen::Vector3s> forces;
};

} // namespace biomechanics
} // namespace dart

#endif
Loading

0 comments on commit ca72298

Please sign in to comment.