rqt plugin to fetch params and populate qtreewidget

asked 2017-03-21 01:40:08 -0500

crazyfly gravatar image

I've been trying to fetch params from the crazyflie and then populate a qtreewidget that was created using qt4 designer for the past few weeks, hope that I can get some help from you guys here.

Currently, I am able to fetch the params into a python dict using rospy.get_param("/crazyflie"). However, I do not know how to populate the qtreewidget I created using qt designer with the params in the python dict. I am trying to set the key as the parent and the values as the child but I have no idea how to do this. Does anyone know how to do it?

edit retag flag offensive close merge delete

Comments

You can look at the code of some of the existing plugins to get an idea how they do very similar stuff: https://github.com/ros-visualization/...

Dirk Thomas gravatar image Dirk Thomas  ( 2017-03-21 10:25:31 -0500 )edit