|
30 | 30 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31 | 31 | # POSSIBILITY OF SUCH DAMAGE.
|
32 | 32 |
|
33 |
| -__authors__ = "Rafael Pérez Seguí" |
34 |
| -__copyright__ = "Copyright (c) 2022 Universidad Politécnica de Madrid" |
35 |
| -__license__ = "BSD-3-Clause" |
36 |
| -__version__ = "0.1.0" |
| 33 | +__authors__ = 'Rafael Pérez Seguí' |
| 34 | +__copyright__ = 'Copyright (c) 2022 Universidad Politécnica de Madrid' |
| 35 | +__license__ = 'BSD-3-Clause' |
| 36 | +__version__ = '0.1.0' |
37 | 37 |
|
38 |
| -import lifecycle_msgs.msg |
39 |
| -from launch_ros.actions import LifecycleNode |
40 | 38 | from launch_ros.events.lifecycle import ChangeState
|
41 | 39 | from launch_ros.substitutions import FindPackageShare
|
| 40 | +from launch_ros.actions import LifecycleNode |
| 41 | +import lifecycle_msgs.msg |
| 42 | +import launch |
42 | 43 | from launch.actions import EmitEvent, DeclareLaunchArgument
|
43 | 44 | from launch import LaunchDescription
|
44 | 45 | from launch.substitutions import LaunchConfiguration, EnvironmentVariable, PathJoinSubstitution
|
45 |
| -import launch |
46 | 46 |
|
47 | 47 |
|
48 | 48 | def generate_launch_description() -> LaunchDescription:
|
@@ -70,25 +70,25 @@ def generate_launch_description() -> LaunchDescription:
|
70 | 70 |
|
71 | 71 | # Prepare the wrapper node
|
72 | 72 | wrapper_node = LifecycleNode(
|
73 |
| - package="psdk_wrapper", |
74 |
| - executable="psdk_wrapper_node", |
75 |
| - name="psdk_wrapper_node", |
| 73 | + package='psdk_wrapper', |
| 74 | + executable='psdk_wrapper_node', |
| 75 | + name='psdk_wrapper_node', |
76 | 76 | namespace=LaunchConfiguration('namespace'),
|
77 |
| - output="screen", |
| 77 | + output='screen', |
78 | 78 | emulate_tty=True,
|
79 | 79 | parameters=[
|
80 | 80 | {
|
81 |
| - "link_config_file_path": LaunchConfiguration('link_config_file_path'), |
82 |
| - "hms_return_codes_path": LaunchConfiguration('hms_return_codes_path'), |
83 |
| - "tf_frame_prefix": LaunchConfiguration('tf_frame_prefix'), |
| 81 | + 'link_config_file_path': LaunchConfiguration('link_config_file_path'), |
| 82 | + 'hms_return_codes_path': LaunchConfiguration('hms_return_codes_path'), |
| 83 | + 'tf_frame_prefix': LaunchConfiguration('tf_frame_prefix'), |
84 | 84 | },
|
85 | 85 | LaunchConfiguration('psdk_params_file_path'),
|
86 | 86 | ],
|
87 | 87 | remappings=[
|
88 |
| - ("psdk_ros2/gps_position_fused", "sensor_measurements/gps"), |
89 |
| - ("psdk_ros2/imu", "sensor_measurements/imu"), |
90 |
| - ("psdk_ros2/main_camera_stream", |
91 |
| - "sensor_measurements/main_camera/image_raw"), |
| 88 | + ('psdk_ros2/gps_position_fused', 'sensor_measurements/gps'), |
| 89 | + ('psdk_ros2/imu', 'sensor_measurements/imu'), |
| 90 | + ('psdk_ros2/main_camera_stream', |
| 91 | + 'sensor_measurements/main_camera/image_raw'), |
92 | 92 | ]
|
93 | 93 | )
|
94 | 94 |
|
@@ -124,7 +124,7 @@ def generate_launch_description() -> LaunchDescription:
|
124 | 124 | default_value=hms_return_codes_file,
|
125 | 125 | description='Path to JSON file with known DJI return codes'),
|
126 | 126 | DeclareLaunchArgument('tf_frame_prefix',
|
127 |
| - default_value="", |
| 127 | + default_value='', |
128 | 128 | description='TF frame prefix'),
|
129 | 129 | ])
|
130 | 130 |
|
|
0 commit comments