Setup Hokuyo UST 10LX ip with remote access
Hi, I am setting up Hokuyo UST 10LX on my Jetson TX2, but got confused about the ROS/Hokuyo/TX2 ip addresses. Hope you can help me clarify it.
Hokuyo ip address is factory default: 192.168.0.10 and it is linked to the Ethernet port of the TX2. I followed the instructions in this https://www.jetsonhacks.com/2018/02/21/racecar-j-hokuyo-ust-10lx-configuration and set my TX2 eth0 to 192.168.0.15.
However, my jetson uses WIFI and its ip address for wlan0 is 192.168.0.28. Since my TX2 is attached to a robot, I want to open rviz on another computer so I can monitor the data from the TX2. The other computer is also on WIFI and its ip address is 192.168.0.29.
My questions is what the ROSMASTERURI and ROS_IP on my TX2 should be?
Thank you very much.
Asked by AutoCar on 2018-07-18 14:43:54 UTC
Answers
export ROS_MASTER_URI=http://<name of robot host machine>:11311
Both your machine and the robot machine must be able to ping each other by hostname (add to etc hosts).
You don't need to play with the ROS_IP. That's for a slightly different purpose.
Asked by stevemacenski on 2018-07-18 17:53:13 UTC
Comments
When I edit the etc/hosts on Windows, should I use 192.168.0.28 or 192.168.0.15?
Asked by AutoCar on 2018-07-20 00:08:19 UTC
I think it would be a valuable experiment for you to try yourself to answer that question.
Asked by stevemacenski on 2018-07-20 00:16:13 UTC
I already tried. Neither worked.
Asked by AutoCar on 2018-07-20 11:46:20 UTC
Comments