Skip to content

Commit

Permalink
adjusted walk parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jun 7, 2024
1 parent 79b74a2 commit bb7b423
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MarcosWalk.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ IDriveEngine engine = new IDriveEngine () {
*/

boolean firstRun=true
double zoffsetOfFeetHome = -18
double zoffsetOfFeetHome = -21
double xOffsetOfFeetHome = 7
double ySplayOut = 5
double stepOverHeight = 10
double stepOverHeight = 15
public void DriveArc(MobileBase source,TransformNR newPose,double seconds) {
try {

Expand Down Expand Up @@ -95,14 +95,14 @@ class BodyController{

int coriolisIndex = 0
// ms of the tail loop
double timeOfTailLoop = 350
double timeOfTailLoop = 200
double coriolisTimeBase =numMsOfLoop
// degrees per time slice
double coriolisDivisions = timeOfTailLoop/coriolisTimeBase
double coriolisDivisionsScale = 360.0/coriolisDivisions
double coriolisGain=2

double cycleTime = numMsOfLoop*numPointsInLoop*(numberOfInterpolationPoints+1)+(numMsOfLoop*1)
double cycleTime = 300;//numMsOfLoop*numPointsInLoop*(numberOfInterpolationPoints+1)+(numMsOfLoop*1)
int numberOfInterpolatedPointsInALoop = numPointsInLoop*(numberOfInterpolationPoints+1)
MobileBase source=null;
MobileBase lastSource=null
Expand Down Expand Up @@ -399,6 +399,7 @@ class BodyController{
boolean connect() {
println "Connecting Body Controller"
availible=true;
println "Walking controller cycle time: "+cycleTime
if(bodyLoop==null) {
// Create a thread to run the body controller
bodyLoop=new Thread({
Expand Down

0 comments on commit bb7b423

Please sign in to comment.