Add files to be loaded when ROS node is launched
Hello ROS community,
I have a python code for a hardware device (radar) that uses a parameters.cfg file for hardware settings (independantly of ROS).
In the same code, I am creating a ROS node so that the device publishes its collected data.
When I use a launch file, the basic format is as follows :
<launch>
<node pkg="radar_uart"
name="radar"
type="radar.py"
output="screen">
</node>
</launch>
But when I do my $roslaunch radar radar.launch command, I get the error that it could not find the config file : [ No such file or directory 'radar_config30hz.cfg' ]
I tested by adding this line to the launch file, so the config would be loaded when launching the node :
<rosparam file="$(find radar)/src/radar_config30hz.cfg" command="load"/>
It is still not working and the new error is : [ Ressource not found: your_package_name ]
PS : As said the file is a not a dynamic reconfigure file, it just contains parameters to be used by the radar Hardware.
Please enlighten me on how to simly make the ros node find the file and use it when it launches.
Thanks and regards,
Lilia