Skip to content

Commit 47cbf75

Browse files
Tomas BacaTomas Baca
authored andcommitted
added parametrized debug... does not work with tests
1 parent 1fe948e commit 47cbf75

File tree

1 file changed

+22
-0
lines changed
  • ros_packages/mrs_uav_core/launch

1 file changed

+22
-0
lines changed

ros_packages/mrs_uav_core/launch/core.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,27 @@ def generate_launch_description():
138138

139139
# #} end of network_config
140140

141+
# #{ debug
142+
143+
# debug = LaunchConfiguration('debug')
144+
145+
# # this adds the args to the list of args available for this launch files
146+
# # these args can be listed at runtime using -s flag
147+
# # default_value is required to if the arg is supposed to be optional at launch time
148+
# ld.add_action(DeclareLaunchArgument(
149+
# 'debug',
150+
# default_value="false",
151+
# description="Path to the custom configuration file. The path can be absolute, starting with '/' or relative to the current working directory",
152+
# ))
153+
154+
# debug = IfElseSubstitution(
155+
# condition=PythonExpression(['"', debug, '" == "true"']),
156+
# if_value="debug_roslaunch " + os.ttyname(sys.stdout.fileno()),
157+
# else_value=""
158+
# )
159+
160+
# #} end of debug
161+
141162
uav_name=os.getenv('UAV_NAME', "uav1")
142163

143164
container_name = "/" + uav_name + "/uav_core_container"
@@ -152,6 +173,7 @@ def generate_launch_description():
152173
{'use_intra_process_comms': True},
153174
{'thread_num': os.cpu_count()},
154175
],
176+
# prefix=[debug],
155177
condition=UnlessCondition(standalone)
156178
)
157179

0 commit comments

Comments
 (0)