mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
update chinese README
This commit is contained in:
parent
de9d82d790
commit
51d7f01120
2 changed files with 34 additions and 59 deletions
33
README.md
33
README.md
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
60
READMEcn.md
60
READMEcn.md
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue