File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,10 +34,20 @@ def generate_launch_description():
3434 description = 'Path to radio configuration file'
3535 )
3636
37+ bcapi_jar_file_arg = DeclareLaunchArgument (
38+ 'bcapi_jar_file' ,
39+ default_value = PathJoinSubstitution ([
40+ FindPackageShare ('interface_rajant' ),
41+ 'thirdParty' , 'PeerRSSI-bcapi-11.26.1.jar'
42+ ]),
43+ description = 'Path to jar file used to get rssi'
44+ )
45+
3746 # Get launch configurations
3847 robot_name = LaunchConfiguration ('robot_name' )
3948 robot_configs = LaunchConfiguration ('robot_configs' )
4049 radio_configs = LaunchConfiguration ('radio_configs' )
50+ bcapi_jar_file = LaunchConfiguration ('bcapi_jar_file' )
4151
4252 # Define nodes
4353 rajant_peer_rssi = Node (
@@ -48,13 +58,15 @@ def generate_launch_description():
4858 parameters = [{
4959 'robot_name' : robot_name ,
5060 'robot_configs' : robot_configs ,
51- 'radio_configs' : radio_configs
61+ 'radio_configs' : radio_configs ,
62+ 'bcapi_jar_file' : bcapi_jar_file
5263 }]
5364 )
5465
5566 return LaunchDescription ([
5667 robot_name_arg ,
5768 robot_configs_arg ,
5869 radio_configs_arg ,
59- rajant_peer_rssi
70+ bcapi_jar_file_arg ,
71+ rajant_peer_rssi ,
6072 ])
You can’t perform that action at this time.
0 commit comments