-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from Ondsel-Development/fixbranch
Fixbranch
- Loading branch information
Showing
19 changed files
with
369 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
.vs | ||
x64/ | ||
*.bak | ||
assembly.asmt | ||
|
||
build | ||
cmake-build-debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
#include <fstream> | ||
|
||
#include "ASMTRevRevJoint.h" | ||
#include "RevRevJoint.h" | ||
|
||
using namespace MbD; | ||
|
||
std::shared_ptr<Joint> MbD::ASMTRevRevJoint::mbdClassNew() | ||
{ | ||
return CREATE<RevRevJoint>::With(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "ASMTCompoundJoint.h" | ||
|
||
namespace MbD { | ||
class ASMTRevRevJoint : public ASMTCompoundJoint | ||
{ | ||
// | ||
public: | ||
std::shared_ptr<Joint> mbdClassNew() override; | ||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#include "RevRevJoint.h" | ||
#include "CREATE.h" | ||
#include "DistancexyConstraintIJ.h" | ||
#include "System.h" | ||
|
||
using namespace MbD; | ||
|
||
MbD::RevRevJoint::RevRevJoint() | ||
{ | ||
} | ||
|
||
MbD::RevRevJoint::RevRevJoint(const char* str) : CompoundJoint(str) | ||
{ | ||
} | ||
|
||
void MbD::RevRevJoint::initializeGlobally() | ||
{ | ||
if (constraints->empty()) | ||
{ | ||
auto distxyIJ = DistancexyConstraintIJ::With(frmI, frmJ); | ||
distxyIJ->setConstant(distanceIJ); | ||
addConstraint(distxyIJ); | ||
addConstraint(CREATE<TranslationConstraintIJ>::ConstraintWith(frmI, frmJ, 2)); | ||
addConstraint(CREATE<DirectionCosineConstraintIJ>::ConstraintWith(frmI, frmJ, 2, 0)); | ||
addConstraint(CREATE<DirectionCosineConstraintIJ>::ConstraintWith(frmI, frmJ, 2, 1)); | ||
this->root()->hasChanged = true; | ||
} | ||
else { | ||
CompoundJoint::initializeGlobally(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "CompoundJoint.h" | ||
|
||
namespace MbD { | ||
class RevRevJoint : public CompoundJoint | ||
{ | ||
// | ||
public: | ||
RevRevJoint(); | ||
RevRevJoint(const char* str); | ||
void initializeGlobally() override; | ||
|
||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.