Ask Your Question
1

Why roscore can' find the good IP adress ?

asked Sep 08 '11

Guido gravatar image Guido
438 5 15

Hi all,

My computer has two IPv4 adresses (one for the wired lan, one for the wifi). The computer name is gilgamesh. Its name on the wired lan is gilgamesh too. But its name through wifi is gilgamesh-wifi. When I start roscore, with wifi on, it complains about not being able to ping gilgamesh (While it should try to ping gilgamesh-wifi).

How to specify the name of the host computer when launching roscore ? (or any ros server)

delete close flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
2

answered Sep 08 '11

dornhege gravatar image dornhege
7708 8 69 148
http://gki.informatik.uni...

set the ROS_HOSTNAME environment variable to the one you want.

link delete flag offensive edit

Comments

Thank you. It works like a charm. Guido (Sep 08 '11)edit
2

answered Sep 08 '11

JeffRousseau gravatar image JeffRousseau
1141 15 21 34
http://jeffrousseau.info/

updated Sep 08 '11

try setting your ROS_MASTER_URI env variable to: ROS_MASTER_URI=http://gilgamesh-wifi:11311

link delete flag offensive edit

Comments

Thank you, this works, but i'd rather use ROS_MASTER_URI when dealing with remote computer. Guido (Sep 08 '11)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Sep 08 '11

Seen: 95 times

Last updated: Sep 08 '11