Skip to content
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

runReachStudy function does not accept terminal input in ROS2 #6

Open
marip8 opened this issue May 11, 2023 · 1 comment
Open

runReachStudy function does not accept terminal input in ROS2 #6

marip8 opened this issue May 11, 2023 · 1 comment

Comments

@marip8
Copy link
Member

marip8 commented May 11, 2023

The runReachStudy function has an argument for waiting for keyboard input to keep the reach study objects alive until the user is done interacting with the reach study in Rviz. The ROS2 launch system apparently does not allow terminal inputs to be passed to the launched nodes, so the reach study node hangs indefinitely until the program is manually terminated. We should think of an alternate method of handling this that works correctly in ROS2

@SammyRamone
Copy link
Contributor

I can confirm that this happens when launching the software via a ROS launch file. This bug does not happen when the code is started with the Python interface.
I think the corresponding issue in ROS 2 launch is this one ros2/launch#635
There are of course other ways to get the keyboard input than using cin but all of these seem to be platform specific.
A hacky solution for this problem is adding prefix='xterm -e', to the launch file, as it will create a new terminal window with access to cin for the node. Of course this can not be the solution for this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants