rqt_graph run error:
[ERROR] [1637910144.803564743]: Skipped loading plugin with error: XML Document '/opt/ros/melodic/share/rqt_virtual_joy/plugin.xml' has no Root Element. This likely means the XML is malformed or missing.. RosPluginProvider._parse_plugin_xml() plugin file "/opt/ros/melodic/share/rqt_virtual_joy/plugin.xml" in package "rqt_virtual_joy" not found RosPluginProvider._parse_plugin_xml() plugin file "/opt/ros/melodic/share/rqt_virtual_joy/plugin.xml" in package "rqt_virtual_joy" not found ['dot', '-Tdot', '/tmp/tmpVMQLCN'] return code: 1 stdout, stderr: Format: "dot" not recognized. Use one of: Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_graph/ros_graph.py", line 289, in _refresh_rosgraph self._update_graph_view(self._generate_dotcode()) File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_graph/ros_graph.py", line 324, in _generate_dotcode hide_dynamic_reconfigure=hide_dynamic_reconfigure) File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_graph/dotcode.py", line 914, in generate_dotcode dotcode = dotcode_factory.create_dot(dotgraph) File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_dotgraph/pydotfactory.py", line 175, in create_dot dot = graph.create_dot() File "/usr/lib/python2.7/dist-packages/pydot.py", line 1681, in <lambda> self.create(format=f, prog=prog)) File "/usr/lib/python2.7/dist-packages/pydot.py", line 1900, in create assert p.returncode == 0, p.returncode AssertionError: 1 [1] 22100 abort (core dumped) rqt_graph
The above message contains two errors.
One is that the plugin file is missing. Solution.
Create a new file plugin.xml in the /opt/ros/melodic/share/rqt_virtual_joy/ path and write the contents of the file.
<library path="src">
<class name="My Plugin" type="rqt_virtual_joy.virtual_joy_module.MyPlugin" base_class_type="rqt_gui_py::Plugin">
<description>
An example Python GUI plugin to create a great user interface.
</description>
<qtgui>
<group>
<label>Robot Tools</label>
</group>
<!-- <group>
<label>Subgroup</label>
</group> -->
<label>Virtual Joystick</label>
<icon type="file">resource/input-gaming.png</icon>
<statustip>Great user interface to provide real value.</statustip>
</qtgui>
</class>
</library>
Save and exit to fix problem 1;
The second problem is dot format recognition. Execute the command:
sudo dot -c
Read More:
- [Solved] Failed to allocate graph: MYRIAD device is not opened.
- How to Solve rqt Run error under ROS
- TypeError: unsupported format string passed to numpy.ndarray.__format__
- [Solved] MindSpore Error: task_fail_info or current_graph_ is nullptr
- [Solved] Pytorch Error: RuntimeError: Trying to backward through the graph a second time
- [Solved] PluginlibFactory: The plugin for class ‘rviz_imu_plugin/IMU‘ failed to load.
- Oracle prompt text does not match format string
- Rtabmap Run Error: PluginlibFactory: The plugin for class ‘octomap_rviz_plugin/ColorOccupancyGrid‘ failed t
- [Solved] src/delly.h:8:42: fatal error: boost/graph/adjacency_list.hpp: No such file or directory
- [Solved] Mybatis uses the PageHelper paging plugin error: Could not find method on interface ibatis.executor.Executor named query.
- How to Solve Gradle Error: Plugin with id ‘jetty’ not found.
- Python3: Str.format Keyerror Solution for incoming parameter error
- [Solved] OpenCV VideoWriter Error: FFMPEG: tag ‘MP4V‘ is not supported with codec id 12 and format mp4
- Yarn add package loading error: operation not permitted, unlink …
- [Solved] Android Compile and Package Error: Invalid keystore format
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- Build the graph With the gmapping algorithm error: ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping
- [Solved] Grafana Error: Panel plugin not found grafana-piechart-panel
- [Solved] standard_init_linux.go:190: exec user process caused “exec format error“
- ROS Error: warning: “deprecated pixel format used“