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

Can not subscribe any topics from a remote PC w/o modifying /etc/hosts #6

Closed
robograffitti opened this issue Sep 8, 2017 · 2 comments

Comments

@robograffitti
Copy link
Contributor

robograffitti commented Sep 8, 2017

Wi-Fi: ROBOTIS-OP-Share
$ROS_MASTER_URI = http://10.42.0.1:11311
$ROS_IP = 10.42.0.155
$ROS_HOSTNAME = 10.42.0.155

Then, I have to add this line in /etc/hosts:
10.42.0.1 robotis-op3

Without this setting, a remote PC can not communicate with a robot.

@robograffitti robograffitti changed the title Can not subscribe any topics from remote PC w/o modifying /etc/hosts Can not subscribe any topics from remote a PC w/o modifying /etc/hosts Sep 26, 2017
@kaym9n
Copy link
Member

kaym9n commented Oct 12, 2017

Thank you for your support.
To solve this problem, user need to add the hostname(robotis-op3) in /etc/hosts of remote pc like the way you said, or modify the script of robotis-op3 as below.

  1. Connect to ROBOTIS-OP3

  2. Open the script which run automatically the robot in your favorite editor.
    $ sudo xed /usr/sbin/OP3-demo-start

  3. Modify like below

  • from export ROS_HOSTNAME=$(hostname)
  • to export ROS_HOSTNAME=10.42.0.1

@robograffitti robograffitti changed the title Can not subscribe any topics from remote a PC w/o modifying /etc/hosts Can not subscribe any topics from a remote PC w/o modifying /etc/hosts Oct 12, 2017
@robotpilot
Copy link
Member

This issue will be closed since there were no actions for a while. You can reopen this issue to show this issue to the users whenever. Thanks.

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

3 participants