-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Bug] Cannot write ROS 2 Launch file as mandatory "--ros-args" not handled by Zenoh #38
Comments
It would indeed be nice is A first step would be to just log a "not supported ROS argument ... - ignored" warning for each one. But strangely, when I try your
So I think at least |
Looks like you're only getting the std output from ros_launch and not the nodes running underneath, is your logging verbosity set differently on your host install? (Mine is INFO) Were you running with |
I get roughly the same logs than you with "error" and "usage" messages. I find yours quite strange because:
For a correct support of |
https://github.com/ciandonovan/ros2_zenoh_bridge Here's a full reproducible example of my setup, running the latest zenoh-plugin-ros2dds main branch installed as a ROS package in a submodule. I'm not sure how I added |
Fixed via #58 |
Describe the bug
I want to run Zenoh as a ROS 2 package in a container. However,
ros2 run
does not install an explicit signal handler for SIGTERM, and when run as PID1 in a container, a special case where the default disposition of those signals being changed from Terminate to Ignore applies. Further, if the container is initialized with a lightweight init manager such as tini,ros2 run
will explicitly set the disposition of SIGINT to Ignore because it doesn't detect a controlling terminal.I therefore want to create a simple launchfile that correctly handles these signals (notably SIGINT) and forwards them to its children. The launchfile will be configured explicitly with "emulate_tty=True" to trick Zenoh installing the SIGINT handler. The problem is that as far as I can tell, ROS 2 Launch will always append
--ros-args
toargv
of the node its launching, and Zenoh doesn't like that.Could Zenoh be modified to detect
--ros-args
and harmlessly ignore it? At least until there's possibly more ROS-specific functionality integrated in which care maybe reading the args might be useful.To reproduce
zenoh_launch.py
Error log:
System info
The text was updated successfully, but these errors were encountered: