-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unavailable layer on QGIS #15
Comments
Hello, I haven't run into that before and am not immediately sure what to suggest. I would probably try to bifurcate the problem a little and see where you get. Can you load any other layer? What is the topic type for the layer(s) you're trying to load? Live or from a bag? Can you see the data from rostopic echo? If you're comfortable, maybe try to remove the |
Thank you for your answer. I am not sure I understand correctly all of your questions so apologies if my answers are a bit confusing. I tried with several topic types : sensor_msgs/NavSatFix or nav_msgs/Odometry and many others but all get the same error. QGIS works fine with .shp layers without using the plugin. |
Try to record some of your topic data into a bagfile and replay it that way. If it fails, and the bagged data is not sensitive, maybe you can send it to me and I can try doing some debugging. Apologies, it's difficult to provide help without being able to reproduce the problem on my end. |
I will try that and get back to you whatever the outcome is. Thank you so much for your help! |
Hi @ablakey, I may have found the origin of the issue. When compiling, I get the following error message: I assume the issue comes from json_transport and not from the QGIS plugin. |
Thanks for digging. It might be. My colleague manages json_transport so he might have a comment on how to manage requirements. @paulbovbel if you've got a moment. |
Please use |
I was able to fix this error by changing "rospkg=1.2.6" into "rospkg" in requirements.txt for ros-melodic-catkin-virtualenv. Unfortunately this did not fix the issue I have with the qgis-ros plugin. |
Is there any update on this issue? I'm encountering the same error while using the provided Docker container |
Hi @ablakey,
I've been trying to make your plugin work with my project. It looks like everything works fine until the QgsVectorLayer command is called in translator.py: layer = QgsVectorLayer(uri, topicName, 'rosvectorprovider'). The following lines:
if not layer.isValid():
print("Layer failed to load!")
I implemented immediately after said command does return an error.
To be more specific, all of my topics are detected and appear correctly in the available topics table from your plugin GUI. But whenever I select any of them and ask to create a layer, an empty layer is created with the expected name and source uri, but an error appears that says "Unavailable layer! Layer data source could not be found".
It seems like the problem comes from the provider. Have you encountered this issue before?
The text was updated successfully, but these errors were encountered: