2023-03-09 16:38:53 +08:00
|
|
|
documentation
|
|
|
|
|
|
|
|
[unitree-z1-docs-english](http://dev-z1.unitree.com)
|
|
|
|
|
2023-04-26 01:01:14 +08:00
|
|
|
[unitree-z1-docs-chinese](http://dev-z1.cn.unitree.com)
|
|
|
|
|
|
|
|
see [unitree-z1-docs](http://dev-z1.unitree.com)
|
|
|
|
|
|
|
|
## Build docker image
|
2023-05-04 03:47:17 +08:00
|
|
|
```shell
|
2023-04-26 01:01:14 +08:00
|
|
|
docker build . -t bytelogics:z1_controller
|
2023-05-04 03:47:17 +08:00
|
|
|
```
|
2023-04-26 01:01:14 +08:00
|
|
|
|
|
|
|
## Run the docker instance
|
2023-05-04 03:47:17 +08:00
|
|
|
For python connection:
|
|
|
|
```shell
|
2023-05-04 03:45:11 +08:00
|
|
|
docker run -ti --rm --network host bytelogics:z1_controller
|
2023-05-04 03:47:17 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
For manual build within a docker:
|
2023-05-03 01:45:42 +08:00
|
|
|
Make sure you are not in build folder but in the parent then run
|
|
|
|
|
2023-05-04 03:47:17 +08:00
|
|
|
`docker run -ti --rm --network host bytelogics:z1_controller bash`
|
2023-05-04 02:42:58 +08:00
|
|
|
`cmake .. -DCOMMUNICATION=ROS`
|
2023-05-04 02:44:20 +08:00
|
|
|
`make`
|
2023-05-04 02:42:58 +08:00
|
|
|
`./z1_ctrl`
|
|
|
|
you can try with
|
|
|
|
`./z1_ctrl k` for keyboard
|
2023-05-02 22:27:38 +08:00
|
|
|
|
2023-05-02 22:28:29 +08:00
|
|
|
Cmake command you can do catkin_make -DCOMMUNICATION=ROS
|
2023-05-02 22:27:38 +08:00
|
|
|
then you dont need to edit the cmake.txt file
|