- Zhixing Hou <[email protected]>, The Intelligent Machine Research Lab, Nanjing University of Science and Technology.
This is a simple program for reading and saving IMU (mpu6050) as well as Kinect v2 synchronously.
This is based on Kinect2 Viewer contributed by Thiemo Wiedemeyer.
- ROS Kinetic
- OpenCV
- PCL
- Install libfreenect2
- Install iai_kinect2
- Clone this repository into your catkin workspace and build it.
cd ~/catkin_ws/src/
git clone https://github.com/zxhou/IMUKin2.git
cd ~/catkin_ws
catkin_make -DCMAKE_BUILD_TYPE="Release"
- Check the serial port devices.
ls -l /dev/tty*
- For mpu6050, ttyUSB0 is available.
sudo chmod 666 /dev/ttyUSB0
(every time you boot the machine) - Run the program
imageIMU [options]
mode: 'qhd', 'hd', 'sd' or 'ir'
visualization: 'image', 'cloud' or 'both'
saving path: ~/dataset/
Example: rosrun imukin2 imukin2 qhd image ~/dataset/
Image Windows:
ESC
,q
: Quit.b
: Save the RGB and depth image sequences into~/dataset/color
and~/dataset/depth
respectively. Save IMU data into~/dataset/imuData.txt
.e
: Stop saving.