Closed charlielito closed 3 weeks ago
I got two errors while trying to set topics_glob="[*]"
that might reveal what is going on:
Traceback (most recent call last):
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py", line 228, in _process_one_event
await self.__process_event(next_event)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py", line 248, in __process_event
visit_all_entities_and_collect_futures(entity, self.__context))
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
[Previous line repeated 4 more times]
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
sub_entities = entity.visit(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/action.py", line 108, in visit
return self.execute(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/actions/node.py", line 444, in execute
self._perform_substitutions(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/actions/node.py", line 399, in _perform_substitutions
evaluated_parameters = evaluate_parameters(context, self.__parameters)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/utilities/evaluate_parameters.py", line 160, in evaluate_parameters
output_params.append(evaluate_parameter_dict(context, param))
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/utilities/evaluate_parameters.py", line 128, in evaluate_parameter_dict
evaluated_value = value.evaluate(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/parameter_descriptions.py", line 83, in evaluate
self.__evaluated_parameter_value = perform_typed_substitution(
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/type_utils.py", line 547, in perform_typed_substitution
return coerce_to_type(
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/type_utils.py", line 254, in coerce_to_type
return convert_as_yaml(value, f"Failed to convert '{value}' using yaml rules")
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/type_utils.py", line 243, in convert_as_yaml
raise ValueError(f'{error_msg}: yaml.safe_load() failed\n{err}')
ValueError: Failed to convert '[*]' using yaml rules: yaml.safe_load() failed
I then tried ["*"]
:
[rosbridge_websocket-1] Traceback (most recent call last):
[rosbridge_websocket-1] File "/opt/ros/foxy/lib/rosbridge_server/rosbridge_websocket", line 332, in <module>
[rosbridge_websocket-1] main()
[rosbridge_websocket-1] File "/opt/ros/foxy/lib/rosbridge_server/rosbridge_websocket", line 317, in main
[rosbridge_websocket-1] node = RosbridgeWebsocketNode()
[rosbridge_websocket-1] File "/opt/ros/foxy/lib/rosbridge_server/rosbridge_websocket", line 74, in __init__
[rosbridge_websocket-1] self.protocol_parameter_handling()
[rosbridge_websocket-1] File "/opt/ros/foxy/lib/rosbridge_server/rosbridge_websocket", line 208, in protocol_parameter_handling
[rosbridge_websocket-1] for element in topics_glob[1:-1].split(",")
[rosbridge_websocket-1] AttributeError: 'list' object has no attribute 'split'
Finally, using \[*\]
worked. From above errors, it seems roslaunch
attempts to use yaml
to parse topic_glob
. Afterwards, rosapi
uses a rather dubious topics_glob[1:-1]
to remove the square brackets to split out the paths. I think this should be fixed.
In your case, a workaround would probably be to use \[/rosout,/camera/rgb/\]
without spacing given they split(",")
directly.
This issue has been marked as stale because there has been no activity in the past 12 months. Please add a comment to keep it open.
Waiting for response...
This issue has been marked as stale because there has been no activity in the past 12 months. Please add a comment to keep it open.
Trying to run the
rosbridge_server
with thetopic_glob
argument raises an error in ros2 galacticSteps To Reproduce
and the error
Expected Behavior Run without crashiing
Actual Behavior It crashes