dheera / rosboard

ROS node that turns your robot into a web server to visualize ROS topics
Other
822 stars 161 forks source link

Resizing of available windows #96

Open fzoric8 opened 2 years ago

fzoric8 commented 2 years ago

Hi, first of all rosboard is awesome.

I'm wondering is it possible to change default window size?

I would like to use only two windows, and currently, one of them is quite small as you can see from the image.

HMI

Thank you for your answer.

alonfaraj commented 2 years ago

@fzoric8 As a quick and dirty solution, you can try add 2 properties to .card in index.css:

.card {
  resize: both;
  overflow: auto;
}
dheera commented 2 years ago

Hi @fzoric8 , just trying to understand your use case, is your main use case (a) to be able to arbitrarily resize any cards, or (b) because you want to make an image topic "full screen"?

fzoric8 commented 2 years ago

Hi guys,

@alonfaraj I've added this code snippet you suggested and I'm able to resize windows. Although, I'm not sure that I wasn't able to resize it before because I was using following AR glasses which have HDMI input and resolution on them is smaller than on my monitor. Today I've tried it on monitor with that snippet, and they're resizable :) Thank you.

@dheera my use-case is to have two camera-streams on rosboard side by side on AR glasses for teleoperation. I've added upper snippet and windows are resizable, however, if I resize them too much, one of them just dissapears. But, everything else works like expected. So, I would like to a) arbitrarily resize any cards which is achieved alonfaraj comment above. But it would be great if it's possible to make image topic full screen for some FPV applications.

I'm wondering if you know what's the latency of the system? How much time passes for rosboard to show image after it was published on topic. I think it's quite small, but It would be cool to know that number for some safety-critical teleoperation for example.

Thank you very much for time :)