Skip to content

Commit

Permalink
Update test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbianco committed Aug 25, 2023
1 parent 7505e0f commit 0dad1ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion OpenSim/Moco/Test/testMocoInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,9 @@ void testSlidingMass(const std::string& transcriptionScheme) {

// Speed is a piecewise linear function and force is a piecewise
// constant (bang-bang) function. The speed and force are not
// continuous at t = 1.
// continuous at t = 1. Trapezoidal collocation happens to avoid the
// discrepancies between the direct collocation solutions and the actual
// solution at the discontinuity, but other schemes do not.
double expectedSpeed = t < half ? t : 2.0 - t;
double expectedForce = t < half ? 10 : -10;
if (t < half-0.05 || t > half+0.05) {
Expand Down
2 changes: 1 addition & 1 deletion OpenSim/Sandbox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OpenSimCopySharedTestFiles(gait10dof18musc_subject01.osim)
foreach(exec_file ${TO_COMPILE})
get_filename_component(_target_name ${exec_file} NAME_WE)
add_executable(${_target_name} EXCLUDE_FROM_ALL ${exec_file})
target_link_libraries(${_target_name} osimTools osimMoco)
target_link_libraries(${_target_name} osimTools)
set_target_properties(${_target_name} PROPERTIES
FOLDER "Future sandbox"
)
Expand Down
3 changes: 2 additions & 1 deletion OpenSim/Sandbox/Moco/sandboxSandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include <Moco/osimMoco.h>

using namespace OpenSim;

int main() {
// TODO Logger::setLevel(Logger::Level::Debug);
MocoTrack track;
Expand All @@ -33,4 +35,3 @@ int main() {
MocoSolution solution = track.solve();
return EXIT_SUCCESS;
}

0 comments on commit 0dad1ba

Please sign in to comment.