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
|
2023-05-10 03:32:37 +08:00
|
|
|
## old docker run -ti --rm --network host --env="DISPLAY" -e DISPLAY=${HOSTNAME}:0 --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --volume="/Users/keithsiilats/overlay_ws:/data/overlay_ws" --volume="/Users/keithsiilats/unitree_ws:/data/unitree_ws" -p 8071:8071 -p 11311:11311 bytelogics:z1_controller bash
|
|
|
|
docker run -ti --rm --network host --env="DISPLAY=novnc:0.0" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --volume="/Users/keithsiilats/overlay_ws:/data/overlay_ws" --volume="/Users/keithsiilats/unitree_ws:/data/unitree_ws" -p 8071:8071 -p 11311:11311 bytelogics:z1_controller bash
|
|
|
|
docker run -d --rm --network host --env="DISPLAY_WIDTH=3000" --env="DISPLAY_HEIGHT=1800" --env="RUN_XTERM=no" \
|
|
|
|
--name=novnc -p=8080:8080 theasp/novnc:latest
|
|
|
|
|
|
|
|
## on mac setup
|
|
|
|
https://gist.github.com/cschiewek/246a244ba23da8b9f0e7b11a68bf3285
|
|
|
|
cd /data/unitree_ws
|
|
|
|
source devel/setup.bash
|
|
|
|
roslaunch unitree_gazebo z1.launch
|