-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ee_motion_phases now parametrized with p_start and p_end each
- Loading branch information
Alexander Winkler
committed
Apr 6, 2017
1 parent
14c8c06
commit 81f3311
Showing
12 changed files
with
184 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
@file ee_swing_motion.h | ||
@file ee_phase_motion.h | ||
@author Alexander W. Winkler ([email protected]) | ||
@date Jan 16, 2017 | ||
@brief Brief description | ||
|
@@ -17,16 +17,16 @@ namespace opt { | |
|
||
/** Parametrizes the motion from one 3D point to another. | ||
* | ||
* This can be used to generate the swingleg motion given two footholds. | ||
* See xpp_opt/matlab/swingleg_z_height.m for the generation of these values. | ||
* This can be used to generate the swingleg motion given two footholds or | ||
* represent a leg in stance ("movement" between the same start/goal). | ||
*/ | ||
class EESwingMotion { | ||
class EEPhaseMotion { | ||
public: | ||
using PolyXY = PolynomialXd<CubicPolynomial, StateLin2d>; | ||
using PolyZ = LiftHeightPolynomial; | ||
using PolyXY = PolynomialXd<CubicPolynomial, StateLin2d>; | ||
using PolyZ = LiftHeightPolynomial; | ||
|
||
EESwingMotion (); | ||
virtual ~EESwingMotion (); | ||
EEPhaseMotion (); | ||
virtual ~EEPhaseMotion (); | ||
|
||
/** Completely parametrizes the motion. | ||
* | ||
|
@@ -52,6 +52,9 @@ class EESwingMotion { | |
StateLin3d GetState(double t_local) const; | ||
double GetDuration() const; | ||
|
||
double GetDerivativeOfPosWrtContactsXY(d2::Coords dim, double t_local, | ||
Polynomial::PointType p) const; | ||
|
||
private: | ||
PolyZ poly_z_; | ||
PolyXY poly_xy_; | ||
|
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
Oops, something went wrong.