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

ros-teleop can not work in VM(NAT mode) #19

Open
SYSUHPK opened this issue Sep 22, 2019 · 2 comments
Open

ros-teleop can not work in VM(NAT mode) #19

SYSUHPK opened this issue Sep 22, 2019 · 2 comments

Comments

@SYSUHPK
Copy link

SYSUHPK commented Sep 22, 2019

I am using teleop in VM to control the robotic car, but it doesn't work. The specific situation is as follows:
Teleop is installed on Ubuntu of the VM and VM is in NAT mode. The Teleop could work, but the robot could not pick up the instructions from it.
If the VM is switched to Bridge mode, Teleop can control and the instructions can be received by robot. This has been bothering me for a long time. I want to ask if you have any suggestions
I test the talker and listener example in NAT mode and it can work, it really make me confused.

@trainman419
Copy link
Contributor

This is a general ROS problem; it's not specific to teleop_twist_keyboard.
ROS Network Setup requires full, two way connectivity between the computers or VMs that run ROS nodes. A VM in bridged mode provides full connectivity, but NAT only provides one-way connectivity.

@SYSUHPK
Copy link
Author

SYSUHPK commented Sep 27, 2019

Thanks a lot, I realize that it is the mechanism of ROS and NAT that cause it. It is impossible to make it by topic, but I want to find a way to make it work(not bridge). I think service maybe work, so I make some attempts:
I run the talker behind NAT while listener out of it. Of course it don't work, then I rewrite them by service and it works. I think maybe the Teleop also can be rewrite by service ?

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