1
1
IMU tools for ROS
2
- ===================================
2
+ =================
3
3
4
4
Overview
5
- -----------------------------------
5
+ --------
6
6
7
- IMU-related filters and visualizers. The stack contains:
7
+ IMU-related filters and visualizers. The repository contains:
8
8
9
- * ` imu_filter_madgwick ` : a filter which fuses angular velocities,
10
- accelerations, and (optionally) magnetic readings from a generic IMU
11
- device into an orientation. Based on the work of [ 1] .
9
+ * ` imu_filter_madgwick ` : a filter which fuses angular velocities,
10
+ accelerations, and (optionally) magnetic readings from a generic IMU
11
+ device into an orientation. Based on the work of [ 1] .
12
12
13
- * ` imu_complementary_filter ` : a filter which fuses angular velocities,
14
- accelerations, and (optionally) magnetic readings from a generic IMU
15
- device into an orientation quaternion using a novel approach based on a complementary fusion. Based on the work of [ 2] .
13
+ * ` imu_complementary_filter ` : a filter which fuses angular velocities,
14
+ accelerations, and (optionally) magnetic readings from a generic IMU
15
+ device into an orientation quaternion using a novel approach based on a
16
+ complementary fusion. Based on the work of [ 2] .
17
+
18
+ * ` rviz_imu_plugin ` a plugin for rviz which displays ` sensor_msgs::Imu ` messages
19
+
20
+ [ 1 ] : https://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/
21
+
22
+ [ 2 ] : https://www.mdpi.com/1424-8220/15/8/19302
16
23
17
- * ` rviz_imu_plugin ` a plugin for rviz which displays ` sensor_msgs::Imu `
18
- messages
19
24
20
25
Installing
21
- -----------------------------------
26
+ ----------
27
+
28
+ ### From binaries
29
+
30
+ This repo has been released into all current ROS1 and ROS2 distros. To install,
31
+ simply:
32
+
33
+ sudo apt-get install ros-<YOUR_ROSDISTO>-imu-tools
22
34
23
- ### From source ###
35
+ ### From source (ROS1)
24
36
25
- [ Create a catkin workspace] ( http ://wiki.ros.org/catkin/Tutorials/create_a_workspace)
26
- (e.g., ` ~/ros-hydro-ws / ` ) and source the ` devel/setup.bash ` file.
37
+ [ Create a catkin workspace] ( https ://wiki.ros.org/catkin/Tutorials/create_a_workspace)
38
+ (e.g., ` ~/catkin_ws / ` ) and source the ` devel/setup.bash ` file.
27
39
28
40
Make sure you have git installed:
29
41
30
- sudo apt-get install git-core
42
+ sudo apt-get install git
31
43
32
- Download the stack from our repository into your catkin workspace (e.g.,
33
- ` ros-hydro-ws/src ` ; use the proper branch for your distro, e.g., ` groovy ` ,
34
- ` hydro ` ...):
44
+ Clone this repository into your catkin workspace (e.g., ` ~/catin_ws/src ` ; use
45
+ the proper branch for your distro, e.g., ` melodic ` , ` noetic ` , ...):
35
46
36
- git clone -b <distro > https://github.com/ccny-ros-pkg /imu_tools.git
47
+ git clone -b <YOUR_ROSDISTO > https://github.com/CCNYRoboticsLab /imu_tools.git
37
48
38
- Install any dependencies using [ rosdep] ( http ://www.ros.org/wiki/rosdep) .
49
+ Install any dependencies using [ rosdep] ( https ://www.ros.org/wiki/rosdep) .
39
50
40
51
rosdep install imu_tools
41
52
42
53
Compile the stack:
43
54
44
- cd ~/ros-hydro-ws
55
+ cd ~/catkin_ws
45
56
catkin_make
46
57
58
+ ### From source (ROS2)
59
+
60
+ Follow the steps from the ROS2 [ Creating a
61
+ workspace] ( https://docs.ros.org/en/rolling/Tutorials/Workspace/Creating-A-Workspace.html )
62
+ documentation, but instead of cloning the sample repo, clone the proper branch
63
+ of this repo instead:
64
+
65
+ git clone -b <YOUR_ROSDISTO> https://github.com/CCNYRoboticsLab/imu_tools.git
66
+
67
+
47
68
More info
48
- -----------------------------------
69
+ ---------
49
70
50
- http://wiki.ros.org/imu_tools
71
+ All nodes, topics and parameters are documented on [ this repo's ROS wiki
72
+ page] ( https://wiki.ros.org/imu_tools ) .
51
73
52
74
53
- pre-commit Formatting Checks
75
+ pre-commit formatting checks
54
76
----------------------------
55
77
56
78
This repo has a [ pre-commit] ( https://pre-commit.com/ ) check that runs in CI.
@@ -74,16 +96,10 @@ pre-commit install
74
96
```
75
97
76
98
License
77
- -----------------------------------
78
-
79
- * ` imu_filter_madgwick ` : currently licensed as GPL, following the original implementation
80
-
81
- * ` imu_complementary_filter ` : BSD
99
+ -------
82
100
83
- * ` rviz_imu_plugin ` : BSD
101
+ * ` imu_filter_madgwick ` : currently licensed as GPL, following the original implementation
84
102
85
- References
86
- -----------------------------------
87
- [ 1] http://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/
103
+ * ` imu_complementary_filter ` : BSD
88
104
89
- [ 2 ] http://www.mdpi.com/1424-8220/15/8/19302
105
+ * ` rviz_imu_plugin ` : BSD
0 commit comments