机械臂开机自动调用了gauss-ros-start命令。
1、查看开机启动脚本 gauss-ros-start
```bash
gauss@gauss-ros:~$ which gauss-ros-start
/usr/local/bin/gauss-ros-start
gauss@gauss-ros:~$ cat /usr/local/bin/gauss-ros-start
#!/bin/bash
#log info "gauss-ros: Using workspace setup file /home/gauss/Project/gauss_ws/devel/setup.bash"
source /home/gauss/Project/gauss_ws/devel/setup.bash
export ROS_HOSTNAME=$(hostname)
export ROS_MASTER_URI=http://127.0.1.1:11311
roslaunch gauss_bringup rpi_setup.launch
```
2、查看启动脚本gauss-ros-start是否被设置为开机自动
```bash
gauss@gauss-ros:~$ systemctl list-unit-files | grep gauss
gauss-ros.service enabled
pm2-gauss.service enabled
```
3、启动脚本的启动和停止
停止开机启动
```bash
gauss@gauss-ros:~$ systemctl disable gauss-ros.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: jeremy,,, (gauss)
Password:
==== AUTHENTICATION COMPLETE ===
Removed symlink /etc/systemd/system/multi-user.target.wants/gauss-ros.service.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: jeremy,,, (gauss)
Password:
==== AUTHENTICATION COMPLETE ===
gauss@gauss-ros:~$ systemctl list-unit-files | grep gauss
gauss-ros.service disabled
pm2-gauss.service enabled
```
设置开机启动
```bash
gauss@gauss-ros:~$ systemctl enable gauss-ros.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: jeremy,,, (gauss)
Password:
==== AUTHENTICATION COMPLETE ===
Created symlink from /etc/systemd/system/multi-user.target.wants/gauss-ros.service to /lib/systemd/system/gauss-ros.service.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: jeremy,,, (gauss)
Password:
==== AUTHENTICATION COMPLETE ===
gauss@gauss-ros:~$ systemctl list-unit-files | grep gauss
gauss-ros.service enabled
pm2-gauss.service enabled
```
4、kill 掉所有的 ros 节点
```
rosnode kill -a
```
5、一键启动机械臂的软件
```
gauss-ros-start
```
- 引言
- 第一章 开关机和网络配置
- 开关机和网络连接
- 开机启动脚本
- 多机通信
- 安装必要的ROS包
- 第二章 软件架构
- 第三章 机械臂模型
- 第四章 Python API
- calibrate_auto
- learning_mode
- move_joints
- move_pose
- gripper
- air_vacuum_pump
- electromagnet
- 第五章 ROS接口
- 示教模式
- 关节空间
- 笛卡尔空间
- 运动规划
- 工具控制
- 自定义消息
- 重新校准
- 自动校准
- 硬件状态
- 第六章 参数说明
- rpi_ros_processes
- gauss_motors
- robot_command_validation
- stepper_params
- gauss_driver
- end_effectors
- 第七章 launch文件
- rpi_setup
- controllers
- robot_commander
- user_interface
- 第八章 视觉抓取
- 第九章 常见问题