pass arg to node not working
Here is my launch file:
<launch>
<node pkg="pure_vision" type="my_publisher" name="my_publisher" args="-arg1"/>
<node pkg="pure_vision" type="pure_vision" name="pure_vision"/>
<node pkg="rviz" type="rviz" name="rviz"/>
</launch>
Here is the command i'm running to launch this :
roslaunch pure_vision pure_vision_single_image.launch arg1:="bird.jpg"
But when i do the rostopic echo on the publising topic i'm not getting the data. This same node is working when i run this node after roscore i.e
rosrun pure_vision my_publisher bird.jpg