update chinese README

This commit is contained in:
张立军 2021-04-01 20:06:19 +08:00
parent de9d82d790
commit 51d7f01120
2 changed files with 34 additions and 59 deletions

View file

@ -75,32 +75,31 @@ python scripts/test.py
- **Use slide bar to control**
- launch ros and rviz
- launch ros and rviz
```
roslaunch myCobotROS control_slider.launch
```
```
roslaunch myCobotROS control_slider.launch
```
- run python script
- run python script
```
rosrun myCobotROS control_slider.py
```
```
rosrun myCobotROS control_slider.py
```
- **The model moves with the real manipulator**
- launch ros and rviz
- launch ros and rviz
```
roslanuch myCobotROS mycobot.launch
```
```
roslanuch myCobotROS mycobot.launch
```
- run python script
```
rosrun myCobotROS display.py
```
- run python script
```
rosrun myCobotROS display.py
```
<!-- If you use the above command, then you may need to manually add some model components. If you don't want to be so troublesome, you can use the following command to load a saved **myCobot** model.

View file

@ -72,57 +72,33 @@ python scripts/test.py
### 3.2 启动和运行
-**步骤 1**: 在 terminal 中打开 roscore
- 使用滑块控制
```bash
roscore #open another tab
```
- 启动 ros 和 rviz
-**步骤 2**: 启动
```
roslaunch myCobotROS control_slider.launch
```
a) 如果是展示或者用可交互标记控制, 在第二个 terminal 中运行:
- 运行 python 脚本
```bash
roslaunch myCobotROS mycobot.launch
```
```
rosrun myCobotROS control_slider.py
```
b) 如果是滑块控制, 在第二个 terminal 中运行:
- 仿真模型同步机械臂
```
roslaunch myCobotROS control.launch
```
- 启动 ros 和 rviz
-**步骤 3**: 打开 rviz第三个 terminal
```
roslanuch myCobotROS mycobot.launch
```
```bash
rosrun rviz rviz
```
- 运行 python 脚本
如果使用上面的命令,你将打开一个空白的 rviz需要手动添加模块。当然你也可以使用下面的命令打开 rviz 的同时加载一个保存好的 myCobot 模型。
```bash
rosrun rviz rviz -d rospack find myCobotROS/config/mycobot.rviz
```
-**步骤 4**: 运行 python 脚本(第四个 terminal
a) 展示脚本
```bash
rosrun myCobotROS display.py
```
b) 滑块控制脚本
```bash
rosrun myCobotROS control_slider.py
```
c) 可交互标记控制脚本
```bash
rosrun myCobotROS control_marker.py
```
```
rosrun myCobotROS display.py
```
## Q & A