Communication error between two nodes on two distributed machines
Hello everyone,
I estabilshed a network enviromnent between two machines. The first machine is a local host and the second machine is a Virtual Machine (VM). I've tested the network configuration and all worked fine. I have a bi-directional connectivity between the two machines.
The local host has a static IP:
192.168.56.1
(name is lap64)The virtual machine has a IP of:
192.1168.56.101
(name is vm_vbox)And I set the ROS_MASTER_URI to '192.168.56.1'.
According to this, I build up a simple Publisher and Subscriber Node in C++ to transmit data between the network. First of all, I tested the Publisher and Subscriber on the local machine and it workd fine.
Next, I tried to transmit data from the Publisher (talker) running on the local machine to the Subscriber (listener) running on the Virtual machine. By typing rostopic on both sides, I can see each others nodes and topics.
But, by transmitting data I get and communication error in each node. Here some more informations:
Local host (running on electric)
userA@lap64:~/ros_workspace/topic_tutorial$ rosnode info /listener
--------------------------------------------------------------------------------
Node [/listener]
Publications:
* /rosout [rosgraph_msgs/Log]
Subscriptions:
* /chatter [std_msgs/String]
Services:
* /listener/get_loggers
* /listener/set_logger_level
contacting node http://vm_vbox:43126/ ...
ERROR: Communication with node[http://vm_vbox:43126/] failed!
Virtual machine (running on fuerte)
userB@vm_vbox:~/ros_workspace$ rosnode info /talker
--------------------------------------------------------------------------------
Node [/talker]
Publications:
* /rosout [rosgraph_msgs/Log]
* /chatter [std_msgs/String]
Subscriptions: None
Services:
* /talker/set_logger_level
* /talker/get_loggers
contacting node http://lap64:52729/ ...
ERROR: Communication with node[http://lap64:52729/] failed!
What could I have missed or configured wrong?
Best regards from Germany.