Should I write a bash script in my package for setting Environment Variable $ROS_HOME?
I have a node that takes images with OpenCV, saves files under the /home/user0/Images/
. When I run this node via rosrun
, it saves succesfully. And also tried with roslaunch
:
<node name="my_node" pkg="my_pkg" type="my_node" output="screen" cwd="ROS_HOME"/>
But it needs running
~$ export ROS_HOME=$HOME
command before calling that launch file.
Should I write a bash script in my package for setting $ROS_HOME
and put that script into my launch file?
Or; setting $ROS_HOME
in my .bashrc
file option is good?