Robotics StackExchange | Archived questions

How should the Foreign_Relay package be used ? I cant find any documentation

I could not find how the foreign_relay package should be used in ROS .

I want to use it since ,its very light weight compared to multimaster module.

Can someone help with the documentation link ?

Also I had the below question ,

i understand foreign relay can be used for only one topic transfer ,can i have multiple foreign relays running if i want more than one topic to be send to other master .

update 31.10.2018:it is working now ,i am able to send ROS mesages between ros master .USAGE: foreignrelay {adv|sub} FOREIGNMASTERURI FOREIGNTOPIC LOCAL_TOPIC.if i use {adv},the 2nd ROS master gets the message from the first ,but if i run sub(alone) to get the message from master 2 ,it does not work. can you please let me know how the adv and sub works ?? it looks like if i use adv i can publish message to the 2nd ROS master without {sub} in the 2nd master .but if i use sub alone in the 2nd master to get message from 1st master it doesnt work . any leads ?

Asked by jithinreju@gmail.com on 2018-10-30 11:32:24 UTC

Comments

foreign_relay is a very old package that has not been maintained for quite some time. It was experimental at the time, so that may explain why there is so little documentation.

Asked by gvdhoorn on 2018-10-30 15:47:40 UTC

I got the source code from git clone https://github.com/willowgarage/multimaster_experimental.git , but i am not able to find the header files and related classes to use them,Even the link https://kforge.ros.org/appmanandroid/multimaster_experimental seems to be not working . Any leads to get info?

Asked by jithinreju@gmail.com on 2018-10-30 16:15:14 UTC

Which header files are you referring to? The foreign_relay package in willowgarage/multimaster_experimental seems to contain all required files.

Asked by gvdhoorn on 2018-10-30 16:27:20 UTC

sorry my bad, it is working now ,i am able to send ROS mesages between ros master .USAGE: foreign_relay {adv|sub} FOREIGN_MASTER_URI FOREIGN_TOPIC LOCAL_TOPIC.if i use {adv},the 2nd ROS master gets the message from the first ,but if i run sub(alone) to get the message from master 2 ,it does not work

Asked by jithinreju@gmail.com on 2018-10-31 06:35:40 UTC

can you please let me know how the adv and sub works ?? it looks like if i use adv i can publish message to the 2nd ROS master without {sub} in the 2nd master .but if i use sub alone in the 2nd master to get message from 1st master it doesnt work . any leads ?

Asked by jithinreju@gmail.com on 2018-10-31 06:38:27 UTC

Please add all of this to your original question text. Comments do not provide enough space.

Use the edit button/link at the bottom (next to the Comments heading).

Asked by gvdhoorn on 2018-10-31 07:52:14 UTC

But also: I'm not an expert on foreign_relay. I'm not sure I can help you.

Asked by gvdhoorn on 2018-10-31 07:52:51 UTC

Answers