File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
autonomy/interfacing/can/launch Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 55from ament_index_python .packages import get_package_share_directory
66import os
77
8+
89def generate_launch_description ():
910 # Get the path to the config file
1011 config_file = os .path .join (
1112 get_package_share_directory ('can' ),
1213 'config' ,
1314 'params.yaml'
1415 )
15-
16+
1617 # Declare launch arguments
1718 can_interface_arg = DeclareLaunchArgument (
1819 'can_interface' ,
1920 default_value = 'can0' ,
2021 description = 'Name of the CAN interface to use (e.g., can0)'
2122 )
22-
23+
2324 publish_rate_arg = DeclareLaunchArgument (
2425 'publish_rate_hz' ,
2526 default_value = '50' ,
2627 description = 'Rate in Hz at which to check for CAN messages'
2728 )
28-
29+
2930 # Create the CAN node
3031 can_node = Node (
3132 package = 'can' ,
@@ -37,7 +38,7 @@ def generate_launch_description():
3738 }],
3839 output = 'screen'
3940 )
40-
41+
4142 # ============================================================================
4243 # TEST CONTROLLER NODE (for development/testing only)
4344 # Comment out the following section if you want to disable the test controller
@@ -51,7 +52,7 @@ def generate_launch_description():
5152 # ============================================================================
5253 # End of test controller section
5354 # ============================================================================
54-
55+
5556 # Return the launch description
5657 return LaunchDescription ([
5758 can_interface_arg ,
You can’t perform that action at this time.
0 commit comments