Skip to content

Commit c333c2a

Browse files
committed
Revert "Add orientation_file property and lock translational coords if only tracking orientations"
This reverts commit ca8ccdc.
1 parent ca8ccdc commit c333c2a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

OpenSim/Tools/InverseKinematicsTool.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ void InverseKinematicsTool::constructProperties()
8989
constructProperty_accuracy(1e-5);
9090
constructProperty_IKTaskSet(IKTaskSet());
9191
constructProperty_marker_file("");
92-
constructProperty_orientations_file("");
9392
constructProperty_coordinate_file("");
9493
Array<double> range{Infinity, 2};
9594
range[0] = -Infinity; // Make range -Infinity to Infinity unless limited by
@@ -145,17 +144,6 @@ bool InverseKinematicsTool::run()
145144
kinematicsReporter->setInDegrees(true);
146145
_model->addAnalysis(kinematicsReporter);
147146

148-
// if only tracking IMU data, we'll lock translational coords
149-
if (get_marker_file().empty() && !get_orientations_file().empty()) {
150-
auto coordinates = _model->updComponentList<Coordinate>();
151-
152-
// lock coordinates that are translational since they cannot be
153-
for (auto& coord : coordinates) {
154-
if (coord.getMotionType() == Coordinate::Translational) {
155-
coord.setDefaultLocked(true);
156-
}
157-
}
158-
}
159147
cout<<"Running tool "<<getName()<<".\n";
160148

161149
// Get the trial name to label data written to files

OpenSim/Tools/InverseKinematicsTool.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ OpenSim_DECLARE_CONCRETE_OBJECT(InverseKinematicsTool, Tool);
8787
OpenSim_DECLARE_PROPERTY(marker_file, std::string,
8888
"Name/path to a .trc or .sto file of type Vec3 of marker data.");
8989

90-
OpenSim_DECLARE_PROPERTY(orientations_file, std::string,
91-
"Name/path to a .sto file of sensor frame orientations as quaternions.");
92-
9390

9491
OpenSim_DECLARE_PROPERTY(coordinate_file, std::string,
9592
"The name of the storage (.sto or .mot) file containing the time "

0 commit comments

Comments
 (0)