Ask Your Question
2

Error in compiling uvc_cam

asked 2012-07-17 05:23:58 -0600

usamayaseen gravatar image

updated 2012-07-17 06:07:21 -0600

joq gravatar image

Hi !

I am using ROS Fuerte on my system running Ubuntu 12.04 . i am trying to build uvc_cam but i am getting errros, here are the steps i performed:

rosws set uvc_cam https://github.com/ericperko/uvc_cam.git --git
rosws update uvc_cam

rosmake uvc_cam

And after running make command i got some errors, here's the output of the terminal.

usama@ubuntu:~/fuerte_workspace$ rosmake uvc_cam
[ rosmake ] rosmake starting...                                                 
[ rosmake ] Packages requested are: ['uvc_cam']                                 
[ rosmake ] Logging to directory /home/usama/.ros/rosmake/rosmake_output-20120717-201232
[ rosmake ] Expanded args ['uvc_cam'] to:
['uvc_cam']                           
[rosmake-0] Starting >>> roslang [ make ]                                       
[rosmake-1] Starting >>> geometry_msgs [ make ]                                 
[rosmake-2] Starting >>> rosbuild [ make ]                                      
[rosmake-3] Starting >>> roslib [ make ]                                        
[rosmake-0] Finished <<< roslang  No Makefile in package roslang                
[rosmake-1] Finished <<< geometry_msgs  No Makefile in package geometry_msgs    
[rosmake-0] Starting >>> roscpp [ make ]                                        
[rosmake-1] Starting >>> sensor_msgs [ make ]                                   
[rosmake-2] Finished <<< rosbuild  No Makefile in package rosbuild              
[rosmake-3] Finished <<< roslib  No Makefile in package roslib                  
[rosmake-2] Starting >>> rosconsole [ make ]                                    
[rosmake-3] Starting >>> message_filters [ make ]                               
[rosmake-0] Finished <<< roscpp  No Makefile in package roscpp                  
[rosmake-0] Starting >>> opencv2 [ make ]                                       
[rosmake-1] Finished <<< sensor_msgs  No Makefile in package sensor_msgs        
[rosmake-2] Finished <<< rosconsole  No Makefile in package rosconsole          
[rosmake-3] Finished <<< message_filters  No Makefile in package message_filters
[rosmake-1] Starting >>> bullet [ make ]                                        
[rosmake-2] Starting >>> pluginlib [ make ]                                     
[rosmake-3] Starting >>> angles [ make ]                                        
[rosmake-0] Finished <<< opencv2 ROS_NOBUILD in package opencv2                 
[rosmake-0] Starting >>> cv_bridge [ make ]                                     
[rosmake-3] Finished <<< angles ROS_NOBUILD in package angles                   
[rosmake-2] Finished <<< pluginlib ROS_NOBUILD in package pluginlib             
[rosmake-3] Starting >>> rospy [ make ]                                         
[rosmake-2] Starting >>> image_transport [ make ]                               
[rosmake-1] Finished <<< bullet ROS_NOBUILD in package bullet                   
[rosmake-1] Starting >>> rostest [ make ]                                       
[rosmake-2] Finished <<< image_transport ROS_NOBUILD in package image_transport 
[rosmake-3] Finished <<< rospy  No Makefile in package rospy                    
[rosmake-0] Finished <<< cv_bridge ROS_NOBUILD in package cv_bridge             
[rosmake-0] Starting >>> roswtf [ make ]                                        
[rosmake-3] Starting >>> common_rosdeps [ make ]                                
[rosmake-1] Finished <<< rostest  No Makefile in package rostest                
[rosmake-2] Starting >>> rosservice [ make ]                                    
[rosmake-1] Starting >>> diagnostic_msgs [ make ]                               
[rosmake-0] Finished <<< roswtf  No Makefile in package roswtf                  
[rosmake-0] Starting >>> tf [ make ]                                            
[rosmake-2] Finished <<< rosservice  No Makefile in package rosservice          
[rosmake-3] Finished <<< common_rosdeps ROS_NOBUILD in package common_rosdeps   
[rosmake-1] Finished <<< diagnostic_msgs  No Makefile in package diagnostic_msgs
[rosmake-1] Starting >>> camera_calibration_parsers [ make ]                    
[rosmake-3] Starting >>> dynamic_reconfigure [ make ]                           
[rosmake-2] Starting >>> std_msgs [ make ]                                      
[rosmake-0] Finished <<< tf ROS_NOBUILD in package tf                           
[rosmake-3] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure
[rosmake-2] Finished <<< std_msgs  No Makefile in package std_msgs              
[rosmake-1] Finished <<< camera_calibration_parsers ROS_NOBUILD in package camera_calibration_parsers
[rosmake-1] Starting >>> camera_info_manager [ make ]                           
[rosmake-3] Starting >>> diagnostic_updater [ make ]                            
[rosmake-1] Finished <<< camera_info_manager ROS_NOBUILD in package camera_info_manager
[rosmake-3] Finished <<< diagnostic_updater ROS_NOBUILD in package diagnostic_updater
[rosmake-3] Starting >>> self_test [ make ]                                     
[rosmake-3] Finished <<< self_test ROS_NOBUILD in package self_test             
[rosmake-3] Starting >>> driver_base [ make ]                                   
[rosmake-3] Finished <<< driver_base ROS_NOBUILD in package driver_base         
[rosmake-3] Starting >>> uvc_cam [ make ]                                       
[ rosmake ] Last 40 linesc_cam: 21.7 sec ]           [ 1 Active 28/29 Complete ]
{-------------------------------------------------------------------------------
  make[3]: Leaving directory `/home/usama/fuerte_workspace/uvc_cam/build'
  make[3]: Entering directory `/home/usama/fuerte_workspace/uvc_cam/build'
  [ 66%] Building CXX object CMakeFiles/uvc_cam.dir/src/uvc_cam/uvc_cam.o
  /home/usama/fuerte_workspace/uvc_cam/src/uvc_cam/uvc_cam.cpp: In member     function ‘int uvc_cam::Cam::grab(unsigned char**, uint32_t&)’:
  /home/usama/fuerte_workspace/uvc_cam/src/uvc_cam/uvc_cam.cpp:459:20: warning: unused variable ‘pyuv_last’ [-Wunused-variable]
  /home/usama/fuerte_workspace/uvc_cam/src/uvc_cam/uvc_cam.cpp: In member function ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-07-17 06:01:44 -0600

joq gravatar image

Apparently, that driver has not yet been updated for the camera_info_manager change in Fuerte.

As the change list says:

  • The deprecated global CameraInfoManager class name has been removed. Use camera_info_manager::CameraInfoManager instead.

Looks like you need to make that change in line 79 of src/uvc_cam_node.cpp. Please open a defect report or initiate a github pull request to get that fix merged into the master sources.

edit flag offensive delete link more

Comments

Yup. I never updated it as I don't really use it anymore. A github pull request would be a good way to get this fixed, but it would be best if it supported older ROS distros as well.

Eric Perko gravatar imageEric Perko ( 2012-07-17 09:07:15 -0600 )edit

The qualified name works in Electric. (Diamondback, too, if I recall correctly.)

joq gravatar imagejoq ( 2012-07-17 10:02:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-07-17 05:23:58 -0600

Seen: 675 times

Last updated: Jul 17 '12