Does the order of a launch file node influence the order of execution?
I have a launch file like
<launch>
<arg name="input_folder" default="input" />
<node type= "dosomething.py" name="dosomething" pkg="a_package" output="screen" cwd="node" required="true" />
<arg name="output_folder" />
<node name="rosbag" type="record" pkg="rosbsag"
args="-O $(arg output_folder) /message">
</node>
</launch>
dosomething publishes messages. My problem is that it seems that rosbag record does not record the first published messages
when I launch the file though I can see that rosbag starts after dosomething has started, but I think that still it starts before the first message is published
However it seems it is not recorded. How can I solve this and make sure all published messages are recorded?