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

Misleading information for using joystick in docker #8

Closed
zhangOSK opened this issue May 19, 2022 · 1 comment
Closed

Misleading information for using joystick in docker #8

zhangOSK opened this issue May 19, 2022 · 1 comment

Comments

@zhangOSK
Copy link

zhangOSK commented May 19, 2022

In the readme,
"If there is a USB joystick connects to the host computer. The docker should be able to see it (because when we run the docker container, we use --device /dev/input to map USB input devices into the docker). So we can read its data in the docker. Open another terminal

ssh root@localhost -p2233
rosrun joy joy_node "

In my case, I cannot connect the joystick by running the command in docker. Instead, I run the command
rosrun joy joy_node
in the host pc, then the joystick can be found in the docker.

Someone else may encounter the same issue, it will be helpful if you can add some notes to remind them.

@zhangOSK zhangOSK changed the title Cannot find joystick in docker and problem when re-enter the controller docker Cannot find joystick in docker May 23, 2022
@zhangOSK zhangOSK changed the title Cannot find joystick in docker Misleading information for using joystick in docker May 23, 2022
@ShuoYangRobotics
Copy link
Owner

Either way is correct.

In your case your host computer has ROS1 installed. However other people who use Ubuntu 20.04 cannot install ROS1 on their host computers so they cannot run this command on host PC.

But I agree your approach is easier for people who has host PC with ROS1 installed.

Feel free to submit a pull request with more details. Thanks for your comments.

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