|
14 | 14 | # * Neither the name of Clearpath Robotics nor the names of its contributors may be used to endorse or |
15 | 15 | # promote products derived from this software without specific prior written permission. |
16 | 16 | # |
17 | | -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED |
| 17 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED |
18 | 18 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
19 | 19 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
20 | 20 | # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
|
31 | 31 | from launch_ros.actions import Node |
32 | 32 |
|
33 | 33 | ARGUMENTS = [ |
34 | | - DeclareLaunchArgument('hz', default_value='1.0', |
35 | | - description='Update frequency'), |
36 | | - DeclareLaunchArgument('dev', default_value="''", |
37 | | - description='Wireless device'), |
38 | | - DeclareLaunchArgument('connected_topic', default_value='connected', |
39 | | - description='Connected status topic'), |
40 | | - DeclareLaunchArgument('connection_topic', default_value='connection', |
41 | | - description='Connection information topic'), |
42 | | - DeclareLaunchArgument('namespace', default_value='', |
43 | | - description='Namespace'), |
| 34 | + DeclareLaunchArgument('hz', default_value='1.0', description='Update frequency'), |
| 35 | + DeclareLaunchArgument('dev', default_value='''', description='Wireless device'), |
| 36 | + DeclareLaunchArgument( |
| 37 | + 'connected_topic', default_value='connected', description='Connected status topic' |
| 38 | + ), |
| 39 | + DeclareLaunchArgument( |
| 40 | + 'connection_topic', default_value='connection', description='Connection information topic' |
| 41 | + ), |
| 42 | + DeclareLaunchArgument('namespace', default_value='', description='Namespace'), |
44 | 43 | ] |
45 | 44 |
|
46 | 45 |
|
47 | 46 | def generate_launch_description(): |
48 | 47 |
|
49 | 48 | watcher = Node( |
50 | | - package='wireless_watcher', |
51 | | - executable='wireless_watcher', |
52 | | - name='wireless_watcher', |
53 | | - namespace=LaunchConfiguration('namespace'), |
54 | | - output='screen', |
55 | | - parameters=[{ |
56 | | - 'hz': LaunchConfiguration('hz'), |
57 | | - 'dev': LaunchConfiguration('dev'), |
58 | | - 'connected_topic': LaunchConfiguration('connected_topic'), |
59 | | - 'connection_topic': LaunchConfiguration('connection_topic') |
60 | | - }], |
61 | | - ) |
| 49 | + package='wireless_watcher', |
| 50 | + executable='wireless_watcher', |
| 51 | + name='wireless_watcher', |
| 52 | + namespace=LaunchConfiguration('namespace'), |
| 53 | + output='screen', |
| 54 | + parameters=[ |
| 55 | + { |
| 56 | + 'hz': LaunchConfiguration('hz'), |
| 57 | + 'dev': LaunchConfiguration('dev'), |
| 58 | + 'connected_topic': LaunchConfiguration('connected_topic'), |
| 59 | + 'connection_topic': LaunchConfiguration('connection_topic'), |
| 60 | + } |
| 61 | + ], |
| 62 | + ) |
62 | 63 |
|
63 | 64 | ld = LaunchDescription(ARGUMENTS) |
64 | 65 | ld.add_action(watcher) |
|
0 commit comments