Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix simpleSmoother; kris hauser's smoother
- Loading branch information
1 parent
310dc92
commit b42800b
Showing
39 changed files
with
5,598 additions
and
171 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
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,30 @@ | ||
// | ||
// Created by hejia on 9/19/19. | ||
// | ||
|
||
#ifndef WECOOK_METAACTUATEINFO_H | ||
#define WECOOK_METAACTUATEINFO_H | ||
|
||
#include "Action.h" | ||
|
||
namespace wecook { | ||
class MetaActuateInfo { | ||
public: | ||
MetaActuateInfo(const Action &action) : m_action(action) { | ||
|
||
} | ||
|
||
MetaActuateInfo(const MetaActuateInfo& other) { | ||
m_action = other.getAction(); | ||
} | ||
|
||
Action getAction() const { | ||
return m_action; | ||
} | ||
|
||
private: | ||
Action m_action; | ||
}; | ||
} | ||
|
||
#endif //WECOOK_METAACTUATEINFO_H |
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,77 @@ | ||
// | ||
// Created by hejia on 9/16/19. | ||
// | ||
|
||
#ifndef WECOOK_SMOOTHERHELPERS_H | ||
#define WECOOK_SMOOTHERHELPERS_H | ||
|
||
#include <libada/Ada.hpp> | ||
#include <dart/dynamics/BodyNode.hpp> | ||
#include <aikido/trajectory/Trajectory.hpp> | ||
#include <aikido/constraint/Testable.hpp> | ||
#include <aikido/trajectory/Spline.hpp> | ||
#include <aikido/trajectory/Interpolated.hpp> | ||
#include <aikido/planner/parabolic/ParabolicTimer.hpp> | ||
|
||
namespace wecook { | ||
namespace planner { | ||
/* | ||
* Simple short cutting | ||
*/ | ||
aikido::trajectory::InterpolatedPtr simpleSmoothPath(const std::shared_ptr<ada::Ada> &ada, | ||
const aikido::statespace::dart::MetaSkeletonStateSpacePtr &metaStateSpace, | ||
const dart::dynamics::MetaSkeletonPtr &metaSkeletonPtr, | ||
const aikido::trajectory::Trajectory *path, | ||
const aikido::constraint::TestablePtr &constraint); | ||
|
||
aikido::trajectory::InterpolatedPtr simpleDoShortcut(const aikido::statespace::dart::MetaSkeletonStateSpacePtr &metaStateSpace, | ||
const dart::dynamics::MetaSkeletonPtr &metaSkeletonPtr, | ||
const aikido::trajectory::Interpolated &inputInterpolated, | ||
aikido::common::RNG &rng, | ||
const aikido::constraint::TestablePtr &collisionTestable, | ||
const Eigen::VectorXd &maxVelocity, | ||
const Eigen::VectorXd &maxAcceleration, | ||
double timeLimit = 6.0, | ||
double checkResolution = 5e-4, | ||
double tolerance = 1e-3); | ||
|
||
/* | ||
* Smoothing with Kris Hauser's parabolic smoother | ||
*/ | ||
aikido::trajectory::UniqueSplinePtr hauserSmoothPath(const std::shared_ptr<ada::Ada> &ada, | ||
const aikido::statespace::dart::MetaSkeletonStateSpacePtr &metaStateSpace, | ||
const dart::dynamics::MetaSkeletonPtr &metaSkeletonPtr, | ||
const aikido::trajectory::Trajectory *path, | ||
const aikido::constraint::TestablePtr &constraint); | ||
|
||
aikido::trajectory::UniqueSplinePtr hauserDoShortcut(const aikido::statespace::dart::MetaSkeletonStateSpacePtr &metaStateSpace, | ||
const dart::dynamics::MetaSkeletonPtr &metaSkeletonPtr, | ||
const aikido::trajectory::Interpolated &inputInterpolated, | ||
aikido::common::RNG &rng, | ||
const aikido::constraint::TestablePtr &collisionTestable, | ||
const Eigen::VectorXd &maxVelocity, | ||
const Eigen::VectorXd &maxAcceleration, | ||
double timeLimit = 6.0, | ||
double checkResolution = 5e-4, | ||
double tolerance = 1e-3); | ||
|
||
aikido::trajectory::InterpolatedPtr hauserSmoothPathInterpolated(const std::shared_ptr<ada::Ada> &ada, | ||
const aikido::statespace::dart::MetaSkeletonStateSpacePtr &metaStateSpace, | ||
const dart::dynamics::MetaSkeletonPtr &metaSkeletonPtr, | ||
const aikido::trajectory::Trajectory *path, | ||
const aikido::constraint::TestablePtr &constraint); | ||
|
||
aikido::trajectory::InterpolatedPtr hauserDoShortcutInterpolated(const aikido::statespace::dart::MetaSkeletonStateSpacePtr &metaStateSpace, | ||
const dart::dynamics::MetaSkeletonPtr &metaSkeletonPtr, | ||
const aikido::trajectory::Interpolated &inputInterpolated, | ||
aikido::common::RNG &rng, | ||
const aikido::constraint::TestablePtr &collisionTestable, | ||
const Eigen::VectorXd &maxVelocity, | ||
const Eigen::VectorXd &maxAcceleration, | ||
double timeLimit = 8.0, | ||
double checkResolution = 5e-4, | ||
double tolerance = 1e-3); | ||
} | ||
} | ||
|
||
#endif //WECOOK_SMOOTHERHELPERS_H |
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.