ros-drivers / axis_camera

Contains basic Python drivers for accessing an Axis camera's MJPG stream. Also provides control for PTZ cameras.
BSD 3-Clause "New" or "Revised" License
52 stars 72 forks source link

"Error opening URL...Looping until camera appears" when viewing image in image_view #43

Open mtsakaguchi opened 8 years ago

mtsakaguchi commented 8 years ago

Hello,

I am running into an issue where I cannot view the published Axis camera images using the image_view package. I run rosrun axis_camera axis.py where the default host name is 192.168.0.90 and I get the warning that the publisher should be created with an explicit keyword argument 'queue_size'. When I run image_view to view the raw image stream, the axis camera node prints out the warning

[WARN] [WallTime: 1456299554.224392] Error opening URL http://192.168.0.90/mjpg/video.mjpg?fps=0&resolution=640x480Possible timeout. Looping until camera appears

which doesn't make sense because I can go to my web browser and type in 192.168.0.90 and I'm able to view the live stream and command the PTZ.

I've even tried removing the axis_camera package and using the latest tagged release version and I still get the same error.

Any help would be appreciated!

awesomebytes commented 8 years ago

Hello,

You should most probably launch the node using a launch file as the example: https://github.com/ros-drivers/axis_camera/blob/master/launch/axis.launch

But modifying to your IP. You may be missing some param the node needs.

Also check that http://192.168.0.90/mjpg/video.mjpg?fps=0&resolution=640x480 actually exists for your camera. That's where the video feed is trying to be captured.

Also, there is a PR here: https://github.com/ros-drivers/axis_camera/pull/42 with a new implementation which seems to improve a lot. But it may need a bit more of testing.

And finally, if you only want to see the camera stream, you can also try video_stream_opencv http://wiki.ros.org/video_stream_opencv https://github.com/ros-drivers/video_stream_opencv with a launch file like this one: https://github.com/ros-drivers/video_stream_opencv/blob/master/launch/mjpg_stream.launch

Hope it helps.

2016-02-24 0:51 GMT+01:00 mtsakaguchi notifications@github.com:

Hello,

I am running into an issue where I cannot view the published Axis camera images using the image_view package. I run rosrun axis_camera axis.py where the default host name is 192.168.0.90 and I get the warning that the publisher should be created with an explicit keyword argument 'queue_size'. When I run image_view to view the raw image stream, the axis camera node prints out the warning

[WARN] [WallTime: 1456299554.224392] Error opening URL http://192.168.0.90/mjpg/video.mjpg?fps=0&resolution=640x480Possible timeout. Looping until camera appears

which doesn't make sense because I can go to my web browser and type in 192.168.0.90 and I'm able to view the live stream and command the PTZ.

I've even tried removing the axis_camera package and using the latest tagged release version and I still get the same error.

Any help would be appreciated!

— Reply to this email directly or view it on GitHub https://github.com/ros-drivers/axis_camera/issues/43.

thebmfinn commented 6 years ago

Sorry for being two years late to the subject, but I had this same issue and resolved it by setting my Axis camera to allow for anonymous access (no username/pass authentication) and left off the _user:= and _password:= from the arguments in running the ROS node, worked just fine

jeff-o commented 6 years ago

I can confirm that allowing anonymous login fixes this issue.

prarobo commented 5 years ago

Setting to anonymous login works for me too.

aalgaed commented 3 years ago

yep setting to anonymous fixed the issue.