ERROR: cannot launch node of type [cob_sick_s300/cob_sick_s300]: can't locate node [cob_sick_s300] in package [cob_sick_s300]
Hi, I am trying to read the raw data from sick s300 using cob_sick_s300 package. I am getting the error
ERROR: cannot launch node of type [cob_sick_s300/cob_sick_s300]: can't locate node [cob_sick_s300] in package [cob_sick_s300]
while launching the launch file,
s300_launch.launch
<launch>
<!-- start laser driver -->
<node name="laser" pkg="cob_sick_s300" type="cob_sick_s300" respawn="false" output="screen">
<rosparam command="load" file="$(find cob_sick_s300)/ros/src/s300_config.yaml"/>
</node>
</launch>
the s300 configuration file is,
s300_config.yaml
port: /dev/ttyUSB0
baud: 500000
scan_duration: 0.025 #no info about that in SICK-docu, but 0.025 is believable and looks good in rviz
scan_cycle_time: 0.040 #SICK-docu says S300 scans every 40ms
inverted: false
scan_id: 7
frame_id: /base_link
scan_intervals: [[-1.3526, 1.361357]] #[rad] these intervals are included to the scan
fields:
'1':
scale: 0.01
start_angle: -2.355
stop_angle: 2.355
# '2':
# scale: 2.0
# start_angle: -11.0
#stop_angle: 12.0
I got the same error while launching amcl_diff.launch
ERROR: cannot launch node of type [amcl/amcl]: can't locate node [amcl] in package [amcl]
But i resolved this by putting the command
source /opt/ros/kinetic/setup.bash
But if i put this command for this. the package is not in the rospack list. Again i have to reinitialize the source devel/setup
.
how can i clear this error?
Your assistance is always much appreciated.
thank u!