Skip to content

Commit

Permalink
Made launch files for ekf_map, ekf_odom, navsat
Browse files Browse the repository at this point in the history
  • Loading branch information
shayaf84 committed Nov 3, 2024
1 parent 4d5f41f commit f76fc82
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion urc_localization/config/ekf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ekf_filter_node_map:



navsat_transform_node:
navsat_transform:
ros__parameters:
# Frequency of the main run loop
frequency: 30.0
Expand Down
32 changes: 25 additions & 7 deletions urc_localization/launch/ekf.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,34 @@

def generate_launch_description():

ekf = launch_ros.actions.Node(
ekf_map = launch_ros.actions.Node(
package="robot_localization",
executable="navsat_transform_node",
name="navsat_transform_node",
executable="ekf_node",
name="ekf_filter_node_map",
output="screen",
parameters=[
os.path.join(
get_package_share_directory("robot_localization"),
"params",
"navsat_transform.yaml",
"ekf.yaml",
)
],
remappings=[
("gps/fix", "/gps/data"),
("/imu", "/imu/data"),
],
)

ekf_odom = launch_ros.actions.Node(
package="robot_localization",
executable="ekf_node",
name="ekf_filter_node_odoom",
output="screen",
parameters=[
os.path.join(
get_package_share_directory("robot_localization"),
"params",
"ekf.yaml",
)
],
remappings=[
Expand All @@ -30,8 +48,8 @@ def generate_launch_description():

navsat = launch_ros.actions.Node(
package="robot_localization",
executable="ekf_node",
name="ekf_filter_node",
executable="navsat_transform_node",
name="navsat_transform",
output="screen",
parameters=[
os.path.join(
Expand All @@ -47,7 +65,7 @@ def generate_launch_description():
RegisterEventHandler(
event_handler = OnProcessStart(
target_action = navsat,
on_start=[ekf]
on_start=[ekf_map,ekf_odom]

)
),
Expand Down

0 comments on commit f76fc82

Please sign in to comment.