Camera Setting Error


Hi,i follow Camera Settings doc and execute this command:
flytos@flytos:~$ export ROS_NAMESPACE=flytos
flytos@flytos:~$ roslaunch vision_apps cam_api.launch
But occur some errors.
flytos@flytos:~$ roslaunch vision_apps cam_api.launch
… logging to /home/flytos/.ros/log/1be85070-2266-11e8-8f62-001e0630fbe4/roslaunch-flytos-1700.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://flytos:38384/



  • /flytos/flytcam/brightness: 20
  • /flytos/flytcam/camera_info_url: file:///flyt/flyt…
  • /flytos/flytcam/framerate: 30
  • /flytos/flytcam/image_height: 480
  • /flytos/flytcam/image_width: 640
  • /flytos/flytcam/pixel_format: yuyv
  • /flytos/flytcam/video_device: /dev/video0
  • /rosdistro: kinetic
  • /rosversion: 1.12.6

flytcam (usb_cam/usb_cam_node)
image_capture (vision_apps/image_capture)
web_video_server (web_video_server/web_video_server)


core service [/rosout] found
process[flytos/flytcam-1]: started with pid [1725]
[ INFO] [1520470935.562096340]: camera calibration URL: file:///flyt/flytos/flytcore/share/vision_apps/calibration/calibration.yaml
[ WARN] [1520470935.567621369]: [head_camera] does not match name narrow_stereo in file /flyt/flytos/flytcore/share/vision_apps/calibration/calibration.yaml
[ INFO] [1520470935.567858535]: Starting ‘head_camera’ (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[ERROR] [1520470935.568206201]: VIDIOC_S_FMT error 16, Device or resource busy
process[flytos/image_capture-2]: started with pid [1847]
process[flytos/web_video_server-3]: started with pid [1857]
[flytos/flytcam-1] process has died [pid 1725, exit code 1, cmd /flyt/flytos/flytcore/lib/usb_cam/usb_cam_node __name:=flytcam __log:=/home/flytos/.ros/log/1be85070-2266-11e8-8f62-001e0630fbe4/flytos-flytcam-1.log].
log file: /home/flytos/.ros/log/1be85070-2266-11e8-8f62-001e0630fbe4/flytos-flytcam-1*.log
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >'
what(): bind: Address already in use
[flytos/web_video_server-3] process has died [pid 1857, exit code -6, cmd /flyt/flytos/flytcore/lib/web_video_server/web_video_server __name:=web_video_server __log:=/home/flytos/.ros/log/1be85070-2266-11e8-8f62-001e0630fbe4/flytos-web_video_server-3.log].
log file: /home/flytos/.ros/log/1be85070-2266-11e8-8f62-001e0630fbe4/flytos-web_video_server-3*.log

I only connected a mono camera to ODROID XU4, but
flytos@flytos:~$ ls /dev/video*
/dev/video0 /dev/video6 /dev/video7
so,which port the camera is connected to?


Hi @Bryanzl,

FlytOS when boots up, detects presence of a camera on /dev/video0 port and if available it attaches itself to it.
Once done, it makes camera data available in rostopic:


If the above condition is met, and you try running the cam_api.launch file again, it would fail with ‘Device or resource busy error’.

You do not need to launch this file separately. If you still want to do it, I would suggest you to stop FlytOS before launching it.


Thanks you!
I have run the cam_api.launch,


Hi,srv-admin.Can I ask for your help?How to solve the problem: unknown control 'focus_auto’
Thanks you!


This is NOT a problem, but a generic warning. Don’t worry, you can still access the camera in rostopic: /flytos/flytcam/image_raw.

But I am still not sure, why are you going through this trouble in the first place.

When you boot up FlytOS, don’t you get a valid video feed in FlytConsole? Or don’t you see any message being printed when you subscribe to the rostopic: /flytos/flytcam/image_raw

Feel free to ask your doubts. Right now, it seems you are unnecessarily trying to solve wrong problem.


But now the camera doesn’t show any images.Need to modify the launch files,cam_api.launch or usb_camera.launch?


Follow this guide:

  1. Power up your Odroid XU4 with camera connected.
  2. Wait for about 5 mins.
  3. Fetch the latest runlog
  4. Share it in this thread.

If you ever need to edit camera settings, you must only do the changes in this file: cam_api.launch.
Changes done in any other file won’t get reflected.