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

(rqt launch) nodes do not show up (at first) #53

Closed
acornacorn opened this issue Mar 22, 2013 · 2 comments
Closed

(rqt launch) nodes do not show up (at first) #53

acornacorn opened this issue Mar 22, 2013 · 2 comments
Labels
Milestone

Comments

@acornacorn
Copy link

When I first start the RQT launch plugin, no nodes show up. I see the dotted tree lines on the left where the 2 nodes should be, but no information about the nodes. If I click on a different launch file and then click back to the original launch file then eventually I see the information about the nodes.

With some launch files, only some of the nodes show up. For example, run rqt, add the launch plugin, and set the package to pr2_moveit_config. The first launch file is demo.launch. I see slots (dotted lines) for 5 nodes, but only the first 2 (static transform publisher and joint state publisher) show up. Click on a different launch file (same problem). Then click on demo.launch again. Now all 5 nodes show up.

@130s
Copy link
Member

130s commented Aug 27, 2013

My incomplete diagnosis of the cause of this issue, for me or someone in the future making a patch.

In the line 202 or launch_widget.py:

            self._treeview.setIndexWidget(qindex_nodewidget, node_widget)

Here a widget for each ROS node is passed as an element to QTreeView. For some reasons QTreeView first creates lines without showing the widgets passed, and the second time the widgets are passed QTreeView shows them on it. As long as #lines-already-displayed < #nodes, widgets get displayed too when user chooses a new launch file. But if #lines-already-displayed > #nodes, the excess nodes are not displayed but only lines get generated.

I verified that roslaunch that is internally used returns proper values. So the cause is either in Qt or in my code esp. how I use QWidget as an element for QTreeView.

@dirk-thomas
Copy link
Contributor

This issue was moved to ros-visualization/rqt_launch#4

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

No branches or pull requests

4 participants