-
Notifications
You must be signed in to change notification settings - Fork 1
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 #6 from dbaldwin/hotfix/docs-for-0.1.4
init call necessary for v0.1.4+
- Loading branch information
Showing
6 changed files
with
18 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# go1-js | ||
Node JS Library for Unitree Go1 | ||
|
||
## Node JS Library for Unitree Go1 | ||
|
||
### Note: users upgrading to version 0.1.4 or newer you must initialize Go1 like the following: | ||
|
||
``` | ||
let dog = new Go1(); | ||
dog.init(); // version 0.1.4+ requirement | ||
dog.setMode(Go1Mode.walk); | ||
dog.goForward(0.25, 2000); | ||
``` | ||
|
||
Take a look at the examples directory for more details. |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ let dog: Go1; | |
|
||
async function main() { | ||
dog = new Go1(); | ||
dog.init(); | ||
|
||
await dog.wait(3000); | ||
|
||
|
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,6 +1,7 @@ | ||
import { Go1, Go1Mode } from "../src/go1"; | ||
|
||
let dog = new Go1(); | ||
dog.init(); | ||
dog.setMode(Go1Mode.walk); | ||
dog.goForward(0.25, 2000); | ||
//dog.go(0, -0.25, -0.25, 1000); |
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