File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
OpenSim/Simulation/OpenSense Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Model OpenSenseUtilities::calibrateModelFromOrientations(
123
123
const string& modelCalibrationPoseFile,
124
124
const string& calibrationOrientationsFile,
125
125
const std::string& baseImuName,
126
- const SimTK::CoordinateAxis& baseHeadingAxis ,
126
+ const SimTK::CoordinateDirection& baseHeadingDirection ,
127
127
bool visualizeCalibratedModel)
128
128
{
129
129
Model model (modelCalibrationPoseFile);
@@ -135,7 +135,7 @@ Model OpenSenseUtilities::calibrateModelFromOrientations(
135
135
136
136
TimeSeriesTable_<SimTK::Rotation> orientationsData =
137
137
OpenSenseUtilities::convertQuaternionsToRotations (quatTable,
138
- startEnd, baseImuName, baseHeadingAxis );
138
+ startEnd, baseImuName, baseHeadingDirection );
139
139
140
140
std::cout << " Loaded orientations as quaternions from "
141
141
<< calibrationOrientationsFile << std::endl;
Original file line number Diff line number Diff line change @@ -70,8 +70,9 @@ namespace OpenSim {
70
70
to account for the heading difference between the sensor
71
71
data and the forward direction of the model. Leave blank
72
72
if no heading correction is to be applied.
73
- baseHeadingAxis: The axis of the base IMU that corresponds to its
74
- heading direction. Options are SimTK::X/Y/ZAxis
73
+ baseHeadingDirection: The axis of the base IMU that corresponds to its
74
+ heading direction. Options are SimTK::X/Y/ZAxis, along with
75
+ direction of +1/-1
75
76
Assumptions about the inputs:
76
77
1) the model default pose is the same as the pose used to collect
77
78
calibration data
@@ -84,7 +85,7 @@ namespace OpenSim {
84
85
const std::string& modelCalibrationPoseFile,
85
86
const std::string& calibrationOrientationsFile,
86
87
const std::string& baseImuName = " " ,
87
- const SimTK::CoordinateAxis& baseHeadingAxis = SimTK::ZAxis,
88
+ const SimTK::CoordinateDirection& baseHeadingDirection = SimTK::ZAxis,
88
89
bool visualizeCalibratedModel =true );
89
90
/* *
90
91
* Create Orientations as a TimeSeriesTable based on passed in markerFile
You can’t perform that action at this time.
0 commit comments