Skip to content

Commit

Permalink
launch heartbeat in physical bringup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinalTheCoder committed Jan 15, 2025
1 parent efb99ed commit 058365d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions urc_bringup/launch/bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ def generate_launch_description():
get_package_share_directory("urc_bringup"), "config", "nmea_serial_driver.yaml"
)

heartbeat_node = Node(
package="urc_bringup",
executable="urc_bringup_HeartbeatPublisher",
parameters=[{"heartbeatInterval": 1000}],
)

control_node = Node(
package="controller_manager",
executable="ros2_control_node",
Expand All @@ -69,7 +75,7 @@ def generate_launch_description():
load_joint_state_broadcaster = Node(
package="controller_manager",
executable="spawner",
arguments=["-p", controller_config_file_dir, "joint_state_broadcaster"]
arguments=["-p", controller_config_file_dir, "joint_state_broadcaster"],
)

load_drivetrain_controller = Node(
Expand All @@ -81,7 +87,7 @@ def generate_launch_description():
load_status_light_controller = Node(
package="controller_manager",
executable="spawner",
arguments=["-p", controller_config_file_dir, "status_light_controller"]
arguments=["-p", controller_config_file_dir, "status_light_controller"],
)

twist_mux_node = Node(
Expand All @@ -93,17 +99,17 @@ def generate_launch_description():
launch_gps = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(
pkg_nmea_navsat_driver,
"launch", "nmea_serial_driver.launch.py"
pkg_nmea_navsat_driver, "launch", "nmea_serial_driver.launch.py"
)
)
)

launch_gps = Node(
package='nmea_navsat_driver',
executable='nmea_serial_driver',
output='screen',
parameters=[gps_config])
package="nmea_navsat_driver",
executable="nmea_serial_driver",
output="screen",
parameters=[gps_config],
)

launch_vectornav = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
Expand All @@ -128,8 +134,7 @@ def generate_launch_description():
)

odom_frame_node = Node(
package="urc_tf", executable="urc_tf_WorldFrameBroadcaster",
output="screen"
package="urc_tf", executable="urc_tf_WorldFrameBroadcaster", output="screen"
)

return LaunchDescription(
Expand All @@ -154,5 +159,6 @@ def generate_launch_description():
rosbridge_server_node,
odom_frame_node,
launch_vectornav,
heartbeat_node,
]
)

0 comments on commit 058365d

Please sign in to comment.