# Quadrupet Has Arrived!

**URL:** https://community.droneblocks.io/t/quadrupet-has-arrived/623
**Category:** Robots
**Created:** [November 22, 2022, 4:46pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623 "2022-11-22T16:46:22Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jleonard128](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jleonard128](https://community.droneblocks.io/u/jleonard128)
#### Post date: [November 22, 2022, 4:46pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/1 "2022-11-22T16:46:22Z")

</div>

Hello all!

Our Go1 just arrived and I have started to dive in. I was wondering if there were any guides out there for programming. Whether that be Python, JavaScript, or C. Let me know because I would love to test out things.

---

<div class="post-metadata">

### Author: ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)
#### Post date: [December 3, 2022, 1:16pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/2 "2022-12-03T13:16:10Z")

</div>

@jleonard128 please give this a test and let us know what you think!

[![](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/f709c3895bf93266ba838e48199edb70ac5dd47a.jpeg "Programming Unitree Go1 with JavaScript: go1-js NPM Package") ](https://www.youtube.com/watch?v=UXb2exh6yqE)

More coming soon 🙂

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 3, 2022, 7:06pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/3 "2022-12-03T19:06:22Z")

</div>

Alright! It’s time to get coding. My students will be watching this Monday morning. Keep the instructional videos coming!

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 5, 2022, 7:29pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/4 "2022-12-05T19:29:05Z")

</div>

We have managed to change the color but only one color change, When we try to go forward using the command Churchill.goForward(1, 3000) we get the following in the terminal: "sending command 0,0,0.1 "  
this repeats about 15 times and the robot does not move.

---

<div class="post-metadata">

### Author: ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)
#### Post date: [December 12, 2022, 4:37pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/5 "2022-12-12T16:37:47Z")

</div>

Can you share your entire script and I’ll give it a test here? Thanks.

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 12, 2022, 6:25pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/6 "2022-12-12T18:25:39Z")

</div>

My student is trying to follow along with the video on his Linux installation on his Chromebook. Unfortunately, no one is knowledgeable in Javascript at the moment, as we are focusing on Python at the moment. When he attempts to run this using the ./filename method he gets the following error (see the image). When running the program using VS Code “node filename.js” in the command prompt, the messages come up: “connecting, done, connected” and one color only (the first in the sequence) will come up but no subsequent color changes happen. When we use a script that calls for the Robot to move forward, the sequence of messages on the terminal matches what you have in the video but the robot does not move.

 ![Screenshot 2022-12-12 12.35.08 PM.png](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/27b2373272078113a6831b1d641a4a0043094114.png)

---

<div class="post-metadata">

### Author: ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)
#### Post date: [December 12, 2022, 7:24pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/7 "2022-12-12T19:24:43Z")

</div>

Yikes I may have missed something in the original video. Can you add the following line to package.json?

```auto
"type":"module",

```

So your final config will look like this:

```auto
{
  "name": "go1-js-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

```

Let me know if that doesn’t work!

Also, we are working on a Python library. Would that be preferable to the JS one? If so, we may be able to get you early access by next week.

---

<div class="post-metadata">

### Author: ![jleonard128](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jleonard128](https://community.droneblocks.io/u/jleonard128)
#### Post date: [December 12, 2022, 8:13pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/8 "2022-12-12T20:13:30Z")

</div>

Really enjoy this JS package and would love to mess around with the Python package when available.

Are there any plans to have more low-level commands available? For instance, moving one leg at a time or something along those lines?

---

<div class="post-metadata">

### Author: ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)
#### Post date: [December 13, 2022, 1:01am UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/9 "2022-12-13T01:01:59Z")

</div>

Hi,

I very recently got a Go1 Edu and am finding the programming challenging, and hard to get started. Dennis or others, in your opinion, what would be the easiest language to learn and use on the Go1, be it Java, Python, or Ros? I’m a retired engineer and have not coded anything in years, and then it was Basic and Fortran. Forgot most all of it, but looking forward to learning again on the Go1. TIA, Fritz

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 13, 2022, 5:11pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/10 "2022-12-13T17:11:53Z")

</div>

Python would be awesome! We’re still pretty elementary at Python, but at least we’ve used it and are learning it now.

---

<div class="post-metadata">

### Author: ![jleonard128](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jleonard128](https://community.droneblocks.io/u/jleonard128)
#### Post date: [December 14, 2022, 3:11pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/11 "2022-12-14T15:11:44Z")

</div>

Hey Fritz!

I’m always happy to help someone get back into programming. It sounds to me that waiting on the Python package to be released would be the best course of action for you.

I don’t know a ton about Basic and Fortran but it seems to me that Python would be much more similar to those than JavaScript which has some weird quirks in my opinion.

That being said if you want to jump in today, Doug’s guide is very good!

---

<div class="post-metadata">

### Author: ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)
#### Post date: [December 14, 2022, 7:22pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/12 "2022-12-14T19:22:07Z")

</div>

[jleonard128](https://community.droneblocks.io/u/jleonard128)  
Thanks for the info and the encouragement!

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 22, 2022, 4:45pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/13 "2022-12-22T16:45:37Z")

</div>

So we’re hitting a wall and I think I need a fresh set of eyes on it.  
We are consistently getting this error:

> await Dog.wait(2000)  
> ^^^^^
> 
> SyntaxError: Unexpected reserved word  
> at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)  
> at async link (internal/modules/esm/module\_job.js:42:21)

when we run the file on our school laptops. We have Debian 11 (virtualized on Chromebooks). My student took the Go1 home with him to continue testing over the break, and had flawless results with his Macbook. I decided to troubleshoot on my work machine (also a Chromebook running Debian 11) and had the same issues he was having. I can’t find anything that explains it out on the interwebs. I have tried different versions of node and gotten the same results.

I am including screenshots of the files so you can see what we might have done wrong, along with the list of installed versions of node in case it is version specific.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/ef521da90d0a0eb5b98418462d2556f27da5b384.png)

[Link](https://docs.google.com/document/d/1RigaY_o-TMPuM59GJ2nZhJ4s48G9MkWQhW12y_EL2Gc/edit?usp=sharing) to a copy/pasted version of the package-lock.json file

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 22, 2022, 4:46pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/14 "2022-12-22T16:46:30Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/19102310879614e251811fc8bd2edb320d68b78f.png)

---

<div class="post-metadata">

### Author: ![jleonard128](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jleonard128](https://community.droneblocks.io/u/jleonard128)
#### Post date: [December 22, 2022, 6:32pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/15 "2022-12-22T18:32:45Z")

</div>

Hello!

I ran some diffs on the code you supplied and didn’t notice any differences between my working code and your non-working code. My best guess would be that it has something to do with virtualization.

I attempted running the code on my MacBook virtualizing Debian and got the code to run through.

The only difference between my code and yours is the dog objects’ names.

I can supply my code if you think that may help!

Happy Holidays!

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 24, 2022, 9:01pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/16 "2022-12-24T21:01:41Z")

</div>

Well just when I thought I could predict what would happen… I was wrong.

I spun up a Debian 11 instance on my Macbook Pro (Intel chip) and got the following results:

 ![Screen Shot 2022-12-24 at 3.56.00 PM.png](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/0a32c62b4921cc799effd78cc766ef0dbae84807.png)

---

<div class="post-metadata">

### Author: ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)
#### Post date: [December 24, 2022, 9:40pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/17 "2022-12-24T21:40:55Z")

</div>

Is it possible that we have failed to install some dependency of node from the beginning? This is our first foray into the javascript world so we might not have something installed that is necessary. I’m working on testing on a clean Ubuntu install and if it does the same, then we’re down to 2 options:

- missing a dependent installation
- virtualization

---

<div class="post-metadata">

### Author: ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)
#### Post date: [December 30, 2022, 12:44am UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/18 "2022-12-30T00:44:41Z")

</div>

I was trying to follow this video (ps. All your videos are extremely good) [Unitree Go1 Low Level Control with Legged SDK and ROS via Wired Connection - YouTube](https://www.youtube.com/watch?v=Wnd5IUNbXnI) and had problems with the gist. [Unitree Low Level and ROS Low Level Control from Windows with Docker · GitHub](https://gist.github.com/dbaldwin/df58544fae360e84f5c9d8ab371500f5) I thought docker was included, but appears not to be. Any help is appreciated.

 ![docker help](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/5256e1567e13ee95853c566c2e3f7affa7e20459.jpeg)

---

<div class="post-metadata">

### Author: ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)
#### Post date: [December 30, 2022, 12:46am UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/19 "2022-12-30T00:46:24Z")

</div>

I was able to get the

 ![docker 2](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/da1e4474c5b8be0f53ca64709014db630cf65571.jpeg)  
dog connected, and that works when I ping it.

UPDATE: It turned out that I did not have Docker loaded on my laptop. The low level example now works.

---

<div class="post-metadata">

### Author: ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)
#### Post date: [December 30, 2022, 3:12pm UTC](https://community.droneblocks.io/t/quadrupet-has-arrived/623/20 "2022-12-30T15:12:56Z")

</div>

@Fritz nice job! Keep us posted on your progress. Would love to hear what you’re up to.

[Next page](https://community.droneblocks.io/t/quadrupet-has-arrived/623.md?page=2)
