-
Notifications
You must be signed in to change notification settings - Fork 43
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
Launch failed #21
Comments
So, running this particular node in a launch file ends up not making much sense. That's because this node expects to get its input from stdin, and I believe that launch does....something with stdin. If you think about it further, it still doesn't make sense; what if you launched this node along with another node that needed its input from stdin? Which one would get the data? I'm going to close this out as CANTFIX, but feel free to reopen if you think otherwise. |
@clalancette |
The launch system in ROS 2 is very, very different from ROS 1. So I'm not surprised that there are differences here. The question is whether we want to support this going forward in the new ROS 2 launch system. I don't personally thinks it makes much sense, but others might have a different opinion. @hidmic any thoughts here? |
Wow, I've been skipping this one when pruning my notification backlog for quite a while. My apologies to you both for the delay. So, as @clalancette correctly states, you can't forward As to whether it makes sense to add support, I have to agree with @clalancette. Nodes that get input from |
Hi @routiful Now, the teleop_twist_keyboard can be started via launch file. Thanks to @caelinsutch. Pre-requisite ( Launch Method 1 (
Launch Method 2 (
Note: Above methods are for Best, |
Having more then one car cannot possibly make sense, since you can't operate both at once. No one will ever need 2 cars.
At minimum, this is WONTFIX, not CANTFIX. Sure, the case of having two nodes consuming from stdin is poorly defined. However, the case for having just one node consuming stdin can be extremely handy, and from reading around the ros Q&A and other issues, this is a pretty common thing people want. In my case, I have a pile of nodes that do things, and I'm trying to have one node that takes simple key-presses to start and stop various other nodes, emit messages, etc... The entire concept of "here's a bunch of nodes that do various things, with one node that you interact with via key-presses to control them" maps perfectly to the launch-file concept, except it doesn't work because stdin is unavailable. |
FWIW, I was able to work around this mis-feature in a spectacularly horrible way. Since I'm using python launch files, and the context of the launch file itself has the proper stdin/stdout connections, you can fork off a thread there, and run a thread that reads from stdin and pipes those results somewhere else (in this case, it bridges them to a ros topic, which I have another node that then handles further). In any event, I now have a single launch file that does everything I want, including live interactivity via keyboard. |
I have written simple launch file to run this node.
But it occured
termios error
and didn't run.How can I fix this?
The text was updated successfully, but these errors were encountered: