Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
500 changes: 499 additions & 1 deletion docs/chapter/chap7.md

Large diffs are not rendered by default.

Binary file added docs/img/code/chap7/02_rostopic_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/03_catkin_make_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/04_spawn_success_log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/05_car_in_gazebo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/06_keyboard_teleop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/08_rviz_robotmodel_ok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/10_laserscan_ranges_min.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/11_laserscan_valid_count.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/12_grep_collision_removed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/14_killall_visualize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/15_ray_fan_open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/16_ray_fan_box_shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/17_tf_repeated_warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/18_front_wheel_jsp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/19_gazebo_pose_panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/20_box_at_2m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/21_rviz_pointcloud_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/22_camera_rqt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/23_imu_hz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/24_imu_echo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/code/chap7/25_laser_hz_40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ROS每章节运行代码:
* [第 4 章](./chapter/chap4.md) - 机器人仿真
* [第 5 章](./chapter/chap5.md) - 机器人感知
* [第 6 章](./chapter/chap6.md) - 机器人 SLAM 与自主导航
* [第 7 章](./chapter/chap7.md) - 机械臂控制
* [第 7 章](./chapter/chap7.md) - 阿克曼四轮小车运动控制
* [第 8 章](./chapter/chap8.md) - ROS 机器人综合应用
* [第 9 章](./chapter/chap9.md) - ROS 2

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ nav:
- 4. 机器人仿真: './chapter/chap4.md'
- 5. 机器人感知: './chapter/chap5.md'
- 6. 机器人 SLAM 与自主导航: './chapter/chap6.md'
- 7. 机械臂控制: './chapter/chap7.md'
- 7. 阿克曼四轮小车运动控制: './chapter/chap7.md'
- 8. ROS 机器人综合应用: './chapter/chap8.md'
- 9. ROS 2: './chapter/chap9.md'
- 人形机器人:
Expand Down
37 changes: 37 additions & 0 deletions src/chap7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 第 7 章 阿克曼四轮小车运动控制代码

本目录包含两个 catkin 功能包:

| 功能包 | 内容 |
| --- | --- |
| `smartcar_description` | 整车 xacro 模型、ros_control 控制器配置、Gazebo 启动文件、Rviz 配置 |
| `smartcar_control` | 键盘遥控与阿克曼运动解算节点、前轮 TF 补全节点 |

## 使用方法

```bash
# 1. 将两个功能包复制到工作空间 src 目录
mkdir -p ~/catkin_ws/src
cp -r smartcar_description smartcar_control ~/catkin_ws/src/

# 2. 编译
cd ~/catkin_ws
catkin_make
source devel/setup.bash

# 3. 启动仿真环境(Gazebo + 模型 + 控制器)
roslaunch smartcar_description smartcar_gazebo.launch

# 4. 新开终端,补全前轮 TF
rosrun smartcar_control front_wheel_jsp.py

# 5. 新开终端,启动键盘遥控
roslaunch smartcar_control smartcar_gazebo_controller.launch

# 6. 新开终端,启动 Rviz
rviz -d $(rospack find smartcar_description)/config/smartcar.rviz
```

按键说明:`w/s` 加减速,`e/q` 前进时左/右转,`z/c` 后退时右/左转,`x` 转向回正,空格紧急停车。

配套文档见 `docs/chapter/chap7.md`。
200 changes: 0 additions & 200 deletions src/chap7/marm_description/CMakeLists.txt

This file was deleted.

17 changes: 0 additions & 17 deletions src/chap7/marm_description/launch/view_arm.launch

This file was deleted.

58 changes: 0 additions & 58 deletions src/chap7/marm_description/package.xml

This file was deleted.

Loading