-
Notifications
You must be signed in to change notification settings - Fork 36
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
docker run zenoh router fails without tty flag #206
Comments
Is this a docker specific issue? Does it also happen with deb binaries created outside of docker? |
Hi, Have no idea since what could happen on the host system. But I think that since I will use it in bash console the problem will be absent. |
I had similar issues when running When I pop it out from the background, nodes started connecting to it again. Might be related. |
This also happens when I try to start the daemon via a launch file: <launch>
<node pkg="rmw_zenoh_cpp" exec="rmw_zenohd" output="screen" shell="true" emulate_tty="true" />
</launch>
|
Hello, i am not sure if it's convenient way but i could successfuly run zenoh router in my launch by adding below part to my launch file. router = ExecuteProcess(
cmd=[[
"ros2 run rmw_zenoh_cpp rmw_zenohd < /dev/tty"
]],
shell=True
) |
Actually there seems to be more issues with the whole capturing keyboard functionality. Why not strip every keyboard processing from the code and only rely on The "press q to quit" is a nice touch, but it seems to do more harm, it could as well mention "press ctrl+c to quit". |
I strongly agree with you. As an user, i think it's unnecessary stuffs to be able to use q keyboard option while i can use ctrl+c combination.
Unfortunately, i cannot say anything about Windows 🙂 Anyway, i have discovered that if we run At the end, i used subprocess manually and looks like i have become successful at running router and closing it gracefully. Edit: this repo's zenoh router executable only handle SIGINT, but i send SIGTERM to router. It can be changed type of linux signal sent to router. I tested this launch in my forked rmw_zenoh. |
This issue should get fixed with #261. |
This was fixed by #261, so closing this. |
Description of the Issue
I just created a container where rmw_zenoh deb packages are created and installed on the container.
Here is my compose file where the router works fine:
If run the container without
tty:true
The output:
my entrypoint file is the following:
Operating System
OS: Ubuntu 22.04
Docker version: CE 26.1.3
Container Ros Version: Iron
RMW Zenoh version: rolling branch (commit: 7609e41)
The text was updated successfully, but these errors were encountered: