I'm using a launch file to start a driver node and another node at the same time. Meanwhile, I'm running another file, which is supposed to publish a message to a topic, to which the non-driver node in the launch file is subscribed. When I don't use the launch file and run the driver separately, everything works fine. The message is published and read correctly. However, when I use the launch file, the message appears not to be read.
Originally posted by mkt29 on ROS Answers with karma: 3 on 2011-07-13
Post score: 0
Original comments
Comment by mkt29 on 2011-07-13:
The message is published by a program outside of the launch file and it's being published constantly so I don't think that's the problem.
Comment by Dan Lazewatsky on 2011-07-13:
Is this a single message that one of your nodes is firing off when it starts, or a topic that is updated periodically? In launch files, the order that nodes start up in is not guaranteed, so one node could publish a message before the receiving node is ready.