Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 18, 2024
1 parent 79c8538 commit f259000
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions common_sensor_launch/launch/nebula_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from launch_ros.actions import ComposableNodeContainer
from launch_ros.actions import LoadComposableNodes
from launch_ros.descriptions import ComposableNode
from launch_ros.substitutions import FindPackageShare
from launch_ros.parameter_descriptions import ParameterFile
from launch_ros.substitutions import FindPackageShare
import yaml


Expand Down Expand Up @@ -76,9 +76,9 @@ def create_parameter_dict(*args):
sensor_make = get_lidar_make(sensor_model)

# Configuration file containing sensor model's default parameters

sensor_config = LaunchConfiguration("config_file").perform(context)
if (sensor_config == ""):
if sensor_config == "":
sensor_config = (
Path(get_package_share_directory("nebula_ros"))
/ "config"
Expand Down Expand Up @@ -144,9 +144,7 @@ def create_parameter_dict(*args):
# TODO(knzo25): fix the remapping once nebula gets updated
("pandar_points", "pointcloud_raw_ex"),
],
extra_arguments=[
{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)
)
cropbox_parameters = create_parameter_dict("input_frame", "output_frame")
Expand Down Expand Up @@ -260,7 +258,11 @@ def add_launch_arg(name: str, default_value=None, description=None):

add_launch_arg("sensor_model", description="sensor model name")
add_launch_arg("config_file", "", description="sensor configuration file")
add_launch_arg("launch_driver", "true", "whether to connect to a sensor or to listen to packet replays instead")
add_launch_arg(
"launch_driver",
"true",
"whether to connect to a sensor or to listen to packet replays instead",
)
add_launch_arg("setup_sensor", "true", "configure sensor")
add_launch_arg("retry_hw", "false", "retry hw")
add_launch_arg("sensor_ip", "192.168.1.201", "device ip address")
Expand Down

0 comments on commit f259000

Please sign in to comment.