ERROR: cannot launch node of type [usb_cam/usb_cam_node]: usb_cam
I'm trying to launch start_robot.launch. However, I'm getting this error about node ERROR: cannot launch node of type [usb_cam/usb_cam_node]: usb_cam ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/home/tron/catkin_ws/src ROS path [2]=/opt/ros/kinetic/share
When I run v4l2-ctl --list-devices I'm getting this: PC Camera (usb-0000:00:14.0-4): /dev/video0
When I test webcam with cheese it's successfully working.
Here is the code for the node:
<launch> <arg name="sim" default="false"/>
<node pkg="usb_cam" type="usb_cam_node" name="top_front_camera" unless="$(arg sim)">
<param name="camera_name" value="top_front_camera"/>
<param name="camera_frame_id" value="top_front_camera_optical_frame"/>
<param name="image_width" value="1920"/>
<param name="image_height" value="1080"/>
</node>
<group ns="top_front_camera">
<node pkg="nodelet" type="nodelet" name="camera_nodelet_manager" args="manager"/>
<node pkg="image_transport" type="republish" name="decompress" args="compressed in:=image_raw raw out:=image_raw" if="$(arg sim)"/>
<!--camera_nodelet_manager-->
<node pkg="nodelet" type="nodelet" name="rectify" args="load image_proc/rectify camera_nodelet_manager">
<remap from="image_mono" to="image_raw"/>
<remap from="camera_info" to="camera_info"/>
<remap from="image_rect" to="image_rect"/>
<param name="queue_size" value="5"/>
</node>
<!-- qhd -->
<node pkg="nodelet" type="nodelet" name="qhd_resize" args="load image_proc/resize camera_nodelet_manager">
<remap from="image" to="image_raw"/>
<remap from="camera_info" to="camera_info"/>
<remap from="~image" to="qhd/image_raw"/>
<remap from="~camera_info" to="qhd/camera_info"/>
<param name="use_scale" value="1"/>
<param name="scale_width" value="0.5"/>
<param name="scale_height" value="0.5"/>
<param name="queue_size" value="5"/>
</node>
<node pkg="nodelet" type="nodelet" name="qhd_rectify" args="load image_proc/rectify camera_nodelet_manager">
<remap from="image_mono" to="qhd/image_raw"/>
<remap from="camera_info" to="qhd/camera_info"/>
<remap from="image_rect" to="qhd/image_rect"/>
<param name="queue_size" value="5"/>
</node>