機械臂開機自動調用了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
- 第八章 視覺抓取
- 第九章 常見問題