ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Vivian Liu's profile - activity

2017-12-31 13:01:03 -0500 received badge  Taxonomist
2017-04-20 14:34:55 -0500 received badge  Famous Question (source)
2016-05-11 08:43:46 -0500 received badge  Famous Question (source)
2016-05-11 08:43:46 -0500 received badge  Notable Question (source)
2016-03-01 02:35:19 -0500 received badge  Popular Question (source)
2016-02-29 14:15:43 -0500 received badge  Supporter (source)
2016-02-29 09:44:06 -0500 received badge  Enthusiast
2016-02-26 03:29:25 -0500 asked a question Failed to connect the usb camera

Hi everyone, I am having problem about using my Andoer USB 2.0 12 Megapixel HD Camera Web Cam. Once I plugged in the webcam, I tried the following:

sudo apt-get install ros-indigo-usb-cam

rosrun usb_cam usb_cam_node

with a terminal running the master. I got the following error:

[ INFO] [1456506319.466005157]: using default calibration URL
[ INFO] [1456506319.466141992]: camera calibration URL: file:///home/ally/.ros/camera_info/head_camera.yaml
[ INFO] [1456506319.466318445]: Unable to open camera calibration file [/home/ally/.ros/camera_info/head_camera.yaml]
[ WARN] [1456506319.466353581]: Camera calibration file /home/ally/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1456506319.466388999]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (mjpeg) at 30 FPS
[ WARN] [1456506319.517065779]: unknown control 'white_balance_temperature_auto'

[ WARN] [1456506319.526420721]: unknown control 'focus_auto'

[ERROR] [1456506324.536249248]: select timeout

When I type:

ls -ltr /dev/video*

The output is:

crwxrwxrwx+ 1 root video 81, 0 Feb 26 16:39 /dev/video0

Please help. Thanks!

2016-02-18 01:10:43 -0500 received badge  Notable Question (source)
2016-02-17 10:16:53 -0500 commented question No executable inside devel/lib/<package>

Well, it turned out that I have a wrong makefile inside the package folder. After removing it and rebuild the package again, the targets can be built. Thanks for the replies!!!

2016-02-17 10:09:53 -0500 received badge  Popular Question (source)
2016-02-17 09:50:38 -0500 commented question No executable inside devel/lib/<package>

After removing build and devel folder, the catkin_make output is:

make: *** Did not identify target and cannot find makefile. Aborted.
Invoking "make -j1 -l1" failed

cannot find makefile?

2016-02-17 09:18:57 -0500 received badge  Editor (source)
2016-02-17 05:12:09 -0500 asked a question No executable inside devel/lib/<package>

Hi everyone, I am having a little problem building a node. After I created and built the package, I sourced the setup.bash file. Then I added "src/camera.cpp" to the package. The CMakeList is:

cmake_minimum_required(VERSION 2.8.3)
project(chapter5_tutorials)

find_package(catkin REQUIRED
    COMPONENTS
      roscpp
      message_generation
      sensor_msgs
      dynamic_reconfigure
      driver_base
      cv_bridge
      image_transport
      camera_info_manager
      tf)

find_package(OpenCV REQUIRED)

generate_dynamic_reconfigure_options(
    cfg/Camera.cfg
    cfg/CameraStereo.cfg
    cfg/Homography.cfg)

catkin_package(
    CATKIN_DEPENDS
      roscpp
      message_runtime
      sensor_msgs
      dynamic_reconfigure
      driver_base
      cv_bridge
      image_transport
      camera_info_manager
      tf)

include_directories(${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})

add_executable(camera src/camera.cpp)
add_dependencies(camera ${PROJECT_NAME}_gencfg)
target_link_libraries(camera ${catkin_LIBRARIES})

add_executable(camera_timer src/camera_timer.cpp)
target_link_libraries(camera_timer ${catkin_LIBRARIES})

add_executable(camera_polling src/camera_polling.cpp)
target_link_libraries(camera_polling ${catkin_LIBRARIES})

add_executable(camera_stereo src/camera_stereo.cpp)
add_dependencies(camera_stereo ${PROJECT_NAME}_gencfg)
target_link_libraries(camera_stereo ${catkin_LIBRARIES})

add_executable(homography src/homography.cpp)
add_dependencies(homography ${PROJECT_NAME}_gencfg)
target_link_libraries(homography ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

install(TARGETS camera camera_timer camera_polling camera_stereo homography
  ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

foreach(dir bag config launch)
    install(DIRECTORY ${dir}/
        DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)

Then I use catkin_make again to build the package. The catkin_make output is:

Base path: /home/ally/dev/catkin_ws
Source space: /home/ally/dev/catkin_ws/src
Build space: /home/ally/dev/catkin_ws/build
Devel space: /home/ally/dev/catkin_ws/devel
Install space: /home/ally/dev/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ally/dev/catkin_ws/build"
####
####
#### Running command: "make -j1 -l1" in "/home/ally/dev/catkin_ws/build"
####

The catkin_make did not add targets to camera.cpp. I cannot find executable inside the devel/lib/<package> and therefore cannot run the node. Where could go wrong? Please help me out. Thank you:)