Robotics StackExchange | Archived questions

Not able to find rosbridge_server

Hello, I am new to use zbar_ros package. I can use zbarcam independently and read QR code using this command zbarcam --raw /dev/video1.

I am on ros indigo and ubantu 14.04

Now I am trying to use zbar_ros to read QR code from by webcam at /dev/video1. My goal is to read the qr code and save in local file or database.

Here is the launch file, I am sure I am missing something here. Please advise.

sudo vi  /opt/ros/indigo/share/zbar_ros/launch/sample-roszbar.launch

<?xml version="1.0"?>
<launch>
<node pkg="nodelet" type="nodelet" name="zbar_manager" args="manager"/>
<!-- Example camera launch -->
<node pkg="nodelet" type="nodelet" name="uvc_camera" output="screen" args="load uvc_camera/CameraNodelet zbar_manager">

<param name="device" type="string"  value="/dev/video1"/>
</node>
<!--<node pkg="nodelet" type="nodelet" name="barcode_reader" args="load zbar_ros/barcode_reader_nodelet zbar_manager">-->
<!--<param name="throttle_repeated_barcodes" type="double" value="2.0"/>-->
<!--</node>-->
<node pkg="zbar_ros" type="barcode_reader_node" name="barcode_reader">
<param name="throttle_repeated_barcodes" type="double" value="2.0"/>
</node>
</launch>

Here is how I am launching it.

roslaunch zbar_ros  sample-roszbar.launch

Here is the error I get

started roslaunch server http://192.168.1.149:47556/

SUMMARY
========

PARAMETERS
 * /barcode_reader/throttle_repeated_barcodes: 2.0
 * /rosdistro: indigo
 * /rosversion: 1.11.13
 * /uvc_camera/device: /dev/video1

NODES
  /
    barcode_reader (zbar_ros/barcode_reader_node)
    uvc_camera (nodelet/nodelet)
    zbar_manager (nodelet/nodelet)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[zbar_manager-1]: started with pid [5653]
process[uvc_camera-2]: started with pid [5654]
[ INFO] [1445397784.366668437]: Loading nodelet /uvc_camera of type uvc_camera/CameraNodelet to manager zbar_manager with the following remappings:
process[barcode_reader-3]: started with pid [5687]

[ERROR] [1445397784.416193993]: Failed to load nodelet [/uvc_camera] of type [uvc_camera/CameraNodelet] even after refreshing the cache: **According to the loaded plugin descriptions the class uvc_camera/CameraNodelet with base class type nodelet::Nodelet does not exist**. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyz_radial depth_image_proc/point_cloud_xyzi depth_image_proc/point_cloud_xyzi_radial depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_proc/crop_decimate image_proc/debayer image_proc/rectify image_rotate/image_rotate image_view/disparity image_view/image nodelet_tutorial_math/Plus pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/CropBox pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/RadiusOutlierRemoval pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SHOTEstimation pcl/SHOTEstimationOMP pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/VFHEstimation pcl/VoxelGrid pointcloud_to_laserscan/pointcloud_to_laserscan_nodelet stereo_image_proc/disparity stereo_image_proc/point_cloud2 zbar_ros/barcode_reader_nodelet
[ERROR] [1445397784.416298624]: The error before refreshing the cache was: According to the loaded plugin descriptions the class uvc_camera/CameraNodelet with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyz_radial depth_image_proc/point_cloud_xyzi depth_image_proc/point_cloud_xyzi_radial depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_proc/crop_decimate image_proc/debayer image_proc/rectify image_rotate/image_rotate image_view/disparity image_view/image nodelet_tutorial_math/Plus pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/CropBox pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/RadiusOutlierRemoval pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SHOTEstimation pcl/SHOTEstimationOMP pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/VFHEstimation pcl/VoxelGrid pointcloud_to_laserscan/pointcloud_to_laserscan_nodelet stereo_image_proc/disparity stereo_image_proc/point_cloud2 zbar_ros/barcode_reader_nodelet
[FATAL] [1445397784.416611468]: Service call failed!
[uvc_camera-2] process has died [pid 5654, exit code 255, cmd /opt/ros/indigo/lib/nodelet/nodelet load uvc_camera/CameraNodelet zbar_manager __name:=uvc_camera __log:=/home/hemant/.ros/log/a5e646a6-7796-11e5-a71b-ac72892f0cab/uvc_camera-2.log].
log file: /home/hemant/.ros/log/a5e646a6-7796-11e5-a71b-ac72892f0cab/uvc_camera-2*.log

Thanks, Hemant

Asked by hemant T on 2015-10-20 23:08:49 UTC

Comments

Answers

Please show the package.xml and your_nodelet.xml file in your package.

Asked by crazymumu on 2016-01-10 21:31:41 UTC

Comments