ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

erelson's profile - activity

2021-05-05 08:40:57 -0500 received badge  Supporter (source)
2021-04-19 12:55:24 -0500 commented question Intel Realsens on Ubuntu 20.04 + ROS noetic (installation desription)

Note: To preserve compatibility by staying on a 5.4 kernel on 20.04 and not the newer 5.8 kernel (that by default you wi

2016-02-05 13:58:21 -0500 received badge  Enthusiast
2016-02-01 10:33:32 -0500 received badge  Teacher (source)
2016-02-01 10:33:32 -0500 received badge  Necromancer (source)
2016-01-27 17:43:34 -0500 answered a question rqt_robot_dashboard Icon Size

I had some fun recently with this. My solution/understanding turned out to be three parts:

  • Icons (svg format in my case) need to have their internal size at least as large as you are trying to do with the icon. (bizarre to me).
  • In rqt_robot_dashboard, where self.max_icon_size is set in setup(); I think this dictates a "canvas" size per button on the dashboard.
  • In e.g. nav_view_dash_widget.py, self.setFixedSize can scale the icons. I ended up doing (and then getting distracted by other things):

    # Old version:
    #self.setFixedSize(self._icons[0].actualSize(QSize(50, 30)))
    # New version, larger, more absolute:
    self.setFixedSize(QSize(100,60))
    

Caveat: I'm working with a derived version of rqt_dash for Fetch robots, so I've been playing with ever so slightly different code. Nor have I fully wrested control of the rqt_dashboard setup to my liking.