One time publish executable
Hi,
Im trying to use a specific node (program A) as a test program being executed once taking the value to be published on a topic (lets call it "foo").
Program B is already subscribed to this topic and is running in a loop.
Program A will be ran like this: "rosrun package node argument", and published the argument (a number) to topic "foo".
program B never receives this message. My idea at this point is the fact that they never get to pair up with tcp with the use of the master node since the subscribing node isnt really subscribed.
Is there any way of making this executable able to send to the looped node B? or is there a specific reason this doesnt work?
I know this might seem like a stupid idea, but it is necessary for testing of the robot, and I dont know how to pass values to a running node for it to then publish.
In advance, thanks.