Skip to content

Commit

Permalink
bringup: add madgwick support
Browse files Browse the repository at this point in the history
Enable madgwick filter to fuse imu and magnetometer.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
  • Loading branch information
hippo5329 committed Apr 28, 2024
1 parent d72e3ab commit 82b9760
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions linorobot2_bringup/launch/bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,26 @@ def generate_launch_description():
description='EKF out odometry topic'
),

DeclareLaunchArgument(
name='madgwick',
default_value='false',
description='Use madgwick to fuse imu and magnetometer'
),

DeclareLaunchArgument(
name='joy',
default_value='false',
description='Use Joystick'
),

Node(
condition=IfCondition(LaunchConfiguration("madgwick")),
package='imu_filter_madgwick',
executable='imu_filter_madgwick_node',
name='madgwick_filter_node',
output='screen',
),

Node(
package='robot_localization',
executable='ekf_node',
Expand Down
1 change: 1 addition & 0 deletions linorobot2_bringup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<url type="repository">https://github.com/linorobot/linorobot2</url>
<url type="bugtracker">https://github.com/linorobot/linorobot2/issues</url>
<buildtool_depend>ament_cmake</buildtool_depend>
<exec_depend>imu_tools</exec_depend>
<exec_depend>robot_localization</exec_depend>
<exec_depend>joy_linux</exec_depend>
<exec_depend>teleop_twist_joy</exec_depend>
Expand Down

0 comments on commit 82b9760

Please sign in to comment.