---
# System prepended metadata

title: 使用HandsFree ROS on Rpi可能的Error
tags: [控制組]

---

# 使用HandsFreeIMU on Rpi可能的Error

[Imu's repo連結](https://gitee.com/HANDS-FREE/handsfree_ros_imu#/HANDS-FREE/handsfree_ros_imu/blob/master/tutorials/imu_user_manual/03_%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B/03_ROS%E9%A9%B1%E5%8A%A8%E5%92%8C%E5%8F%AF%E8%A7%86%E5%8C%96/doc.md)

### 1. 沒有進行source 
Error:
```
RLException: [handsfree_imu.launch] is neither a launch file in package [handsfree_ros_imu] nor is [handsfree_ros_imu] a launch file name
The traceback for the exception was written to the log file
```
Solution:
```bash    
source devel/setup.bash
```
### 2. 缺少Package
Error:
```
ImportError: No module named <PACKAGE_NAME>
```
Solution:
自己查，自己下載。 ：）
### 3. 無法locate package
Error:
```
Unable to locate package ros-noetic-imu-tools
```
Solution:
1. 檢查下載ROS時有無缺少指令。[document](https://wiki.ros.org/noetic/Installation/Ubuntu)
2. 直接從source code下載。[repo](https://github.com/CCNYRoboticsLab/imu_tools)

### 4. SyntaxError: invalid syntax
Solution:
1. 檢查python版本
```bash
/usr/bin/python --version
```
需為python3。
```bash
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
```
2. 你的code有bug，加油 ：） 