Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new module list function #95

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ros_bt_py/launch/ros_bt_py.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
from launch.conditions import IfCondition


def generate_module_list():
module_list = [
"ros_bt_py.nodes",
"ros_bt_py.ros_nodes",
]
return str(module_list)


def generate_launch_description():
robot_namespace_launch_arg = DeclareLaunchArgument(
"robot_namespace",
Expand All @@ -44,7 +52,7 @@ def generate_launch_description():

node_modules_launch_arg = DeclareLaunchArgument(
"node_modules",
default_value="['ros_bt_py.nodes','ros_bt_py.ros_nodes']",
default_value=generate_module_list(),
description="Default python modules from which to load node definitions",
)
node_modules_value = LaunchConfiguration("node_modules")
Expand Down
Loading