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 438c482 commit 52d5e97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.vscode
build
install
log
log
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 @@ -27,8 +27,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 @@ -74,9 +74,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 @@ -142,9 +142,7 @@ def create_parameter_dict(*args):
("pandar_points", "pointcloud_raw_ex"),
("velodyne_points", "pointcloud_raw_ex"),
],
extra_arguments=[
{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)
)

Expand Down Expand Up @@ -287,7 +285,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 52d5e97

Please sign in to comment.