-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuse odometry data using robot localization
- Loading branch information
1 parent
1a3d359
commit 17c4957
Showing
7 changed files
with
265 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...over_drivetrain/uwrt_mars_rover_drivetrain_description/config/dual_ekf_navsat_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ekf_filter_node_odom: | ||
ros__parameters: | ||
frequency: 30.0 | ||
two_d_mode: true # Recommended to use 2d mode for nav2 in mostly planar environments | ||
print_diagnostics: true | ||
debug: false | ||
publish_tf: true | ||
|
||
# map_frame: odom | ||
odom_frame: odom | ||
base_link_frame: base_link # the frame id used by the diff drive plugin | ||
world_frame: odom | ||
|
||
odom0: odom | ||
odom0_config: [false, false, false, # TODO: test switching this row to all true | ||
false, false, false, | ||
true, true, true, # start with the wheel velocities; try switching to positions later and see what works better | ||
false, false, true, | ||
false, false, false] | ||
odom0_queue_size: 10 | ||
odom0_differential: false | ||
odom0_relative: false | ||
|
||
imu0: imu/data | ||
imu0_config: [false, false, false, | ||
false, false, true, | ||
false, false, false, | ||
false, false, false, | ||
false, false, false] | ||
imu0_differential: false # If using a real robot you might want to set this to true, since usually absolute measurements from real imu's are not very accurate | ||
imu0_relative: false | ||
imu0_queue_size: 10 | ||
imu0_remove_gravitational_acceleration: true | ||
|
||
use_control: false | ||
|
||
process_noise_covariance: [1e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, | ||
0.0, 1e-3, 0.0, 0.0, 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 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3] |
32 changes: 32 additions & 0 deletions
32
..._rover_drivetrain/uwrt_mars_rover_drivetrain_description/launch/dual_ekf_navsat.launch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from launch import LaunchDescription | ||
from ament_index_python.packages import get_package_share_directory | ||
from launch.actions import IncludeLaunchDescription | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
import launch_ros.actions | ||
import os | ||
import launch.actions | ||
|
||
|
||
def generate_launch_description(): | ||
gps_wpf_dir = os.path.join(get_package_share_directory('uwrt_mars_rover_drivetrain_description')) | ||
rl_params_file = os.path.join( | ||
gps_wpf_dir, "config", "dual_ekf_navsat_params.yaml") | ||
|
||
return LaunchDescription( | ||
[ | ||
launch.actions.DeclareLaunchArgument( | ||
"output_final_position", default_value="false" | ||
), | ||
launch.actions.DeclareLaunchArgument( | ||
"output_location", default_value="~/dual_ekf_navsat_example_debug.txt" | ||
), | ||
launch_ros.actions.Node( | ||
package="robot_localization", | ||
executable="ekf_node", | ||
name="ekf_filter_node_odom", | ||
output="screen", | ||
parameters=[rl_params_file, {"use_sim_time": True}], | ||
remappings=[("odometry/filtered", "odometry/local")], | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters