This project allows the Raspberry Pi to deliver mpu6050 messages to ros as rostopic
The platform of this project is raspberry4B with ubuntu18.04
Make sure your device has smbus installed before using.
If not, please use:
pip install smbus
or
pip3 install smbus
After install smbus,please:
cd mpu6050DMP-ros-python
catkin_make
Now you can input this to run the code(Make sure you are the root user):
source ./devel/setup.bash
rosrun mpu2ros_python MPU6050_python.py
Open a new terminal,and input
rostopic echo /mpu6050_data
to see the information