Use Fuerte and Hydro
Is it possible to send a message in one computer using ROS FUERTE and listen to in a another computer using ROS HYDRO?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
asked 2013-10-11 04:02:54 -0600
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Is it possible to send a message in one computer using ROS FUERTE and listen to in a another computer using ROS HYDRO?
Yes, it is even possible to have some nodes running in a fuerte environment and some in a hydro environment on the same computer, provided you properly setup environments in different terminals or screens. Note that message formats have to be the same across ROS versions for this to work, though.
@Stefan Kohlbrecher thanks im new in ROS so i have some questions, if i just installed ROS fuerte on my computer and want to install now hydro what should i do to make this cross messaging work? What important environment setups do i have to change or be careful to make this work? Thanks for the responce
Typically, you add some a setup script to your .bashrc file as described here: http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment You switch between ros versions by simply changing what is stated in your .bashrc file. Note that it is always read when you open a new terminal.
@Stefan Kohlbrecher so if I start the first terminal with fuerte then change the bashrc open another terminal this new one will be using hydro? Does it matter with which one i run roscore?
Yes, that's the quickest way of doing it. You could also create some scripts for quickly switching on the command line. I always use the roscore of the newer ros version, but both variants should work I think.
@Stefan Kohlbrecher im trying to install hydro now but im unale to do it due to this error? any ideas how to fix it?' The following packages have unmet dependencies: ros-hydro-desktop-full : Depends: ros-hydro-desktop but it is not going to be installed Depends: ros-hydro-mobile but it is not going to be installed Depends: ros-hydro-perception but it is not going to be installed Depends: ros-hydro-simulators but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Add the sources correctly.
Also, @Stefan Kohlbrecher, is there any recommended practice for splitting nodes between hydro and fuerte?
Thank you.
You´ll want to have two different workspaces for the packages belonging to the different ROS distros and then you only have to take care to only source the corresponding setup files correctly (especially to not mix hydro and fuerte ROS_PACKAGE_PATH etc.).
Asked: 2013-10-11 04:02:54 -0600
Seen: 1,005 times
Last updated: Oct 11 '13
How do I publish exactly one message?
How to pass arguments to/from subscriber callback functions
Message data type and accessing message fields
Subscriber and Publisher node at once in cpp
Which ways of communicating with a controller are real-time safe?
How to recieve an array over Publisher and Subscriber? (Python)