• ROS
  • How to view pipeline with pipeline_editor?

I am able to get the pipeline.json file in ROS2 with i_pipeline_dump: true, but I could not view it with neither the pipeline_editor(https://github.com/luxonis/depthai-gui) nor pipeline_graph(https://github.com/geaxgx/depthai_pipeline_graph).

The pipeline_editor throws an error when i try to run it with python3 pipeline_editor.py:
ImportError: /home/nelson/.local/lib/python3.10/site-packages/PyQt5/QtCore.abi3.so: undefined symbol: _ZdlPvm, version Qt_5

I could fix this in here with:
from Qt import QtGui, QtCore
#from PyQt5.QtCore import QRegExp

and use QtCore.QRegExp instead.

However when loading the pipeline.json I got an error:
File "/home/nelson/depthai-gui/NodeGraphQt/base/graph.py", line 1367, in _deserializefor n_id, n_data in data.get('nodes', {}).items():
AttributeError: 'list' object has no attribute 'items'

Please let me know which version of pipeline_editor/viewer that is supported, thanks!

PS: I could not upload the json file here, let me know if you want me to paste the raw text directly.

    Thanks for pointing to the package, I can confirm I manage to run the python example in depthai-experiments with pipeline_graph run "python3 main.py" -dnk

    I tried saving the pipeline and run with pipeline_graph load test.json but it is giving this error:

    File "/home/nelson/.local/lib/python3.10/site-packages/depthai_pipeline_graph/pipeline_graph.py", line 132, in cmd_tool
    
    self.graph.load_session(args.json)
    
    AttributeError: 'Namespace' object has no attribute 'json'

    I also tried running with pipeline_graph from_file test.json and it has the error:

    Json file 'test.json' is missing 'pipeline' key

    I got the same error when trying to load the .json file that I got from ROS2 ros driver. May I know what should be the correct command/action to view the pipeline that is dumped by ROS2 i_pipeline_dump?

      Hi kaichie
      I checked on my end and it's not working for me either. We will update the package to fix the errors. In the mean time, you should be able to run the graph using pipeline_graph run.

      Thanks,
      Jaka

      Thanks! Looking forward for the fixes, it is a great tool for development!