New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServoMixer Updates #816
Merged
Merged
ServoMixer Updates #816
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3dfcc14
worky
0af2c73
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
109dfeb
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab.gi…
1126c7d
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab.gi…
67162e7
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab.gi…
6bb5e5a
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab.gi…
ab7bdfb
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab.gi…
88a995c
sermo mixer updates - also bintray jcenter removed
9cee1ac
bumped tesseract from 1.5.4 to 1.5.5
e597717
bumped tesseract from 1.5.4 to 1.5.5
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,27 @@ | ||
package org.myrobotlab.kinematics; | ||
|
||
public class PoseSequence { | ||
|
||
public int id; | ||
|
||
/** | ||
* name of pose | ||
*/ | ||
public String name; | ||
|
||
/** | ||
* number of ms to wait before starting this pose | ||
*/ | ||
public Long waitTimeMs; | ||
|
||
public PoseSequence() { | ||
} | ||
|
||
public String toString() { | ||
if (waitTimeMs == null) { | ||
return name; | ||
} else { | ||
return String.format("%s %d ms"); | ||
} | ||
} | ||
} |
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,45 @@ | ||
package org.myrobotlab.kinematics; | ||
|
||
import java.io.IOException; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.myrobotlab.codec.CodecUtils; | ||
import org.myrobotlab.io.FileIO; | ||
import org.myrobotlab.logging.LoggerFactory; | ||
import org.myrobotlab.service.InMoov2; | ||
import org.slf4j.Logger; | ||
|
||
/** represent a set of servo positions at a given point in time */ | ||
public class Sequence { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this sequence, really should be renamed to gesture, and it should be represented by a list of steps.. |
||
|
||
public final static Logger log = LoggerFactory.getLogger(InMoov2.class); | ||
|
||
public String name; | ||
|
||
/** | ||
* sequence of poses and offset times | ||
*/ | ||
public List<PoseSequence> poses = new ArrayList<>(); | ||
|
||
public boolean cycle = false; | ||
|
||
public Sequence() { | ||
} | ||
|
||
public Sequence(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Sequence: " + name; | ||
} | ||
|
||
public static Sequence loadSequence(String filename) throws IOException { | ||
String json = FileIO.toString(filename); | ||
Sequence pose = (Sequence) CodecUtils.fromJson(json, Sequence.class); | ||
return pose; | ||
} | ||
|
||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this class to something easier to understand like a pose step.. or just a step (as a base class).. .. "sequence" makes me think this is a list of steps. but it's not, it's just one of them.