The move_base node couldn't resolve publisher host []

1,672 views
Skip to first unread message

li.book...@gmail.com

unread,
Jun 12, 2016, 10:50:22 AM6/12/16
to ROSforLabview
Hello friends,

I am trying to use ROSforLV toolkit to publish messages more than just /chatter string. So I decided to send something different but got a problem; ( 

Here is some information about my computer systems.

LabVIEW Environment:
Windows OS: win 10 (language: Chinese Simplified)
LabVIEW version:2014f1
ROSforLV version:2.1.0.2 download from LabVIEW tools network

ROS Environment:(Virtual Machine in VMware workstation; Network: Bridge)
Ubuntu version:14.04
ROS version: Indigo
Move_base: built-in

Here are what I did and got:

1, run PublisherExample.vi in windows and rosrun rospy_tutorials listener in Ubuntu. It Worked Perfectly.

2, run test.vi made by myself to publish pose_stamped msg. And use some of built-in vis to build msg including PRY_to_Quat.vi and add_pose_stamped.vi 
topic:move_base_simple/goal
type: geometry_msgs/PoseStamped
action: publisher
update (ms): 1
write queue: 1

3, roslaunch move_base.launch (Actually I am using Mobilesim, ROSARIA etc. from P3AT Mobile Robots development kits)

4, I got Error from the terminal running move_base node
[ERROR]couldn't resolve publisher host []
Every time I run the test.vi I got this error once.

5, I tried to search in the Internet but found nothing. So I really need your help and thank you very much if you could give me some hints.

Best regards!
Zhensheng

Whitney Crooks

unread,
Jun 13, 2016, 2:42:20 PM6/13/16
to ros-sig-ro...@googlegroups.com
Hi Zhensheng,

The newest version of ROS for LabVIEW is on github. Can you download that, follow the install instructions, and then let me know if the same test works? I'm able to communicate between ROS on my computer and roscore on a ubuntu machine. You might also make sure that LabVIEW is allowed through your firewall on windows.

Whitney

--
You received this message because you are subscribed to the Google Groups "ROSforLabview" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-rosforla...@googlegroups.com.
To post to this group, send email to ros-sig-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Whitney Crooks
Ph.D. Candidate in Mechanical Engineering - Tufts University
STEM Leaders Fellow
IGERT Soft Material Robotics Associate
Research Assistant at the Center for Engineering Education and Outreach

li.book...@gmail.com

unread,
Jun 14, 2016, 6:43:07 AM6/14/16
to ROSforLabview
Hi Whitney,

Thank you for your reply! I followed your guide today, the newest version of ROS for LabVIEW software has been changed and I feel comfortable with the new ROSTerminal.vi.

I tried a little more, here is what I did and got:

1. Set the Environment Variable in Ubuntu: 
export ROS_IP=10.0.126.3
export ROS_MASTER_URI=http://10.0.126.3:11311

2. Create a publisher in Ubuntu that publish /move_base_simple/goal msg and a subscriber in LabVIEW, it works fine.

3. But I still couldn't send a /move_base_simple/goal from LabVIEW to Ubuntu and I don't know why.

3.1 I checked rqt_graph, I could see the LV node(the publisher in LabVIEW) in RosGraph which sends msg to the move_base node(in ROS) through move_base_simple/goal topic

3.2 I also checked the ROSTerminal.vi but found something weird: 
1) My IP the software calculated is not correct(actually my IP Addr is 10.0.126.18), that is http://192.168.232.1:5000
2) The port of the subscriber is 50621 but that of the publisher is 0, what does the port 0 mean?
3) I paste the screen shot of the ROSTerminal.vi here.

4. So the question remains: I couldn't Publish msg from LabVIEW to ROS. And I am happy to make more tests.

Thank you for your generous help!

Best regards,
Zhensheng

在 2016年6月14日星期二 UTC+8上午2:42:20,Whitney Crooks写道:
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-rosforlabview+unsub...@googlegroups.com.

To post to this group, send email to ros-sig-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ROSTerminal.png

Whitney Crooks

unread,
Jun 14, 2016, 2:32:59 PM6/14/16
to ros-sig-ro...@googlegroups.com
Hi Zhensheng,

Can you double check that your VM is set to bridged? The error you're describing (getting a 192 IP address instead of your actual IP address) makes it sound like your network adapter is set to NAT. We're working on a way to let you choose your IP address from a list of available addresses for your computer.

The 0 for the publisher port appears because the publisher doesn't get assigned a port until a subscriber registers with the master on the same topic.

Whitney

To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-rosforla...@googlegroups.com.
To post to this group, send email to ros-sig-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Whitney Crooks
Ph.D. Candidate in Mechanical Engineering - Tufts University
STEM Leaders Fellow
IGERT Soft Material Robotics Associate
Research Assistant at the Center for Engineering Education and Outreach

--
You received this message because you are subscribed to the Google Groups "ROSforLabview" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-rosforla...@googlegroups.com.

To post to this group, send email to ros-sig-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Whitney Crooks

unread,
Jun 16, 2016, 1:02:33 PM6/16/16
to ros-sig-ro...@googlegroups.com
Hi Zhensheng,

I just uploaded a new version to github that allows you to change your IP address. It appears to be working on my machine, but let me know if you're having any issues.

Whitney
Reply all
Reply to author
Forward
0 new messages