Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When executing roslaunch axis_camera axis.launch, no error is reported, but at the same time, I can’t see the camera image even when I use rviz #69

Open
hxj0316 opened this issue Aug 16, 2021 · 6 comments

Comments

@hxj0316
Copy link

hxj0316 commented Aug 16, 2021

Hello, I would like to know whether the related drivers of axis camera support work under ubuntu 20.04+ros noetic or ubuntu20.04+ros2 foxy version? I try to run under ubuntu20.04+ros noetic, but when I execute roslaunch axis_camera axis.launch, no error is reported, but at the same time I can't see the camera image using rviz, but I can see it clearly using rostopic list The topic to the camera is indeed released, but there is no data, I don’t know why, I hope you can help me, thank you~

@civerachb-cpr
Copy link
Collaborator

The driver does not currently support ROS2.
I have not had a chance to test in on Noetic yet; there may be some Python errors as Melodic uses Python2 and Noetic uses Python3. But if the node is running and there aren't any error messages you're seeing, then the Pythons scripts may be compatible as-is.
Have you enabled anonymous read-access on your camera? This is required to allow the ROS driver to access the images from http://<camera-hostname-param>/mjpg/video.mjpg.

@hxj0316
Copy link
Author

hxj0316 commented Aug 17, 2021

Hello, yes, I have changed the camera's system settings to allow anonymous read access, but he still has no images. Indeed, when I used the Noetic version, there were some Python problems, but I solved them one by one. No matter if I executed the roslaunch axis_camera axis.launch command or the rosrun axis_camera axis.py command, no error was reported, but no matter what I use When rqr or rviz tried to subscribe to topic to view images, there was no picture. I need your help, thank you~

@civerachb-cpr
Copy link
Collaborator

Are you running Rviz on the same PC that's also running the axis node? Or do you have the node running on a PC inside a robot, and Rviz is connecting to a remote ROS master?
It's possible that if you're using a remote ROS master that your networking configuration is simply not set up correctly and ROS is dropping messages because of e.g. hostname resolution failures.

@hxj0316
Copy link
Author

hxj0316 commented Aug 18, 2021

Hello, I tried to run the driver on another computer with ubuntu18.04, and it worked normally. Does this mean that the driver can only be used on ubuntu18.04? Thanks for your answer

@civerachb-cpr
Copy link
Collaborator

civerachb-cpr commented Aug 18, 2021

Like I said, currently the driver is untested on 20.04 with Noetic. I can't say for sure whether it works or not, but from what you're saying it sounds like it doesn't.
I'll need to locate some hardware to set up a testing rig before I can dig into this. I unfortunately can't give you a good estimate on when I'll be able to get any issues resolved, but I'll do my best to get to it soon.

@hxj0316
Copy link
Author

hxj0316 commented Aug 19, 2021

Thank you very much. If you have any relevant work progress, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants